[SPARK-20603][SS][Test]Set default number of topic partitions to 1 to reduce the load #17863
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
I checked the logs of https://amplab.cs.berkeley.edu/jenkins/job/spark-branch-2.2-test-maven-hadoop-2.7/47/ and found it took several seconds to create Kafka internal topic
__consumer_offsets
. As Kafka creates this topic lazily, the topic creation happens in the first testdeserialization of initial offset with Spark 2.1.0
and causes it timeout.This PR changes
offsets.topic.num.partitions
from the default value 50 to 1 to make creating__consumer_offsets
(50 partitions -> 1 partition) much faster.How was this patch tested?
Jenkins