On May 26, 2015 4:17 PM, "Michael Klishin" <mkli...@pivotal.io> wrote:
>
> On 26 May 2015 at 13:41:03, rahul gupta (rahu...@gmail.com) wrote:
> > Concern : While a message is being delivered to a consumer, the
> > state transition from READY to UNACK does not seem to be "ATOMIC".
>
> Atomic with respect to what? (what other events)
>
> As far as what is going on in a single RabbitMQ message store (node), it
> is effectively atomic.
>  
By atomicity, i mean when a message is being delivered, queue stats should be Ready-1 and unack +1 atomically 
> > I am observing an intermittent state where the rabbitmq shows
> > zero messages(ready and unack both) and after a while, the messages
> > are being shown in UNACK'd state.
>
> Permanently or temporarily ? How long is "a while"?
>
Its temporary. 
A while is in ms. I make request every 10 ms for now.
> > It occurs very fast and can not be observed with naked eye.
>
> Have you considered that an HTTP request that returns the data runs concurrently with
> message deliveries? So there may be "in flight" messages at any time.
> --
Where are these ' in flight' messages accounted for? I guess, definitely not in 'ready'. How can i get a count of these messages?