This is an automated email from the ASF dual-hosted git repository.

tkhurana pushed a commit to branch PHOENIX-7562-feature-new
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/PHOENIX-7562-feature-new by 
this push:
     new 5fea83d180 Raise forwarder in-progress directory processing 
probability default to 20%
5fea83d180 is described below

commit 5fea83d1801ff7bffc5f3b17093b270a1a10b3f7
Author: tkhurana <[email protected]>
AuthorDate: Sat Aug 8 12:22:49 2026 -0700

    Raise forwarder in-progress directory processing probability default to 20%
    
    The forwarder previously inherited the base 5% default for how often a 
replay
    round also sweeps the in-progress directory. Raise it to a 
forwarder-specific
    20% default so a file left in-progress by a peer's failed claim is retried
    sooner, shortening the tail on reconvergence. The existing config key still
    overrides it.
---
 .../phoenix/replication/ReplicationLogDiscoveryForwarder.java     | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/phoenix-core-server/src/main/java/org/apache/phoenix/replication/ReplicationLogDiscoveryForwarder.java
 
b/phoenix-core-server/src/main/java/org/apache/phoenix/replication/ReplicationLogDiscoveryForwarder.java
index eeaf6b757d..6c7c965b0f 100644
--- 
a/phoenix-core-server/src/main/java/org/apache/phoenix/replication/ReplicationLogDiscoveryForwarder.java
+++ 
b/phoenix-core-server/src/main/java/org/apache/phoenix/replication/ReplicationLogDiscoveryForwarder.java
@@ -57,6 +57,12 @@ public class ReplicationLogDiscoveryForwarder extends 
ReplicationLogDiscovery {
   public static final String 
REPLICATION_FORWARDER_IN_PROGRESS_PROCESSING_PROBABILITY_KEY =
     "phoenix.replication.forwarder.in.progress.processing.probability";
 
+  /**
+   * Default probability (in percentage) for processing files from the 
out-progress directory.
+   * Higher than the base default so a file left behind by a peer's failed 
claim is retried sooner.
+   */
+  public static final double 
DEFAULT_FORWARDER_IN_PROGRESS_PROCESSING_PROBABILITY = 20.0;
+
   private final ReplicationLogGroup logGroup;
   private final double copyThroughputThresholdBytesPerMs;
   // the timestamp (in future) at which we will attempt to set the HAGroup 
state to SYNC
@@ -233,6 +239,6 @@ public class ReplicationLogDiscoveryForwarder extends 
ReplicationLogDiscovery {
   @Override
   public double getInProgressDirectoryProcessProbability() {
     return 
getConf().getDouble(REPLICATION_FORWARDER_IN_PROGRESS_PROCESSING_PROBABILITY_KEY,
-      super.getInProgressDirectoryProcessProbability());
+      DEFAULT_FORWARDER_IN_PROGRESS_PROCESSING_PROBABILITY);
   }
 }

Reply via email to