incubator-pegasus
incubator-pegasus copied to clipboard
unit test failed `mutation_log_test.reset_from_while_writing`
ref: https://github.com/apache/incubator-pegasus/runs/7207609581?check_suite_focus=true
[ RUN ] mutation_log_test.reset_from_while_writing
E2022-07-06 04:02:45.778 (1657080165778461573 106695) replica.default0.0000a0ae00010001: replica.cpp:569:init_disk_tag(): [1.1@] get disk tag of ./test-log failed: ERR_OBJECT_NOT_FOUND, init it to empty
E2022-07-06 04:02:46.323 (1657080166323215987 106695) replica.default0.0000a0ae00010001: log_file.cpp:218:read_next_log_block(): invalid data header magic: 0x0
E2022-07-06 04:02:46.323 (1657080166323232588 106695) replica.default0.0000a0ae00010001: log_file.cpp:102:open_read(): read first log entry of file ./test-log.test/log.1.0 failed, err = ERR_INVALID_DATA. Rename the file to ./test-log.test/log.1.0.removed
E2022-07-06 04:02:46.323 (1657080166323309593 106695) replica.default0.0000a0ae00010001: mutation_log.cpp:948:reset_from(): the log of source dir ./test-log.test is invalid:ERR_INVALID_DATA: failed to open the log file (./test-log.test/log.1.0) << open_log_file_map(log_files) << open_log_file_map(dir) << check_log_files_continuity(dir), will remove it.
/__w/incubator-pegasus/incubator-pegasus/rdsn/src/replica/test/mutation_log_test.cpp:582: Failure
Expected: err
Which is: ERR_INVALID_DATA
To be equal to: ERR_OK
[ FAILED ] mutation_log_test.reset_from_while_writing (564 ms)
[----------] 14 tests from mutation_log_test (2665 ms total)
resolved by https://github.com/apache/incubator-pegasus/pull/1030
Similar error happened again as follows (https://github.com/apache/incubator-pegasus/runs/7401523538?check_suite_focus=true):
[ RUN ] mutation_log_test.reset_from_while_writing
E2022-07-19 03:12:17.393 (1658200337393066268 9560) replica.default0.0000253f00010001: replica.cpp:569:init_disk_tag(): [1.1@] get disk tag of ./test-log failed: ERR_OBJECT_NOT_FOUND, init it to empty
E2022-07-19 03:12:17.924 (1658200337924981680 9560) replica.default0.0000253f00010001: log_file.cpp:218:read_next_log_block(): invalid data header magic: 0x0
E2022-07-19 03:12:17.924 (1658200337924994880 9560) replica.default0.0000253f00010001: log_file.cpp:102:open_read(): read first log entry of file ./test-log.test/log.1.0 failed, err = ERR_INVALID_DATA. Rename the file to ./test-log.test/log.1.0.removed
E2022-07-19 03:12:17.925 (1658200337925066279 9560) replica.default0.0000253f00010001: mutation_log.cpp:948:reset_from(): the log of source dir ./test-log.test is invalid:ERR_INVALID_DATA: failed to open the log file (./test-log.test/log.1.0) << open_log_file_map(log_files) << open_log_file_map(dir) << check_log_files_continuity(dir), will remove it.
/__w/incubator-pegasus/incubator-pegasus/src/rdsn/src/replica/test/mutation_log_test.cpp:582: Failure
Expected: err
Which is: ERR_INVALID_DATA
To be equal to: ERR_OK
[ FAILED ] mutation_log_test.reset_from_while_writing (549 ms)
[----------] 14 tests from mutation_log_test (2554 ms total)