Open NyaliaLui opened 3 years ago
I retried this example since many updates have been made to dev. Now the example sometimes fails with the same exception on the 1st run but succeeds with the expected output on subsequent retries.
Looks like a metadata issue
@NyaliaLui is this ticket still relevant?
Sometimes I also get this issue:
[DEBUG] wrote Produce v7; broker: 1, bytes_written: 221, write_wait: 121.458µs, time_to_write: 44µs, err: <nil>
[DEBUG] read Produce v7; broker: 1, bytes_read: 103, read_wait: 34.542µs, time_to_read: 47.187458ms, err: <nil>
[DEBUG] retry batches processed; wanted_metadata_update: true, triggering_metadata_update: true, should_backoff: false
[DEBUG] produced; broker: 1, to: topicDummy[6{retrying@-1,1(BROKER_NOT_AVAILABLE: The broker is not available.)}]
[INFO] metadata update triggered; why: produce request had retry batches
In the Kafka Streams examples, there is this example that shows how to join data between KafkaStreams and a GlobalStore.
The example successfully runs with one redpanda node which matches the example use-case. However, the example fails with 3 redpanda nodes.
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/node0/redpanda.yaml --smp=1
<path to build root>/release/clang/bin/redpanda --redpanda-cfg ~/local-cluster/node1/redpanda.yaml --smp=1
<path to build root>/release/clang/bin/redpanda --redpanda-cfg ~/local-cluster/node2/redpanda.yaml --smp=1
Create topics:
From within the kafka-streams-examples dir Run GlobalStore example (this will block until next step):
Run their driver which generates load:
Results
The example fails because of a problem serializing the Avro message and then crashes
and redpanda node0 reports that the broker is unavailable
JIRA Link: CORE-750