Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates kafka/kafka-manager.sh and kafka/kafka.sh to configure Debian security mirrors and backports, and adds an apt-get update step before installing gnupg2. The review feedback identifies a critical issue where using a future snapshot date (20260830T000000Z) will cause HTTP 404 errors and break apt-get update on Debian 11. Additionally, the reviewer points out an existing bug where double-quoting matched_files in a loop prevents proper iteration over multiple files, and suggests removing unnecessary subshell parentheses around apt-get update || true to avoid overhead.
IshaAg
marked this pull request as ready for review
December 4, 2026 11:45
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Fixes
kafka/kafka.shandkafka/kafka-manager.shfor Debian 11 (Dataproc 2.1):remove_old_backportsinkafka/kafka-manager.shfor Debian<= 2.1.bullseye-securityin/etc/apt/sources.list*toarchive.debian.org(falling back tosnapshot.debian.org/archive/debian-security/20260830T000000Z, the same snapshot used by Dataproc2.1.121-debian11) and disablesAcquire::Check-Valid-Until.matched_fileshandling inremove_old_backportsto tolerate no matches (|| true) and iterate over an array.apt-get update || truebefore installinggnupg2inkafka/kafka.shrecv_keys().Testing
Verified
KafkaTest.testKafkaNonHACluster(runningkafka/kafka.sh,kafka/cruise-control.sh, andkafka/kafka-manager.sh) passes end-to-end across all affected< 3.0tracks:2.1-debian11: PASSED2.2-debian12: PASSED2.3-debian12: PASSED