Skip to content
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

upgrade kafka client library to 2.8.2 #5400

Merged
merged 5 commits into from
May 3, 2023

Conversation

bdoyle0182
Copy link
Contributor

@bdoyle0182 bdoyle0182 commented Apr 27, 2023

Description

handles cve's and some critical bug fixes. This can be updated safely without updating underlying kafka of the ansible which is still set to 2.7.0. have tested a build myself that things still work but still need to see if all tests pass here.

cve's fixed:

cve's from transitive dependencies:

Related issue and scope

  • I opened an issue to propose and discuss this change (#????)

My changes affect the following components

  • API
  • Controller
  • Message Bus (e.g., Kafka)
  • Loadbalancer
  • Scheduler
  • Invoker
  • Intrinsic actions (e.g., sequences, conductors)
  • Data stores (e.g., CouchDB)
  • Tests
  • Deployment
  • CLI
  • General tooling
  • Documentation

Types of changes

  • Bug fix (generally a non-breaking change which closes an issue).
  • Enhancement or new feature (adds new functionality).
  • Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

  • I signed an Apache CLA.
  • I reviewed the style guides and followed the recommendations (Travis CI will check :).
  • I added tests to cover my changes.
  • My changes require further changes to the documentation.
  • I updated the documentation where necessary.

@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2023

Codecov Report

Merging #5400 (32d996e) into master (d84e4ee) will decrease coverage by 0.10%.
The diff coverage is n/a.

❗ Current head 32d996e differs from pull request most recent head 2f6bdba. Consider uploading reports for the commit 2f6bdba to get more accurate results

@@            Coverage Diff             @@
##           master    #5400      +/-   ##
==========================================
- Coverage   76.69%   76.59%   -0.10%     
==========================================
  Files         240      240              
  Lines       14596    14596              
  Branches      671      671              
==========================================
- Hits        11194    11180      -14     
- Misses       3402     3416      +14     

see 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bdoyle0182 bdoyle0182 force-pushed the upgrade-kafka-client branch 6 times, most recently from dd2c827 to 9af29cd Compare April 27, 2023 05:37
@bdoyle0182 bdoyle0182 changed the title upgrade kafka client library upgrade kafka client library to 2.8.2 May 2, 2023
@@ -45,9 +45,9 @@ dependencies {

testImplementation "junit:junit:4.11"
testImplementation "org.scalatest:scalatest_${gradle.scala.depVersion}:3.0.8"
testImplementation "io.github.embeddedkafka:embedded-kafka_${gradle.scala.depVersion}:2.4.0"
testImplementation "io.github.embeddedkafka:embedded-kafka_${gradle.scala.depVersion}:2.8.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

embedded kafka for the tests doesn't have a release for 2.8.2, but works against any 2.8.x version of the kafka client.

Copy link
Member

@style95 style95 left a comment

Choose a reason for hiding this comment

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

LGTM.

It would be great to leave the corresponding CVEs links and fixed bugs in this PR.

override val sleepAfterProduce: FiniteDuration = 10.seconds
override protected val topicCreationTimeout = 60.seconds
override protected val topicCreationTimeout = 120.seconds
Copy link
Member

Choose a reason for hiding this comment

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

I am just curious if this is to apply different timeouts for topic creation and publishing timeout or if there was any case that topic creation takes more than 60s.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've reverted the timeout changes I think it was just leftover from me trying to get the tests to work, but still think the topic creation needs to be the same timeout as produce timeout rather than the default of the test library which is 10s.

also I've added the cve's to the description. for bug fixes it would be hard to cover here rather than just pointing to the kafka release notes between 2.4.0 and 2.8.2.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

@bdoyle0182 bdoyle0182 merged commit 6bc559d into apache:master May 3, 2023
@rabbah
Copy link
Member

rabbah commented May 3, 2023

Nice! 🎉

mtt-merz pushed a commit to mtt-merz/openwhisk that referenced this pull request Oct 22, 2023
* upgrade kafka client library

* attempt build upgrading embedded kafka

* attempt to fix standalone server startup test

* bump to kafka client to latest patch

* revert kafka test timeout config change

---------

Co-authored-by: Brendan Doyle <brendand@qualtrics.com>
(cherry picked from commit 6bc559d)
This pull request was closed.
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.

4 participants