Skip to content

Conversation

@cleverchuk
Copy link
Contributor

@cleverchuk cleverchuk commented Jan 5, 2026

Context:

This PR removes the previous restriction that required users to run the SolarWinds APM Java agent on JDK version 1.8.252 or higher. Previously, the agent would fail to initialize on older Java 8 patch versions due to the JavaRuntimeVersionChecker validation. This validation is removed and users can now run the agent on any Java 8 or higher runtime without encountering initialization failures due to patch version restrictions with the caveat that Profiling is permanently disabled for versions before 1.8.252

Note
Ignoring the lamba test disk issue for the moment, deal with that later.

Test Plan:

Regression plus additional test and manually on JDK 1.8.242

Test services data

  1. e-1712644058766987264
  2. e-1712643928659124224
  3. e-1742334541200846848
  4. e-1777406072376840192

@cleverchuk cleverchuk requested a review from a team as a code owner January 5, 2026 23:56
@cleverchuk cleverchuk requested a review from Copilot January 6, 2026 00:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the JDK version 1.8.252 minimum requirement that previously prevented the agent from initializing on older Java 8 patch versions. The agent now allows execution on any Java 8 or higher runtime, with profiling features conditionally disabled for versions below 1.8.252.

Key Changes:

  • Removed JDK version check from agent initialization logic
  • Added conditional profiling activation based on JDK version
  • Updated warning messages to clarify profiling-specific version requirements

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
AutoConfigurationCustomizerProviderImpl.java Removed version check that disabled entire agent; replaced with profiling-specific warning
DeclarativeLoader.java Removed agent disablement logic; kept profiling version warning
SolarwindsTracerProviderCustomizer.java Added conditional profiling span processor registration based on JDK version
CustomConfigCustomizerProvider.java Added JDK version check before adding profiling processor
SolarwindsAgentListener.java Added JDK version check before profiler initialization; removed system monitor code
AutoConfigurationCustomizerProviderImplTest.java Added teardown to reset static agentEnabled field between tests
CustomConfigCustomizerProviderTest.java Added tests verifying profiling processor conditional registration
SolarwindsTracerProviderCustomizerTest.java New test file verifying profiling span processor conditional behavior

Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @cleverchuk esp. for the pre 252 patch adhoc test link!

}
}.buildMonitors());
logger.debug("Started System monitor");

Copy link
Contributor

Choose a reason for hiding this comment

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

Above is no longer needed AO-style metrics code, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mainly tace.jvm.* metrics.

@cleverchuk cleverchuk merged commit 1bf2002 into main Jan 6, 2026
15 of 16 checks passed
@cleverchuk cleverchuk deleted the cc/NH-126846 branch January 6, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants