Repository navigation
Kafka Source - #24
Kafka Source#24
Conversation
|
Merged build finished. Test FAILed. |
|
Test FAILed. |
There was a problem hiding this comment.
maybe try this test case:
(1 to 50).foreach { i =>
test(s"basic receiving #$i") {
val topic = s"topic$i"
testUtils.createTopic(topic)
val kafkaSource = KafkaSource(Set(topic), kafkaParams)
val mapped =
kafkaSource
.toDS()
.map(kv => new String(kv._2).toInt + 1)
testStream(mapped)(
AddKafkaData(kafkaSource, topic, 1, 2, 3),
CheckAnswer(2, 3, 4),
StopStream,
DropBatches(1),
StartStream,
CheckAnswer(2, 3, 4),
StopStream,
AddKafkaData(kafkaSource, topic, 4, 5, 6),
StartStream,
CheckAnswer(2, 3, 4, 5, 6, 7),
AddKafkaData(kafkaSource, topic, 7),
CheckAnswer(2, 3, 4, 5, 6, 7, 8))
}
}There was a problem hiding this comment.
Oh yeah, I am going to add more tests! That's why WIP. Going to add multi-topic tests, etc.
There was a problem hiding this comment.
Of course, I just tried that specific test and it uncovered several concurrency issues.
|
Merged build finished. Test FAILed. |
|
Test FAILed. |
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
There was a problem hiding this comment.
@marmbrus This is a bug here. Basically, [0, 0] < [0, 1] is correct, but the earlier code would give exception as signs = [0, -1]
|
I want to add the randomized testing as well, but I dont want this to get blocked by that. Please start reviewing this. |
|
Merged build finished. Test FAILed. |
|
Test FAILed. |
|
Merged build finished. Test FAILed. |
|
Test FAILed. |
|
@marmbrus Ping for review. Also Jenkins does not seem to be testing this. What do I do to force it? |
|
Jenkins, test this please. |
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
There was a problem hiding this comment.
Spark/Kafka ordering are inconsistent with the file above.
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
There was a problem hiding this comment.
I think this should be equals as well. Note that means we need to override hashcode too.
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
There was a problem hiding this comment.
I'm not sure that its valid to override equals without also overriding hashCode
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
No description provided.