If I create a simple topology where I have a source and a processor I am getting double the expected StreamThread in the consoles.
For example, if I set threads to one and have one partition I see 2 stream threads. If I set to 20 threads and have 20 partitions I see 40 stream threads.
Based on Kafka Streams thread number, I was expecting half of these numbers.
I am configuring something wrong or is this expected?
EDIT: After stream = new KafkaStreams(topology, streamsConfig); is called I only see it create 20 threads.
After stream.start() is called I see those 20 threads transition from CREATED to RUNNING.
It is only later in the initialization that the other 20 threads get created. It looks like StreamsBuilderFactoryBean#start() is then getting called where the topology contains nothing. Looks like I either need to stop this from getting called somehow or remove my creation process. Not sure what is preferred.