Skip to content

Conversation

@koeninger
Copy link
Contributor

What changes were proposed in this pull request?

Bring the kafka-0-8 subproject up to date with some test modifications from development on 0-10.

Main changes are

  • eliminating waits on concurrent queue in favor of an assert on received results,
  • atomics instead of volatile (although this probably doesn't matter)
  • increasing uniqueness of topic names

How was this patch tested?

Unit tests

@koeninger
Copy link
Contributor Author

@srowen regarding your message on the mailing list about seeing DirectKafkaStreamSuite failures, can you see if this is more reliable for you?

@SparkQA
Copy link

SparkQA commented Jul 6, 2016

Test build #61861 has finished for PR 14073 at commit 495cee7.

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

@srowen
Copy link
Member

srowen commented Jul 6, 2016

@koeninger yeah this patch applied to 2.0.0 RC2 makes that test pass for me. Looks good for 2.0 IMHO


// Send data to Kafka and wait for it to be received
def sendDataAndWaitForReceive(data: Seq[Int]) {
def sendData(data: Seq[Int]) {
Copy link
Contributor

@tdas tdas Jul 6, 2016

Choose a reason for hiding this comment

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

actually, can you remind me why was this test changed from testing the received data to just testing the number of records received?

@tdas
Copy link
Contributor

tdas commented Jul 6, 2016

LGTM. Merging this to master and 2.0

@asfgit asfgit closed this in b8ebf63 Jul 6, 2016
asfgit pushed a commit that referenced this pull request Jul 6, 2016
… well

## What changes were proposed in this pull request?

Bring the kafka-0-8 subproject up to date with some test modifications from development on 0-10.

Main changes are
- eliminating waits on concurrent queue in favor of an assert on received results,
- atomics instead of volatile (although this probably doesn't matter)
- increasing uniqueness of topic names

## How was this patch tested?

Unit tests

Author: cody koeninger <cody@koeninger.org>

Closes #14073 from koeninger/kafka-0-8-test-direct-cleanup.

(cherry picked from commit b8ebf63)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
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