Skip to content

MINOR: Upgrade spotbugs and spotbugsPlugin#8790

Merged
ijuma merged 2 commits intoapache:trunkfrom
showuon:upgradeSpotbugsPlugin
Jun 3, 2020
Merged

MINOR: Upgrade spotbugs and spotbugsPlugin#8790
ijuma merged 2 commits intoapache:trunkfrom
showuon:upgradeSpotbugsPlugin

Conversation

@showuon
Copy link
Copy Markdown
Member

@showuon showuon commented Jun 3, 2020

Upgrade spotbugsPlugin to have clear error output to indicate where the error is.

When investigating KAFKA-10081, I found the error output of spotbugs is very poor. It doesn't even tell you where the error is and how many errors found, it will take a lot of time for the developers to find out where the error is, and then fix it.
image
https://builds.apache.org/blue/organizations/jenkins/kafka-trunk-jdk8/detail/kafka-trunk-jdk8/4596/pipeline/

Then, I found out there's a bug in spotbugsPlugin in V4.0.x, and got fixed in V4.2.x
spotbugs/spotbugs-gradle-plugin#210

So, after upgrading to V4.2.x (I followed to the latest version V4.2.4), the output is like this:
image
So you know there's 1 error and you can also open the report file to find out the error.

I think this is very important to save the developer's time to fix the spotBug issues while developing. Thanks.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@showuon
Copy link
Copy Markdown
Member Author

showuon commented Jun 3, 2020

@ijuma , could you review this small PR to upgrade spotbugsPlugin? Thanks.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 3, 2020

ok to test

Copy link
Copy Markdown
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

Thanks, nice investigation. LGTM.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 3, 2020

ok to test

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 3, 2020

I bumped spotbugs to 4.0.3 while we're at it.

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 3, 2020

ok to test

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 3, 2020

retest this please

@showuon
Copy link
Copy Markdown
Member Author

showuon commented Jun 3, 2020

Thanks.

@showuon showuon changed the title MINOR: Upgrade spotbugsPlugin MINOR: Upgrade spotbugs and spotbugsPlugin Jun 3, 2020
@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 3, 2020

ok to test

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 3, 2020

retest this please

@ijuma
Copy link
Copy Markdown
Member

ijuma commented Jun 3, 2020

One job failed for unrelated reasons.

@ijuma ijuma merged commit 1628844 into apache:trunk Jun 3, 2020
ijuma pushed a commit that referenced this pull request Jun 3, 2020
Upgrade spotbugsPlugin to have clear output indicating where the error is. 

When investigating KAFKA-10081, I found the error output of spotbugs is very poor. It doesn't even tell you where the error is and how many errors found, it will take a lot of time for the developers to find out where the error is, and then fix it.
![image](https://user-images.githubusercontent.com/43372967/83590263-efc42a80-a587-11ea-95cf-e9097d9a662e.png)
https://builds.apache.org/blue/organizations/jenkins/kafka-trunk-jdk8/detail/kafka-trunk-jdk8/4596/pipeline/

Then, I found out there's a bug in spotbugsPlugin in V4.0.x, and got fixed in V4.2.x
spotbugs/spotbugs-gradle-plugin#210

So, after upgrading to V4.2.x (I followed to the latest version V4.2.4), the output is like this:
![image](https://user-images.githubusercontent.com/43372967/83590913-60b81200-a589-11ea-9a04-1449d693c2f2.png)
So you know there's 1 error and you can also open the report file to find out the error.

Upgraded to the latest bug fix release of spotbugs (4.0.3) while at it.

Reviewers: Ismael Juma <ismael@juma.me.uk>
ijuma added a commit that referenced this pull request Jun 4, 2020
…use_all_dns_ips-as-default

* apache-github/trunk:
  KAFKA-9788; Use distinct names for transaction and group load time sensors (#8784)
  KAFKA-9514; The protocol generator generated useless condition when a field is made nullable and flexible version is used (#8793)
  MINOR: Update to Gradle 6.5 and tweak build jvm config (#8751)
  MINOR: Upgrade spotbugs and spotbugsPlugin (#8790)
  KAFKA-10089 The stale ssl engine factory is not closed after reconfigure (#8792)
  KAFKA-10080; Fix race condition on txn completion which can cause duplicate appends (#8782)
  KAFKA-10084: Fix EosTestDriver end offset (#8785)
  KAFKA-10083: fix failed testReassignmentWithRandomSubscriptionsAndChanges tests (#8786)
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