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

Fix the broken Appenderator contract in KafkaIndexTask #5905

Merged
merged 4 commits into from Jul 3, 2018

Conversation

jihoonson
Copy link
Contributor

@jihoonson jihoonson commented Jun 27, 2018

Fixes #5729.

Mainly, I removed publishQueue and publishExecService from IncrementalIndexingKafkaTaskRunner which caused #5729. Instead, AppenderatorDriver (and thus Appenderator APIs are called by the same thread. See publishAndRegisterHandoff().

I additionally removed some unnecessary or unused variables.

  • Removed pauseAfterRead from KafkaIOConfig because it was always false.
  • Removed pauseMillis from IncrementalIndexingKafkaTaskRunner and timeout parameter from the pause() api. Those two variables are designed only for pauseAfterRead. Since that parameter is not used, pauseMillis was always PAUSE_FOREVER and timeout was always 0.
  • Removed resume parameter from setEndoffsets() api. This parameter was also used only for pauseAfterRead and always true.

Also, setOffsets() API now returns INTERNAL_SERVER_ERROR on failure.


This change is Reviewable

@jon-wei
Copy link
Contributor

jon-wei commented Jul 3, 2018

The threading changes look OK to me, can you describe more in the PR why the things removed from the pause/resume handling were unnecessary? I don't think I understood that part

@jon-wei jon-wei added this to the 0.12.2 milestone Jul 3, 2018
@jihoonson
Copy link
Contributor Author

@jon-wei thank you for the review. I've updated the PR description.

@gianm gianm merged commit 1ccabab into apache:master Jul 3, 2018
jihoonson added a commit to implydata/druid-public that referenced this pull request Jul 3, 2018
* Fix broken Appenderator contract in KafkaIndexTask

* fix build

* add publishFuture

* reuse sequenceToUse if possible
gianm pushed a commit to implydata/druid-public that referenced this pull request Jul 5, 2018
* Fix broken Appenderator contract in KafkaIndexTask

* fix build

* add publishFuture

* reuse sequenceToUse if possible
jihoonson added a commit to jihoonson/druid that referenced this pull request Jul 9, 2018
* Fix broken Appenderator contract in KafkaIndexTask

* fix build

* add publishFuture

* reuse sequenceToUse if possible
jihoonson added a commit that referenced this pull request Jul 9, 2018
* Fix broken Appenderator contract in KafkaIndexTask

* fix build

* add publishFuture

* reuse sequenceToUse if possible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants