GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug] Applying Pulsar Topic Policies fails when multiple policies are updated in a short period of time · Issue #24393 · apache/pulsar Closed Labels type/bugThe PR fixed a bug or issue reported a bug DescriptionSearch before reporting
Read release policy
User environmentPulsar Version = 4.0.3 Issue DescriptionI have a function to create topics and apply policies on that topic. admin.topicPolicies().setInactiveTopicPolicies(pulsarTopic, policies.inactive_topic_policies); admin.topics().setReplicationClusters(pulsarTopic, List.of("cluster-a", "cluster-b")); admin.topicPolicies().setSubscriptionTypesEnabledAsync(pulsarTopic, Set.of(SubscriptionType.Shared)); admin.topics().updateProperties(pulsarTopic, policies.properties); However, after applying these, when I verify the results I get mismatching results:
If I introduce a 1 second delay between each of the commands using Thread.sleep(1000), then I don't get these errors. Also the following order of commands works as well : admin.topics().setReplicationClusters(pulsarTopic, List.of("cluster-a", "cluster-b")); admin.topicPolicies().setInactiveTopicPolicies(pulsarTopic, policies.inactive_topic_policies); admin.topics().updateProperties(pulsarTopic, policies.properties); admin.topicPolicies().setSubscriptionTypesEnabledAsync(pulsarTopic, Set.of(SubscriptionType.Shared)); I believe this might be a result of Async policy application on the broker. Error messagesReproducing the issueYou can run the two method call orderings and verify the results. Additional informationNo response Are you willing to submit a PR?
Activity
MetadataMetadataAssigneesLabelstype/bugThe PR fixed a bug or issue reported a bug TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |