Open NyaliaLui opened 3 years ago
Related: #2567
seems like it might be a race. one experiment would be: arrange for the consumer group and transactions internal topics to be created through some other means before trying the streams example. i'm not sure what other races might exist, but this looks like an interesting issue you have found.
In the Kafka Streams examples, there is this example that shows how to join data using a Global KTable. The example hangs on it's first run but subsequent runs succeed with the expected output.
See the following to reproduce
Requires: Follow the build steps for kafka-streams here -- you'll need Apache Maven and Java 8+ (I use Java 11)
My redpanda .yaml files: found here
Run redpanda brokers:
<path to build root>/release/clang/bin/redpanda --redpanda-cfg ~/local-cluster/single/single.yaml --smp=1
Create topics:
From within the kafka-streams-examples dir Run GlobalKTables example (this will block until next step):
Run their driver which generates load:
Results
On the first run, no output is generated from the driver in Step 4. Re-do Steps 3 & 4 by using ctrl-c to terminate and you should see output similar to below.
The example should work the first time without restarting.
JIRA Link: CORE-771