Skip to content

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

Open
AbhishekKumar9984 wants to merge 2 commits into
cdapio:cs_guava_upgradefrom
cloudsufi:metrics-cloudsufi-guava-upgrade
Open

Upgrade Guava library to version 32.0.0-jre in cdap#16149
AbhishekKumar9984 wants to merge 2 commits 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

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.

3 participants