Skip to content

Commit

Permalink
Merge branch '3.1_ds' into 3.1_fx_merged
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed May 2, 2024
2 parents 9a11c26 + 5bf373d commit 10ffade
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,15 @@ public void operationFailed(MetaStoreException e) {
}
}

@Override
public void rolloverCursorsInBackground() {
if (cursors.hasDurableCursors()) {
executor.execute(() -> {
cursors.forEach(ManagedCursor::periodicRollover);
});
}
}

/**
* @param ledgerId the ledger handle which maybe will be released.
* @return if the ledger handle was released.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@ private void readMorePoliciesAsync(SystemTopicClient.Reader<PulsarEvent> reader)
} else {
Throwable cause = FutureUtil.unwrapCompletionException(ex);
if (cause instanceof PulsarClientException.AlreadyClosedException) {
log.info("Closing the topic policies reader for {}", reader.getSystemTopic().getTopicName());
log.info("Closing the topic policies reader for {}",
reader.getSystemTopic().getTopicName());
cleanCacheAndCloseReader(
reader.getSystemTopic().getTopicName().getNamespaceObject(), false);
} else {
Expand Down

0 comments on commit 10ffade

Please sign in to comment.