Skip to content

[Task] Enable SpotBug checks disabled in 4.9.x upgrade and fix possible detected bugs #24245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 9 tasks
lhotari opened this issue May 5, 2025 · 1 comment · May be fixed by 3pacccccc/pulsar#6 or #24285
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

Comments

@lhotari
Copy link
Member

lhotari commented May 5, 2025

Search before asking

  • I searched in the issues and found nothing similar.

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?

  • I'm willing to submit a PR!
@lhotari lhotari added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label May 5, 2025
@nisranjan
Copy link

jbjkb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
2 participants