Sarah Abbey created GEODE-8498:
----------------------------------

             Summary: Messages written to Netty channel sometimes delivered out 
of order
                 Key: GEODE-8498
                 URL: https://issues.apache.org/jira/browse/GEODE-8498
             Project: Geode
          Issue Type: Bug
          Components: redis
            Reporter: Sarah Abbey



{code:java}
[err]: Mix SUBSCRIBE and PSUBSCRIBE in tests/unit/pubsub.tcl
Expected 'pmessage foo.* foo.bar hello' to be equal to 'message foo.bar hello'

*** [err]: Mix SUBSCRIBE and PSUBSCRIBE in tests/unit/pubsub.tcl
Expected 'pmessage foo.* foo.bar hello' to be equal to 'message foo.bar hello'
Cleanup: may take some time... OK
{code}

When writing responses to a Netty channel, the messages may get written out of 
order in the `writeAndFlush` call.  To verify this bug, we used a single thread 
to call `writeAndFlush` and added logging right before calling `writeAndFlush` 
and after `afterWrite` in the callback listener.  We saw the messages get 
logged in the proper order before `writeAndFlush` was called, but the messages 
were logged out of order in the callback listener and arrived in the wrong 
order on the client.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to