jaedonP commented on code in PR #7272:
URL: https://github.com/apache/incubator-kie/pull/7272#discussion_r4539355603
##########
kogito-quarkus/addons/persistence/kafka/runtime/src/test/java/org/kie/kogito/persistence/kafka/KafkaProcessInstancesIT.java:
##########
@@ -83,7 +86,12 @@ public class KafkaProcessInstancesIT {
KafkaStreamsStateListener listener;
@BeforeEach
- void start() {
+ void start() throws Exception {
+ // With Kafka Streams >= 4.2 the global table fails to initialize ("no
partitions available") if its source topic
+ // does not exist yet, so create it before the topology starts.
+ try (Admin admin =
Admin.create(singletonMap(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG,
kafka.getBootstrapServers()))) {
Review Comment:
Thank you. start() no longer declares throws Exception. Topic creation is
now in a small helper that catches the two checked exceptions explicitly:
- ExecutionException fails with a single line, Unable to create Kafka topic
'<topic>': <cause>, and carries the original cause, so there is no wrapped
stack trace.
- InterruptedException restores the interrupt flag and fails with a
single-line message. KafkaProcessInstancesIT passes locally (3 tests).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]