FISH-260 QACI-296: Add diagnostics for missing top-level invocation on stack #4774
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In certain build environment we were hitting following exception:
The stacktrace reveals two things
InvocationException
The change adds an explanation to root invocation exception along with
ComponentInvocation
that the caller expected to be on top.J2EEInstanceListener
will pass the original exception as supressed should this situation occur again.(Un)fortunately, the build started passing after we tried it with these changes, apparently the timing of CI environment changed.
Also included in this change is stability fix for
ConcurrentGaugeInterceptorTest
, instead of fixedThread.sleep
s it now uses awaitility to poll until expected result is obtained (or timeout).Testing
Testing Performed
microprofile-metrics
change (the test was unstable on windows)Testing Environment
Windows 10, OpenJDK Runtime Environment (Zulu 8.46.0.19-CA-win64) (build 1.8.0_252-b14), Maven 3.6.3 (QACI-296)
Ubuntu 18.04.4 LTS, AdoptOpenJDK 11 something (not logged), Maven 3.6.3 (FISH-260)