devinbost commented on issue #6332: (Flaky-test) Intermittent failure of ProxyParserTest.testRegexSubscription URL: https://github.com/apache/pulsar/issues/6332#issuecomment-590655883 @jiazhai I added a lot more debugging statements, and I discovered that the UnsupportedOperationException is occurring immediately prior to: `cnx.sendRequestWithId(request, requestId).thenRun(() -> {` in `ConsumerImpl.connectionOpened()`, so in the code block below, the line `log.info("ConsumerImpl.connectionOpened(..)22");` never gets hit. ``` // startMessageRollbackDurationInSec should be consider only once when consumer connects to first time long startMessageRollbackDuration = (startMessageRollbackDurationInSec > 0 && startMessageId.equals(initialStartMessageId)) ? startMessageRollbackDurationInSec : 0; log.info("ConsumerImpl.connectionOpened(..)09"); ByteBuf request = Commands.newSubscribe(topic, subscription, consumerId, requestId, getSubType(), priorityLevel, consumerName, isDurable, startMessageIdData, metadata, readCompacted, conf.isReplicateSubscriptionState(), InitialPosition.valueOf(subscriptionInitialPosition.getValue()), startMessageRollbackDuration, si, createTopicIfDoesNotExist, conf.getKeySharedPolicy()); log.info("ConsumerImpl.connectionOpened(..)10"); if (startMessageIdData != null) { startMessageIdData.recycle(); } log.info("ConsumerImpl.connectionOpened(..)11"); cnx.sendRequestWithId(request, requestId).thenRun(() -> { log.info("ConsumerImpl.connectionOpened(..)22"); synchronized (ConsumerImpl.this) { ```
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
