You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@samza.apache.org by GitBox <gi...@apache.org> on 2019/04/04 03:56:29 UTC

[GitHub] [samza] mynameborat commented on a change in pull request #984: Samza 2116: Making sink, sendTo(table), sendTo(stream) non-terminal

mynameborat commented on a change in pull request #984: Samza 2116: Making sink, sendTo(table), sendTo(stream) non-terminal
URL: https://github.com/apache/samza/pull/984#discussion_r272004338
 
 

 ##########
 File path: samza-core/src/main/java/org/apache/samza/operators/impl/OutputOperatorImpl.java
 ##########
 @@ -66,15 +66,15 @@ protected void handleInit(Context context) {
     }
 
     collector.send(new OutgoingMessageEnvelope(systemStream, null, key, value));
-    return CompletableFuture.completedFuture(Collections.emptyList());
+    return CompletableFuture.completedFuture(new ArrayList<M>(Arrays.asList(message)));
 
 Review comment:
   `Collections.singleton(message)` seems simpler and concise. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services