guozhangwang commented on code in PR #18111:
URL: https://github.com/apache/kafka/pull/18111#discussion_r1880609532


##########
streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamKStreamJoin.java:
##########
@@ -77,10 +85,21 @@ abstract class KStreamKStreamJoin<K, VLeft, VRight, VOut, 
VThis, VOther> impleme
         this.enableSpuriousResultFix = windows.spuriousResultFixEnabled();
         this.joiner = joiner;
         this.outer = outer;
-        this.outerJoinWindowName = outerJoinWindowName;
+        this.outerJoinWindowStoreName = 
outerJoinWindowStoreFactory.map(StoreFactory::storeName);
+        this.outerJoinWindowStoreFactory = outerJoinWindowStoreFactory;
         this.sharedTimeTrackerSupplier = sharedTimeTrackerSupplier;
     }
 
+    @Override
+    public Set<StoreBuilder<?>> stores() {
+        final Set<StoreBuilder<?>> stores = new HashSet<>();
+        stores.add(new FactoryWrappingStoreBuilder<>(otherWindowStoreFactory));
+        if (outerJoinWindowStoreFactory.isPresent() && 
enableSpuriousResultFix) {

Review Comment:
   Oh~ that's for checking, that's a bit surprising to me.



##########
streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamKStreamJoin.java:
##########
@@ -77,10 +85,21 @@ abstract class KStreamKStreamJoin<K, VLeft, VRight, VOut, 
VThis, VOther> impleme
         this.enableSpuriousResultFix = windows.spuriousResultFixEnabled();
         this.joiner = joiner;
         this.outer = outer;
-        this.outerJoinWindowName = outerJoinWindowName;
+        this.outerJoinWindowStoreName = 
outerJoinWindowStoreFactory.map(StoreFactory::storeName);
+        this.outerJoinWindowStoreFactory = outerJoinWindowStoreFactory;
         this.sharedTimeTrackerSupplier = sharedTimeTrackerSupplier;
     }
 
+    @Override
+    public Set<StoreBuilder<?>> stores() {
+        final Set<StoreBuilder<?>> stores = new HashSet<>();
+        stores.add(new FactoryWrappingStoreBuilder<>(otherWindowStoreFactory));
+        if (outerJoinWindowStoreFactory.isPresent() && 
enableSpuriousResultFix) {

Review Comment:
   Oh~ thanks for checking, that's a bit surprising to me.



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