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: us...@infra.apache.org With regards, Apache Git Services