Skip to content

Upgrade Guava library to version 32.0.0-jre in cdap#16149

Merged
sahusanket merged 1 commit into
cdapio:cs_guava_upgradefrom
cloudsufi:metrics-cloudsufi-guava-upgrade
Jul 23, 2026
Merged

Upgrade Guava library to version 32.0.0-jre in cdap#16149
sahusanket merged 1 commit into
cdapio:cs_guava_upgradefrom
cloudsufi:metrics-cloudsufi-guava-upgrade

Conversation

@AbhishekKumar9984

Copy link
Copy Markdown

Updated the Guava dependency version in pom.xml to 32.0.0-jre.
Ensured compatibility with the upgraded Guava version.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a dependency on Guava to cdap-data-fabric and introduces a workaround class TxMetricsCollector to satisfy the Tephra TransactionManager. The review feedback highlights that using reflection to invoke start/stop and startAsync/stopAsync on the delegate service is unnecessary and problematic. It introduces performance overhead from caught exceptions and risks IllegalAccessException on newer Java versions. The reviewer suggests directly calling delegate.startAsync() and delegate.stopAsync() instead.

@dheeraj-kholia-cs dheeraj-kholia-cs left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Simplify TxMetricsCollector start/stop methods using direct calls to delegate instead of reflection
@AbhishekKumar9984
AbhishekKumar9984 force-pushed the metrics-cloudsufi-guava-upgrade branch from 3ddecca to 8689976 Compare July 20, 2026 10:46
@sahusanket
sahusanket merged commit f155ab5 into cdapio:cs_guava_upgrade Jul 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants