You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "platinumhamburg (via GitHub)" <gi...@apache.org> on 2026/04/01 08:53:20 UTC

[I] [Server] PeriodicSnapshotManager.start() silently skips scheduling when initialDelay is 0 [fluss]

platinumhamburg opened a new issue, #2977:
URL: https://github.com/apache/fluss/issues/2977

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
   
   
   ### Fluss version
   
   0.9.0 (latest release)
   
   ### Please describe the bug 🐞
   
   In PeriodicSnapshotManager, the initial delay is computed as:
   ```
     this.initialDelay = periodicSnapshotDelay > 0
         ? MathUtils.murmurHash(tableBucket.hashCode()) % periodicSnapshotDelay
         : 0;
   ```
   When `murmurHash(tableBucket.hashCode()) % snapshotInterval` happens to be exactly 0, `start()` never schedules snapshots because of the guard `initialDelay > 0.` The affected TableBucket will never take KV snapshots, which means after a leader failover, the replica must restore entirely from WAL logs.
   
   ### Solution
   
   - Check `snapshotIntervalSupplier.getAsLong() > 0` instead of `initialDelay > 0`
    - Use `Math.max(initialDelay, 1)` to avoid scheduling with zero delay
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Server] PeriodicSnapshotManager.start() silently skips scheduling when initialDelay is 0 [fluss]

Posted by "luoyuxia (via GitHub)" <gi...@apache.org>.
luoyuxia closed issue #2977: [Server] PeriodicSnapshotManager.start() silently skips scheduling when initialDelay is 0
URL: https://github.com/apache/fluss/issues/2977


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org