Skip to content

Commit 8d3542c

Browse files
bm1549claude
andcommitted
Add SEQUENTIAL ID strategy for deterministic flake reproduction
Use SEQUENTIAL id.generation.strategy in the DSM-disabled Kafka test to force a deterministic sort order for SORT_TRACES_BY_ID. Sequential IDs sort traces in creation order, which differs from the reverse mapping the original positional code assumed. This proves the dynamic parent lookup fix handles any trace ordering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b780ce8 commit 8d3542c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dd-java-agent/instrumentation/kafka/kafka-clients-0.11/src/test/groovy/KafkaClientTestBase.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,10 @@ class KafkaClientDataStreamsDisabledForkedTest extends KafkaClientTestBase {
14811481
super.configurePreAgent()
14821482
injectSysConfig("dd.service", "KafkaClientDataStreamsDisabledForkedTest")
14831483
injectSysConfig("dd.kafka.legacy.tracing.enabled", "true")
1484+
// Deterministic reproduction: SEQUENTIAL ID strategy forces a known sort order
1485+
// that differs from the reverse order the original positional code assumed,
1486+
// proving the dynamic parent lookup fix handles any ordering.
1487+
injectSysConfig("id.generation.strategy", "SEQUENTIAL")
14841488
}
14851489

14861490
@Override

0 commit comments

Comments
 (0)