Skip to content
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-5252: Fix transient failures LogCleanerTest testCommitMarkerRemoval and testAbortMarkerRemoval #3064

Closed
wants to merge 2 commits into from

Conversation

hachikuji
Copy link

No description provided.

@asfbot
Copy link

asfbot commented May 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.11/3973/
Test FAILed (JDK 7 and Scala 2.11).

@asfbot
Copy link

asfbot commented May 16, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/3961/
Test PASSed (JDK 8 and Scala 2.12).

@apurvam
Copy link
Contributor

apurvam commented May 16, 2017

What was the bug that these changes fixed? Or was the time.milliseconds parameter making it flaky?

@hachikuji
Copy link
Author

hachikuji commented May 16, 2017

@apurvam It can happen that one of the log segments is created at the same timestamp as the call to doClean. If that happens, that segment won't be eligible for deletion. Since the intent of the test case is to make all segments eligible for deletion, I changed the test to use Long.MaxValue. In addition to guaranteeing all segments are eligible for deletion, it better conveys the intent of the test.

Copy link
Contributor

@apurvam apurvam left a comment

Choose a reason for hiding this comment

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

Thanks for the explanation and the patch. LGTM.

So to rephrase what you said, all segments older than the deleteHorizonMs will be removed by cleaner.doClean right?

@guozhangwang
Copy link
Contributor

LGTM.

@guozhangwang
Copy link
Contributor

all segments older than the deleteHorizonMs will be removed by cleaner.doClean right?

More accurately, will be "considered" for cleaning :)

@asfgit asfgit closed this in cacbba6 May 16, 2017
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.

4 participants