You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/01/29 19:42:06 UTC
[GitHub] [pulsar] alpna13 opened a new issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
alpna13 opened a new issue #9370:
URL: https://github.com/apache/pulsar/issues/9370
#### Expected behavior
It should be able to consume from the Topic
#### Actual behavior
Consumer(With **Key_Shared** subscription) unable to consume the messages from Topic
#### Steps to reproduce
This is how we creating the consumer -
consumer = pulsarClient.newConsumer(Schema.BYTES)
.subscriptionMode(SubscriptionMode.Durable)
.topic(vmbConfig.getTopic())
.cryptoKeyReader(new RawFileKeyReader(vmbConfig.getPublicKeyFile(), vmbConfig.getPrivateKeyFile()))
.consumerName("Test Consumer")
.subscriptionName(vmbConfig.getSubscriptionName())
.subscriptionType(**SubscriptionType.Key_Shared**)
.keySharedPolicy(KeySharedPolicy.autoSplitHashRange())
.subscribe();
#### System configuration
**Pulsar version**: 2.6.2
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-789772317
Thanks and looking forward to your feedback.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] dlsprague commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
dlsprague commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-780094647
codelipenghui Our pulsar version is actually 2.6.0. Not that it will matter, but can you please test in that version?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-1058893805
The issue had no activity for 30 days, mark with Stale label.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] dlsprague commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
dlsprague commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-789768126
HI Actually when this occurs there are no errors in the logs on either client or server side. just does not consume. We have moved topic to a 2.7.0 server to see if this will correct as we are currently on 2.6.0. Previously it was working only on non-partitioned topic but then would stop working after several hours until subscription removed and restarted and then it would be fine for a while. We were never able to get it to work on a partitioned topic. Will be continuing testing on 2.7.0 and I'll provide updates on that. If still not working and no log information will see if we can turn up debug at least on client side. Thank you!
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-788930884
@dlsprague Could you please share the details such as error logs? This will help us to locate the problem, I think the partitioned topic will not affect the encryption.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] dlsprague commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
dlsprague commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-781606160
I am working with alpna13's team and we have confirmed that the problem seems to exist on partitioned topics only. They were able to successfully consume using key_shared with encryption on non-partitioned. Is there something specific that needs to be done when using partitioned and key_shared with encryption? Would you be able to test using partitioned topic? Thank you for your help.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] jiazhai commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-771334643
@alpna13, @codelipenghui's test is based on master, Would you please help try the latest master?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] alpna13 commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
alpna13 commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-771133393
We tested with the same code and in the same way but didn't work for us. Is there anything we need to take care while using **Key_Shared** subscription?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-770220192
@alpna13 There are no tests for covering the encrypted case, so I add a test in https://github.com/apache/pulsar/pull/9373. Would you please help check if it is the same as your test case? The test passed on my laptop.
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [pulsar] jiazhai commented on issue #9370: Consumer with KEY_SHARED subscription is not working with encrypted topic
Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #9370:
URL: https://github.com/apache/pulsar/issues/9370#issuecomment-771334643
@alpna13, @codelipenghui's test is based on master, Would you please help try the latest master?
----------------------------------------------------------------
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:
users@infra.apache.org