dataroaring opened a new pull request, #62084:
URL: https://github.com/apache/doris/pull/62084

   ## Summary
   - Replace `lastGetTabletStatsTime` (long, 8 bytes) and `statsIntervalIndex` 
(int, 4 bytes) with a single transient packed `long` field
   - Bottom 60 bits store the timestamp (sufficient until year 36000+), top 4 
bits store the interval index (values 0-8, needs 4 bits)
   - The packed field is `transient` (not serialized), so stats timing resets 
to 0 on FE restart — this is acceptable since `runAfterCatalogReady()` handles 
the empty-stats case with a full refresh, and the interval ladder self-corrects 
within a few stat cycles
   - Remove the stats copy code from `Checkpoint.java` since the field is no 
longer persisted
   - Remove unused `CloudReplica` import from `Checkpoint.java` and unused 
Lombok `@Getter`/`@Setter` imports from `CloudReplica.java`
   
   ## Memory Impact
   -12 bytes/replica (remove long + int + padding = 16 bytes, add transient 
long = 8 bytes, net = -8 with padding savings). At 10M replicas: ~114 MB saved. 
At 100M replicas: ~1.14 GB saved.
   
   ## Test plan
   - [ ] Existing cloud tests pass (`mvn test -pl fe/fe-core -Dtest="*Cloud*"`)
   - [ ] Verify bit-packing: `setLastGetTabletStatsTime()` and 
`setStatsIntervalIndex()` do not interfere with each other
   - [ ] Verify `CloudTabletStatMgr` works correctly with the new 
getters/setters
   - [ ] Gson backward compatibility: old-format JSON with "gst"/"sii" keys 
deserializes without errors (silently ignored)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to