Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit test failed mutation_log_test.reset_from_while_writing #1034

Open
acelyc111 opened this issue Jul 6, 2022 · 2 comments
Open

unit test failed mutation_log_test.reset_from_while_writing #1034

acelyc111 opened this issue Jul 6, 2022 · 2 comments
Assignees

Comments

@acelyc111
Copy link
Member

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)
@acelyc111
Copy link
Member Author

resolved by #1030

@empiredan
Copy link
Contributor

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)

@empiredan empiredan reopened this Jul 19, 2022
ZhongChaoqiang pushed a commit to ZhongChaoqiang/incubator-pegasus that referenced this issue Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants