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

Removed 'if' condition. #8768

Merged
merged 1 commit into from
Oct 28, 2019
Merged

Removed 'if' condition. #8768

merged 1 commit into from
Oct 28, 2019

Conversation

karthikbhat13
Copy link
Contributor

Fixes #3772 .

Description

This PR fixes the race condition introduced if future is done after isDone() and before cancel().

I have removed the 'if' condition. As mentioned in #3403 (comment), It is not possible to fail while canceling unless future has already failed or canceled.


This PR has:

  • been self-reviewed.
  • been tested in a test Druid cluster.

Key changed/added classes in this PR
  • KafkaLookupExtractorFactory

Copy link
Contributor

@jihoonson jihoonson left a comment

Choose a reason for hiding this comment

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

LGTM. +1 after CI. Thanks @karthikbhat13!

@fjy fjy merged commit b8ceee4 into apache:master Oct 28, 2019
@jon-wei jon-wei added this to the 0.17.0 milestone Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition in KafkaLookupExtractorFactory
5 participants