[Task] Enable SpotBug checks disabled in 4.9.x upgrade and fix possible detected bugs #24245
Open
1 of 9 tasks
Labels
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Uh oh!
There was an error while loading. Please reload this page.
Search before asking
Motivation
In #24243 SpotBugs was upgraded from 4.7.3 to 4.9.3. Since new checks were introduced, the checks were disabled with the
omitVisitors
configuration to make the upgrade possible without addressing the issues in the upgrade PR.Solution
As a follow up, it would be necessary to enable checks to see what the actual problems are and fix them one by one.
Alternatives
The checks that are unnecessarily verbose for Pulsar's code style could be kept disabled so that we don't end up adding exclusions for each occurrence like we have done for EI_EXPOSE_REP/EI_EXPOSE_REP2 bug pattern.
For example, AT: This write of this 64-bit primitive variable may not atomic (AT_NONATOMIC_64BIT_PRIMITIVE) should be ignored in Pulsar source code since Pulsar required 64-bit JVM, #10311.
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: