You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/11/08 18:04:32 UTC
[GitHub] [kafka] jeqo commented on a change in pull request #11412: KAFKA-10543: Convert KTable joins to new PAPI
jeqo commented on a change in pull request #11412:
URL: https://github.com/apache/kafka/pull/11412#discussion_r744970521
##########
File path: streams/src/test/java/org/apache/kafka/streams/kstream/internals/foreignkeyjoin/SubscriptionResolverJoinProcessorSupplierTest.java
##########
@@ -133,17 +132,17 @@ public void shouldForwardWhenHashMatches() {
JOINER,
leftJoin
);
- final org.apache.kafka.streams.processor.Processor<String, SubscriptionResponseWrapper<String>> processor = processorSupplier.get();
- final MockProcessorContext context = new MockProcessorContext();
+ final Processor<String, SubscriptionResponseWrapper<String>, String, String> processor = processorSupplier.get();
+ final MockProcessorContext<String, String> context = new MockProcessorContext<>();
processor.init(context);
- context.setRecordMetadata("topic", 0, 0, new RecordHeaders(), 0);
+ context.setRecordMetadata("topic", 0, 0);
valueGetterSupplier.put("lhs1", "lhsValue");
final long[] hash = Murmur3.hash128(STRING_SERIALIZER.serialize("topic-join-resolver", "lhsValue"));
- processor.process("lhs1", new SubscriptionResponseWrapper<>(hash, "rhsValue"));
- final List<MockProcessorContext.CapturedForward> forwarded = context.forwarded();
+ processor.process(new Record<>("lhs1", new SubscriptionResponseWrapper<>(hash, "rhsValue"), 0));
+ final List<MockProcessorContext.CapturedForward<? extends String, ? extends String>> forwarded = context.forwarded();
assertThat(forwarded.size(), is(1));
- assertThat(forwarded.get(0).keyValue(), is(new KeyValue<>("lhs1", "(lhsValue,rhsValue)")));
+// assertThat(forwarded.get(0).keyValue(), is(new KeyValue<>("lhs1", "(lhsValue,rhsValue)")));
Review comment:
of course! 😅
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org