The GitHub Actions job "Build and Run Tests by Maven" on rocketmq.git/fix-configmanager-loadbak-returns-true-on-missing-backup has failed. Run started by GitHub user LiyunZhang10 (triggered by lizhimins).
Head commit for run: 546d7243a7d2128bd859d5aea7abdba9187c3c23 / mtlyzhang <[email protected]> [ISSUE #9328] Fix ConfigManager.persist() not truncating stale data after write When ConfigManager.persist() writes config data using RandomAccessFile, it does not truncate the file after writing. If the new content is shorter than the previous content, stale trailing bytes remain in the file. After an unexpected power cut during a write, the file may contain a mix of partial new data and old trailing data, producing invalid JSON that causes decode() to fail on restart and leads to NullPointerException. Fix: call randomAccessFile.setLength(data.length) after writing to ensure the file is truncated to the exact size of the new content. Made-with: Cursor Report URL: https://github.com/apache/rocketmq/actions/runs/24341708753 With regards, GitHub Actions via GitBox
