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

   ## Summary
   
   - The `txId` field is a plain `long` read/written by multiple threads 
(flusher, DDL callers, bulk writers) without synchronization
   - Long writes are not guaranteed atomic (JLS §17.7), and even on platforms 
with atomic 64-bit writes, there is no happens-before ordering between threads
   - Convert `txId` to `AtomicLong` and update all 6 read/write sites
   
   ## Test plan
   - [ ] Verify FE master starts and writes edit logs normally
   - [ ] Verify edit log rolls correctly after `edit_log_roll_num` transactions
   
   🤖 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