belliottsmith commented on code in PR #4936:
URL: https://github.com/apache/cassandra/pull/4936#discussion_r3590915023


##########
src/java/org/apache/cassandra/transport/Dispatcher.java:
##########
@@ -480,11 +474,19 @@ static Message.Response processRequest(Channel channel, 
Message.Request request,
     void processRequest(Channel channel, Message.Request request, 
FlushItemConverter forFlusher, Overload backpressure, RequestTime requestTime)
     {
         Message.Response response = processRequest(channel, request, 
backpressure, requestTime);
-        FlushItem<?> toFlush = forFlusher.toFlushItem(channel, request, 
response);
+        FlushItem<?> toFlush = forFlusher.toFlushItem(channel, request, 
decorateResponse(response, request));
         Message.logger.trace("Responding: {}, v={}", response, 
request.connection().getVersion());
         flush(toFlush);
     }
 
+    private static Message.Response decorateResponse(Message.Response 
response, Message.Request request)
+    {
+        assert response != null;
+        response.setStreamId(request.getStreamId());

Review Comment:
   If we're setting it here, I'm still unsure why we're setting it at all 
callers to `ErrorMessage` as well...



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to