Skip to content

Commit

Permalink
fix: clean up list interface and mistake in store builder (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishan Sairam Adapa authored Oct 18, 2023
1 parent 4433123 commit 3939ffc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ hypertrace-entity-service = "0.8.78"
hypertrace-config-service = "0.1.54"
hypertrace-grpc-utils = "0.12.4"
hypertrace-serviceFramework = "0.1.60"
hypertrace-kafkaStreams = "0.4.0"
hypertrace-kafkaStreams = "0.4.1"
hypertrace-view-generator = "0.4.19"
grpc = "1.57.2"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ StreamsBuilder buildTopologyWithClock(
Stores.persistentKeyValueStore(SPAN_STATE_STORE_NAME), keySerde, valueSerde)
.withCachingEnabled();

StoreBuilder<KeyValueStore<Long, TraceIdentity>> traceEmitPunctuatorStoreBuilder =
StoreBuilder<KeyValueStore<Long, List<TraceIdentity>>> traceEmitPunctuatorStoreBuilder =
Stores.keyValueStoreBuilder(
Stores.persistentKeyValueStore(TRACE_EMIT_PUNCTUATOR_STORE_NAME),
Serdes.Long(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -112,7 +111,7 @@ public void init(ProcessorContext<TraceIdentity, StructuredTrace> context) {
defaultMaxSpanCountLimit = jobConfig.getLong(DEFAULT_INFLIGHT_TRACE_MAX_SPAN_COUNT);
}

KeyValueStore<Long, ArrayList<TraceIdentity>> traceEmitPunctuatorStore =
KeyValueStore<Long, List<TraceIdentity>> traceEmitPunctuatorStore =
context.getStateStore(TRACE_EMIT_PUNCTUATOR_STORE_NAME);
traceEmitPunctuator =
new TraceEmitPunctuator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class TraceEmitPunctuator extends AbstractThrottledPunctuator<TraceIdentity> {

TraceEmitPunctuator(
ThrottledPunctuatorConfig throttledPunctuatorConfig,
KeyValueStore<Long, ArrayList<TraceIdentity>> throttledPunctuatorStore,
KeyValueStore<Long, List<TraceIdentity>> throttledPunctuatorStore,
ProcessorContext<TraceIdentity, StructuredTrace> context,
KeyValueStore<SpanIdentity, RawSpan> spanStore,
KeyValueStore<TraceIdentity, TraceState> traceStateStore,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import java.nio.ByteBuffer;
import java.util.List;
import org.apache.kafka.streams.processor.To;
import org.apache.kafka.streams.processor.api.ProcessorContext;
import org.apache.kafka.streams.state.KeyValueStore;
import org.hypertrace.core.datamodel.Event;
Expand Down Expand Up @@ -44,7 +43,6 @@ public void setUp() {
when(context.keySerde()).thenReturn(avroSerde);
spanStore = mock(KeyValueStore.class);
traceStateStore = mock(KeyValueStore.class);
To outputTopicProducer = mock(To.class);
emitCallback =
new TraceEmitPunctuator(
mock(ThrottledPunctuatorConfig.class),
Expand Down

0 comments on commit 3939ffc

Please sign in to comment.