Skip to content

Commit da3fbfa

Browse files
TakaHiR07fanjianye
authored andcommitted
[fix][broker] Invalid regex in PulsarLedgerManager causes zk data notification to be ignored (apache#23977)
Co-authored-by: fanjianye <fanjianye@bigo.sg> (cherry picked from commit a532798) (cherry picked from commit 3da4c7a)
1 parent 0dc8580 commit da3fbfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pulsar-metadata/src/main/java/org/apache/pulsar/metadata/bookkeeper/PulsarLedgerManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public void unregisterLedgerMetadataListener(long ledgerId,
292292
}
293293
}
294294

295-
private static final Pattern ledgerPathRegex = Pattern.compile("/L[0-9]+$");
295+
private static final Pattern ledgerPathRegex = Pattern.compile(".*/L[0-9]+$");
296296

297297
private void handleDataNotification(Notification n) {
298298
if (!n.getPath().startsWith(ledgerRootPath)

0 commit comments

Comments
 (0)