lucasbru commented on code in PR #20541:
URL: https://github.com/apache/kafka/pull/20541#discussion_r2354935745


##########
streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/IQv2VersionedStoreIntegrationTest.java:
##########
@@ -103,19 +115,21 @@ public static void before() throws Exception {
             producer.send(new ProducerRecord<>(INPUT_TOPIC_NAME, 0,  
RECORD_TIMESTAMPS[2], RECORD_KEY, RECORD_VALUES[2])).get();
             producer.send(new ProducerRecord<>(INPUT_TOPIC_NAME, 0,  
RECORD_TIMESTAMPS[3], RECORD_KEY, RECORD_VALUES[3])).get();
         }
-        INPUT_POSITION.withComponent(INPUT_TOPIC_NAME, 0, 3);
+        inputPosition = Position.emptyPosition();
+        inputPosition = inputPosition.withComponent(INPUT_TOPIC_NAME, 0, 3);
     }
 
-    @BeforeEach
-    public void beforeTest() {
+    private void setup(final String groupProtocol) {
+        this.groupProtocol = groupProtocol;
         final StreamsBuilder builder = new StreamsBuilder();
         builder.table(INPUT_TOPIC_NAME,
             
Materialized.as(Stores.persistentVersionedKeyValueStore(STORE_NAME, 
HISTORY_RETENTION, SEGMENT_INTERVAL)));
         final Properties configs = new Properties();
-        configs.put(StreamsConfig.APPLICATION_ID_CONFIG, "app");
+        configs.put(StreamsConfig.APPLICATION_ID_CONFIG, "app-" + 
System.nanoTime() + "-" + groupProtocol);

Review Comment:
   We usually do
   
   ```
           final String safeTestName = safeUniqueTestName(testInfo);
           streamsConfiguration.put(StreamsConfig.APPLICATION_ID_CONFIG, "app-" 
+ safeTestName);
   ```
   
   This will not collide



-- 
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]

Reply via email to