Caideyipi opened a new pull request, #18728: URL: https://github.com/apache/iotdb/pull/18728
## Summary Fix TDB-438, where subscription WAL replay permanently stalled after encountering a valid WAL entry larger than `wal_buffer_size_in_byte / 3`. ## Changes - Add `wal_entry_size_limit_in_byte`, defaulting to `wal_buffer_size_in_byte`, and use it consistently for WAL writes and reads. - Read WAL entries in chunks so entries larger than one third of the WAL buffer can be replayed. - Reject new WAL entries above the configured limit with `WAL_ENTRY_TOO_LARGE`. - Close and skip a WAL file after an entry read failure, allowing replay to advance instead of retrying the same entry forever. - Surface skipped retained WAL files as a one-shot subscription poll error. - Add English and Chinese messages, standard and Edge configuration templates, and focused regression tests. ## Verification - `WALFileTest`: 15/15 passed. - `ProgressWALIteratorTest`: 15 tests, 0 failures, 1 conditional skip. - `WALBufferTest`: 3/3 passed. - Full reactor `test-compile -P with-zh-locale -DskipTests`: passed. - `git diff --check`: passed. The focused `ConsensusPrefetchingQueueTest#testUnreadableWalReplayIsVisibleAsPollError` assertion passed in the prior full-class run. A later no-fork reactor retry was blocked by the Windows test JVM's CGLIB module-access restriction (`java.base` does not open `java.lang`), rather than a test assertion failure. -- 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]
