dracoooooo opened a new pull request, #1570:
URL: https://github.com/apache/horaedb/pull/1570

   ## Rationale
   In RegionBased replay, a batch of logs is first scanned from the WAL, and 
then replayed on various tables using multiple threads. This approach works 
fine for WALs based on tables, as the logs for each table are clustered 
together. However, in a WAL based on local disk, the logs for each table may be 
scattered across different positions within the batch. During multi-threaded 
replay, it is possible that for a given table, log2 is replayed before log1, 
resulting in missed logs.
   
   ## Detailed Changes
   1. Modify `split_log_batch_by_table` function to aggregate all logs for a 
table together.
   2. Modify `tableBatch` struct to change a single range into a `Vec<Range>`.
   
   ## Test Plan
   Manual testing.


-- 
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