Skip to content

KAFKA-17148: Remove print MetaPropertiesEnsemble from kafka-storage tool#16607

Merged
gharris1727 merged 3 commits intoapache:trunkfrom
wernerdv:KAFKA-17148
Jul 17, 2024
Merged

KAFKA-17148: Remove print MetaPropertiesEnsemble from kafka-storage tool#16607
gharris1727 merged 3 commits intoapache:trunkfrom
wernerdv:KAFKA-17148

Conversation

@wernerdv
Copy link
Copy Markdown
Contributor

Remove print MetaPropertiesEnsemble from kafka-storage tool.

Committer Checklist (excluded from commit message)

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

Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@wernerdv thanks for this patch. Please take a look at StorageToolTest

metaPropertiesEnsemble.verify(metaProperties.clusterId(), metaProperties.nodeId(),
util.EnumSet.noneOf(classOf[VerificationFlag]))

stream.println(s"metaPropertiesEnsemble=$metaPropertiesEnsemble")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

testFormatEmptyDirectory and testFormatSucceedsIfAllDirectoriesAreAvailable need to be updated for this change.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@cmccabe not sure whether this output is debugging-only? it was added by #14628, and the code was System.out.println(s"metaPropertiesEnsemble=${metaPropertiesEnsemble}"). Hence, I assume it was used to debug only before.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@cmccabe not sure whether this output is debugging-only? it was added by #14628, and the code was System.out.println(s"metaPropertiesEnsemble=${metaPropertiesEnsemble}"). Hence, I assume it was used to debug only before.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

@gharris1727 gharris1727 left a comment

Choose a reason for hiding this comment

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

I confirmed that this prevents the line from being printed from the storage tool.

@gharris1727
Copy link
Copy Markdown
Contributor

Test failures appear unrelated.

@gharris1727 gharris1727 merged commit a66a59f into apache:trunk Jul 17, 2024
gharris1727 pushed a commit to gharris1727/kafka that referenced this pull request Jul 17, 2024
…ool (apache#16607)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Greg Harris <greg.harris@aiven.io>
gharris1727 pushed a commit to gharris1727/kafka that referenced this pull request Jul 17, 2024
…ool (apache#16607)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Greg Harris <greg.harris@aiven.io>
C0urante pushed a commit to C0urante/kafka that referenced this pull request Jul 17, 2024
…ool (apache#16607)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Greg Harris <greg.harris@aiven.io>
gharris1727 added a commit that referenced this pull request Jul 18, 2024
…ool (#16607) (3.7) (#16616)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Greg Harris <greg.harris@aiven.io>, Chris Egerton <chrise@aiven.io>
Co-authored-by: Dmitry Werner <grimekillah@gmail.com>
gharris1727 added a commit that referenced this pull request Jul 18, 2024
…ool (#16607) (3.8) (#16617)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Greg Harris <greg.harris@aiven.io>, Chris Egerton <chrise@aiven.io>

Co-authored-by: Dmitry Werner <grimekillah@gmail.com>
abhi-ksolves pushed a commit to ksolves/kafka that referenced this pull request Jul 31, 2024
…ool (apache#16607)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Greg Harris <greg.harris@aiven.io>
@wernerdv wernerdv deleted the KAFKA-17148 branch September 7, 2024 07:34
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.

3 participants