This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch branch-4.16
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/branch-4.16 by this push:
new 15c37b65f1 Chagne the method getUnderreplicatedFragments to the
package private (#4174)
15c37b65f1 is described below
commit 15c37b65f1c1c1c0c2d4c7ea00a90a6f7cdba1a4
Author: Yong Zhang <[email protected]>
AuthorDate: Thu Jan 11 03:37:05 2024 +0800
Chagne the method getUnderreplicatedFragments to the package private (#4174)
---
###Motivation
Allow to override the getUnderreplicatedFragments to change
the customize the behaviour.
---
.../main/java/org/apache/bookkeeper/replication/ReplicationWorker.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java
index f22231c567..cf1f2f2f59 100644
---
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java
+++
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java
@@ -600,7 +600,7 @@ public class ReplicationWorker implements Runnable {
/**
* Gets the under replicated fragments.
*/
- private Set<LedgerFragment> getUnderreplicatedFragments(LedgerHandle lh,
Long ledgerVerificationPercentage)
+ Set<LedgerFragment> getUnderreplicatedFragments(LedgerHandle lh, Long
ledgerVerificationPercentage)
throws InterruptedException {
//The data loss fragments is first to repair. If a fragment is
data_loss and not_adhering_placement
//at the same time, we only fix data_loss in this time. After fix
data_loss, the fragment is still