phaistos-networks / TANK

A very high performance distributed log service
Apache License 2.0
938 stars 70 forks source link

Consume semantics - multiple partitions request issue #41

Closed markpapadakis closed 8 years ago

markpapadakis commented 8 years ago

If, in a single consume request, you request content from two partitions, and one of them does not exist, and the other has no data (will need to tail), like so:

        client.consume(
                {
                        { {_S8("foo_filtered"), 1}, { UINT64_MAX, 1e5 } },
                        { {_S8("foo"), 0}, { UINT64_MAX, 1e5 } },
                }, 1e3, 0);

Tank will respond immediately with not-found for foo_filtrered:1, but it will not register a watch for foo:0 (which is defined). This is correct, however, we don't get information about foo:0 in the response.

markpapadakis commented 8 years ago
markpapadakis commented 8 years ago

To reproduce, based on the consume() call example used in this issue, make sure that the first partition is undefined, and the later is defined.

markpapadakis commented 8 years ago

Fixed.