dawillcox commented on a change in pull request #6039: [Issue
6024][pulsar_storm] PulsarSpout emit to multiple streams
URL: https://github.com/apache/pulsar/pull/6039#discussion_r369617380
##########
File path: pulsar-storm/src/main/java/org/apache/pulsar/storm/PulsarSpout.java
##########
@@ -326,7 +326,11 @@ private boolean mapToValueAndEmit(Message<byte[]> msg) {
}
ack(msg);
} else {
- collector.emit(values, msg);
+ if (values instanceof PulsarTuple) {
+ collector.emit(((PulsarTuple) values).getOutputStream(),
values, msg);
+ } else {
+ collector.emit(values, msg);
+ };
Review comment:
Oops. Done.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services