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

[SPARK-17782][STREAMING][KAFKA] alternative eliminate race condition of poll twice #15401

Closed
wants to merge 4 commits into from

Conversation

koeninger
Copy link
Contributor

What changes were proposed in this pull request?

Alternative approach to #15387

@SparkQA
Copy link

SparkQA commented Oct 8, 2016

Test build #66559 has finished for PR 15401 at commit 143bf12.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 8, 2016

Test build #66562 has finished for PR 15401 at commit eae5ba1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Oct 12, 2016

@koeninger sorry for the delay. Actually, my concern is poll(0) in ConsumerStrategy.onStart may update the offsets.

@koeninger
Copy link
Contributor Author

@zsxwing so poll is only called in consumer strategy in situations in which starting offsets have been provided, and seek is called immediately thereafter for those offsets. What is the specific concern at that point?

If you want me to make paranoidPoll a static method and call it from consumer offsets as well I can, but....

@zsxwing
Copy link
Member

zsxwing commented Oct 12, 2016

@koeninger Sorry. I didn't notice the seek. LGTM. Merging to master and 2.0.

@asfgit asfgit closed this in f9a56a1 Oct 12, 2016
asfgit pushed a commit that referenced this pull request Oct 12, 2016
…of poll twice

## What changes were proposed in this pull request?

Alternative approach to #15387

Author: cody koeninger <cody@koeninger.org>

Closes #15401 from koeninger/SPARK-17782-alt.

(cherry picked from commit f9a56a1)
Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…of poll twice

## What changes were proposed in this pull request?

Alternative approach to apache#15387

Author: cody koeninger <cody@koeninger.org>

Closes apache#15401 from koeninger/SPARK-17782-alt.
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