BewareMyPower opened a new issue, #520:
URL: https://github.com/apache/pulsar-client-cpp/issues/520

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing 
similar.
   
   
   ### Version
   
   master
   
   ### Minimal reproduce step
   
   ```c++
   TEST(ConsumerTest, testSeekAfterSeek) {
       const auto topic = "test-seek-after-seek-" + 
std::to_string(time(nullptr));
       const auto subscription = "sub";
       Client client(lookupUrl);
       Consumer consumer;
       ASSERT_EQ(ResultOk, client.subscribe(topic, subscription, consumer));
       ASSERT_EQ(ResultOk, consumer.seek(TimeUtils::currentTimeMillis()));
       ASSERT_EQ(ResultOk, consumer.seek(MessageId::earliest()));
       ASSERT_EQ(ResultOk, consumer.seek(TimeUtils::currentTimeMillis()));
       client.close();
   }
   ```
   
   Run the test above
   
   ### What did you expect to see?
   
   All seek calls should succeed
   
   ### What did you see instead?
   
   
   ```
   Expected equality of these values:
     ResultOk
       Which is: Ok
     consumer.seek(MessageId::earliest())
       Which is: NotConnected
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


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

Reply via email to