You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to execute Consumer#getLastMessageId when setting brokerEntryMetadataInterceptors #10950
Describe the bug
After setting brokerEntryMetadataInterceptors parameters in conf/broker.conf, we found that we cannot invoke method org.apache.pulsar.client.api.Consumer#getLastMessageId normally. At the same time, the log also prompted that an exception occurred during metadata parsing.
To Reproduce
Steps to reproduce the behavior:
set parameters in conf/broker.conf as we used in KoP
# refer to https://github.com/streamnative/kop/blob/master/docs/kop.md
brokerEntryMetadataInterceptors=org.apache.pulsar.common.intercept.AppendIndexMetadataInterceptor,org.apache.pulsar.common.intercept.AppendBrokerTimestampMetadataInterceptor
Expected behavior
Able to correctly execute Consumer#getLastMessageId in this scenario.
Screenshots
org.apache.pulsar.client.api.PulsarClientException$BrokerMetadataException:
The subscription XXX of the topic YYY gets the last message id was failed
Failed to get batch size for entry java.lang.IllegalArgumentException: Invalid unknonwn tag type: 6
at org.apache.pulsar.client.api.PulsarClientException.unwrap(PulsarClientException.java:987)
at org.apache.pulsar.client.impl.ConsumerBase.getLastMessageId(ConsumerBase.java:606)
Activity