jiazhai commented on a change in pull request #4366: [cpp client]support key
shared for cpp client
URL: https://github.com/apache/pulsar/pull/4366#discussion_r287553955
##########
File path: pulsar-client-cpp/tests/ConsumerConfigurationTest.cc
##########
@@ -69,6 +69,47 @@ TEST(ConsumerConfigurationTest,
testReadCompactPersistentFailover) {
consumer.close();
}
+TEST(ConsumerConfigurationTest, testSubscribePersistentKeyShared) {
+ std::string lookupUrl = "pulsar://localhost:6650";
+ std::string topicName = "persist-key-shared-topic";
+ std::string subName = "test-persist-key-shared";
+
+ Result result;
+
+ ConsumerConfiguration config;
+ // now, key-shared not support read compact
+ config.setReadCompacted(false);
Review comment:
maybe we could remove these 2 lines above
----------------------------------------------------------------
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