Skip to content

Commit

Permalink
Fix log numbber incorrect on pulsar metadata (apache#13395)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoothzj authored Dec 20, 2021
1 parent b261d6a commit 828af10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ List<String> getChildrenAt(String path) throws IOException {
return store.getChildren(path).get();
} catch (ExecutionException e) {
if (log.isDebugEnabled()) {
log.debug("Failed to ", path);
log.debug("Failed to get children at {}", path);
}
throw new IOException(e);
} catch (InterruptedException ie) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private CompletableFuture<Long> internalGenerateShortLedgerId() {
// delete the znode for id generation
store.delete(stat.getPath(), Optional.empty()).
exceptionally(ex -> {
log.warn("Exception during deleting node for id generation : {}", ex);
log.warn("Exception during deleting node for id generation: ", ex);
return null;
});

Expand Down Expand Up @@ -226,7 +226,7 @@ public CompletableFuture<Long> generateLedgerIdImpl(final String prefix) {
// delete the znode for id generation
store.delete(stat.getPath(), Optional.empty()).
exceptionally(ex -> {
log.warn("Exception during deleting node for id generation : {}", ex);
log.warn("Exception during deleting node for id generation: ", ex);
return null;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private static void waitAndVerifyCompacted(PulsarClient client, String topic,
.readCompacted(true).subscriptionName(sub).subscribe()) {
Message<String> m = consumer.receive();
assertEquals(m.getKey(), expectedKey);
if (m.getValue() == expectedValue) {
if (m.getValue().equals(expectedValue)) {
break;
}
}
Expand Down

0 comments on commit 828af10

Please sign in to comment.