-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(dev): Upgrade kafka and zookeeper to support Apple M1 #28574
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
71e8c82
feat(ci): Upgrade kafka and zookeeper
armenzg c60a0d9
Merge branch 'master' into armenzg/dev/upgrade-kafka-zookeeper
armenzg eb8c165
Match to production versions
armenzg 9cdb788
Update version
armenzg 8edf6e9
Fix comment location
armenzg 25ffa5d
Update comment
armenzg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1724,15 +1724,15 @@ def build_cdc_postgres_init_db_volume(settings): | |
), | ||
"zookeeper": lambda settings, options: ( | ||
{ | ||
"image": "confluentinc/cp-zookeeper:5.1.2", | ||
"image": "confluentinc/cp-zookeeper:6.2.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we leave comments here about the versions and why it differs from CI/prod There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated. |
||
"environment": {"ZOOKEEPER_CLIENT_PORT": "2181"}, | ||
"volumes": {"zookeeper": {"bind": "/var/lib/zookeeper"}}, | ||
"only_if": "kafka" in settings.SENTRY_EVENTSTREAM or settings.SENTRY_USE_RELAY, | ||
} | ||
), | ||
"kafka": lambda settings, options: ( | ||
{ | ||
"image": "confluentinc/cp-kafka:5.1.2", | ||
"image": "confluentinc/cp-kafka:6.2.0", | ||
"ports": {"9092/tcp": 9092}, | ||
"environment": { | ||
"KAFKA_ZOOKEEPER_CONNECT": "{containers[zookeeper][name]}:2181", | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the CI was running an older version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What version do we run in production?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we run 4.1.2-3 and version 3.4.11 for zookeeper.
Should I make the CI test against those versions?
As curiosity, we run a range of versions across the org: https://github.com/search?q=org%3Agetsentry+cp-kafka&type=code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think we should have CI match production, let's leave comments here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@billyvg I've discovered that version of zookeeper we use in production is no longer available on Docker hub, thus, we cannot match the versions between CI and production.
FYI, this part of the PR is completely unnecessary to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asked about the versions picked in #20543 (review)