Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.2k
Subscription: support unsubscribe from completed topics under client heartbeat thread#15595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -339,6 +339,25 @@ public boolean isCommitContextOutdated(final SubscriptionCommitContext commitCon | ||||||
| return prefetchingQueue.isCommitContextOutdated(commitContext); | ||||||
| } | ||||||
| public List<String> fetchTopicNamesToUnsubscribe(final Set<String> topicNames) { | ||||||
| final List<String> topicNamesToUnsubscribe = new ArrayList<>(); | ||||||
| for (final String topicName : topicNames) { | ||||||
| final SubscriptionPrefetchingQueue prefetchingQueue = | ||||||
| topicNameToPrefetchingQueue.get(topicName); | ||||||
| // If there is no prefetching queue for the topic, check if it's completed | ||||||
| if (Objects.isNull(prefetchingQueue) && completedTopicNames.containsKey(topicName)) { | ||||||
| LOGGER.info( | ||||||
CopilotAI | ||||||
| LOGGER.info( | |
| LOGGER.debug( |
CopilotAIMay 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This busy-wait loop lacks a timeout or failure condition, which can hang the test indefinitely. Add a maximum wait time or a timeout assertion to prevent CI stalls.