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

   ## Summary
   - Change the `idx` field type from `long` to `int` in `CloudReplica`
   - The `idx` value represents tablet index within a partition — always a 
small value that fits in int
   - Constructor casts `long` parameter to `int` for source compatibility
   - `getIdx()` still returns `long` via auto-widening for API compatibility
   - Gson handles `long` → `int` coercion for backward compatibility with old 
images
   
   ## Memory Impact
   -4 bytes/replica (plus potential padding savings). At 10M replicas: ~38 MB 
saved. At 100M replicas: ~381 MB saved.
   
   ## Test plan
   - [ ] Existing cloud tests pass (`mvn test -pl fe/fe-core -Dtest="*Cloud*"`)
   - [ ] Gson backward compatibility: old-format JSON with long idx value 
deserializes correctly
   
   🤖 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