Skip to content

Upgrade Guava library to version 32.0.0-jre in CDAP Watchdog module#16160

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

Upgrade Guava library to version 32.0.0-jre in CDAP Watchdog module#16160
AbhishekKumar9984 wants to merge 2 commits into
cdapio:cs_guava_upgradefrom
cloudsufi:watchdog2-cloudsufi-guava-upgrade

Conversation

@AbhishekKumar9984

Copy link
Copy Markdown

Updated the Guava dependency version in pom.xml to 32.0.0-jre.
Addressed compatibility issues 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 refactors service lifecycle management by replacing deprecated startAndWait() and stopAndWait() methods with their asynchronous counterparts (startAsync() and stopAsync()), and replaces Guava's Closeables.closeQuietly and Throwables.propagate with standard Java try-catch blocks and explicit exception wrapping. The review feedback highlights that starting and stopping pipelines sequentially in DistributedLogFramework introduces blocking behavior that was previously parallel, potentially causing hangs. Additionally, several of the newly introduced try-catch blocks for closing resources (such as logFileOutputStream, outputStream, dataFileWriter, cl, and classLoaderFolder) lack null checks, which could result in NullPointerExceptions if initialization fails.

Comment thread cdap-watchdog/src/main/java/io/cdap/cdap/logging/logbuffer/LogBufferWriter.java Outdated

@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.

2 participants