Skip to content

Commit 3939ffc

Browse files
author
Kishan Sairam Adapa
authored
fix: clean up list interface and mistake in store builder (#433)
1 parent 4433123 commit 3939ffc

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ hypertrace-entity-service = "0.8.78"
33
hypertrace-config-service = "0.1.54"
44
hypertrace-grpc-utils = "0.12.4"
55
hypertrace-serviceFramework = "0.1.60"
6-
hypertrace-kafkaStreams = "0.4.0"
6+
hypertrace-kafkaStreams = "0.4.1"
77
hypertrace-view-generator = "0.4.19"
88
grpc = "1.57.2"
99

raw-spans-grouper/raw-spans-grouper/src/main/java/org/hypertrace/core/rawspansgrouper/RawSpansGrouper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ StreamsBuilder buildTopologyWithClock(
8686
Stores.persistentKeyValueStore(SPAN_STATE_STORE_NAME), keySerde, valueSerde)
8787
.withCachingEnabled();
8888

89-
StoreBuilder<KeyValueStore<Long, TraceIdentity>> traceEmitPunctuatorStoreBuilder =
89+
StoreBuilder<KeyValueStore<Long, List<TraceIdentity>>> traceEmitPunctuatorStoreBuilder =
9090
Stores.keyValueStoreBuilder(
9191
Stores.persistentKeyValueStore(TRACE_EMIT_PUNCTUATOR_STORE_NAME),
9292
Serdes.Long(),

raw-spans-grouper/raw-spans-grouper/src/main/java/org/hypertrace/core/rawspansgrouper/RawSpansProcessor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.time.Clock;
2424
import java.time.Duration;
2525
import java.time.Instant;
26-
import java.util.ArrayList;
2726
import java.util.HashMap;
2827
import java.util.List;
2928
import java.util.Map;
@@ -112,7 +111,7 @@ public void init(ProcessorContext<TraceIdentity, StructuredTrace> context) {
112111
defaultMaxSpanCountLimit = jobConfig.getLong(DEFAULT_INFLIGHT_TRACE_MAX_SPAN_COUNT);
113112
}
114113

115-
KeyValueStore<Long, ArrayList<TraceIdentity>> traceEmitPunctuatorStore =
114+
KeyValueStore<Long, List<TraceIdentity>> traceEmitPunctuatorStore =
116115
context.getStateStore(TRACE_EMIT_PUNCTUATOR_STORE_NAME);
117116
traceEmitPunctuator =
118117
new TraceEmitPunctuator(

raw-spans-grouper/raw-spans-grouper/src/main/java/org/hypertrace/core/rawspansgrouper/TraceEmitPunctuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class TraceEmitPunctuator extends AbstractThrottledPunctuator<TraceIdentity> {
7777

7878
TraceEmitPunctuator(
7979
ThrottledPunctuatorConfig throttledPunctuatorConfig,
80-
KeyValueStore<Long, ArrayList<TraceIdentity>> throttledPunctuatorStore,
80+
KeyValueStore<Long, List<TraceIdentity>> throttledPunctuatorStore,
8181
ProcessorContext<TraceIdentity, StructuredTrace> context,
8282
KeyValueStore<SpanIdentity, RawSpan> spanStore,
8383
KeyValueStore<TraceIdentity, TraceState> traceStateStore,

raw-spans-grouper/raw-spans-grouper/src/test/java/org/hypertrace/core/rawspansgrouper/TraceEmitPunctuatorTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import java.nio.ByteBuffer;
1313
import java.util.List;
14-
import org.apache.kafka.streams.processor.To;
1514
import org.apache.kafka.streams.processor.api.ProcessorContext;
1615
import org.apache.kafka.streams.state.KeyValueStore;
1716
import org.hypertrace.core.datamodel.Event;
@@ -44,7 +43,6 @@ public void setUp() {
4443
when(context.keySerde()).thenReturn(avroSerde);
4544
spanStore = mock(KeyValueStore.class);
4645
traceStateStore = mock(KeyValueStore.class);
47-
To outputTopicProducer = mock(To.class);
4846
emitCallback =
4947
new TraceEmitPunctuator(
5048
mock(ThrottledPunctuatorConfig.class),

0 commit comments

Comments
 (0)