-
Notifications
You must be signed in to change notification settings - Fork 14.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
KAFKA-14485: Move LogCleaner exceptions to storage module #18534
Conversation
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.
Thanks for this PR, LGTM
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.
LGTM!
@@ -1241,9 +1240,9 @@ class LogCleanerTest extends Logging { | |||
val log = makeLog(config = LogConfig.fromProps(logConfig.originals, logProps)) | |||
|
|||
// create 6 segments with only one message in each segment | |||
def createRecorcs = TestUtils.singletonRecords(value = Array.fill[Byte](25)(0), key = 1.toString.getBytes) | |||
def createRecords = TestUtils.singletonRecords(value = Array.fill[Byte](25)(0), key = 1.toString.getBytes) |
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.
nice catch!
.take(numCleanableSegments).forall { case (before, after) => after < before }, | ||
"The cleanable segments should have fewer number of values after cleaning") | ||
assertTrue(disctinctValuesBySegmentBeforeClean.zip(distinctValuesBySegmentAfterClean) | ||
assertTrue(distinctValuesBySegmentBeforeClean.zip(distinctValuesBySegmentAfterClean) |
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.
nice catch!
Reviewers: Luke Chen <[email protected]>, Ken Huang <[email protected]>
Reviewers: Luke Chen <[email protected]>, Ken Huang <[email protected]>
Reviewers: Luke Chen <[email protected]>, Ken Huang <[email protected]>
Committer Checklist (excluded from commit message)