Skip to content

Commit

Permalink
Merge pull request #267 from SoMuchForSubtlety/fix-compaction-detection
Browse files Browse the repository at this point in the history
Handle multiple cleanup policies
  • Loading branch information
birdayz committed Jul 5, 2023
2 parents 606f7f0 + 6afa8a7 commit 1c785eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/kaf/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,12 @@ var describeTopicCmd = &cobra.Command{

var compacted bool
for _, e := range cfg {
if e.Name == "cleanup.policy" && e.Value == "compact" {
compacted = true
if e.Name == "cleanup.policy" {
for _, setting := range strings.Split(e.Value, ",") {
if setting == "compact" {
compacted = true
}
}
}
}

Expand Down

0 comments on commit 1c785eb

Please sign in to comment.