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

flaky test: raftstore::test_snap::test_v1_apply_snap_from_v2 failed #16648

Closed
LykxSassinator opened this issue Mar 14, 2024 · 0 comments · Fixed by #16649
Closed

flaky test: raftstore::test_snap::test_v1_apply_snap_from_v2 failed #16648

LykxSassinator opened this issue Mar 14, 2024 · 0 comments · Fixed by #16649
Labels
flaky_test The test case is unstable type/enhancement Type: Issue - Enhancement

Comments

@LykxSassinator
Copy link
Contributor

Development Task

When make test, there exists some abnormal scenarios which might impact the correctness on raftstore::test_snap::test_v1_apply_snap_from_v2, making it flaky.

[2024-03-14T03:08:11.593Z] running 1 test
[2024-03-14T03:08:11.593Z] test raftstore::test_snap::test_v1_apply_snap_from_v2 ... FAILED
[2024-03-14T03:08:11.593Z] 
[2024-03-14T03:08:11.593Z] failures:
[2024-03-14T03:08:11.593Z] 
[2024-03-14T03:08:11.593Z] failures:
[2024-03-14T03:08:11.593Z]     raftstore::test_snap::test_v1_apply_snap_from_v2
[2024-03-14T03:08:11.593Z] 
[2024-03-14T03:08:11.593Z] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 800 filtered out; finished in 1.62s
[2024-03-14T03:08:11.593Z] 
[2024-03-14T03:08:11.593Z] 
[2024-03-14T03:08:11.593Z] --- TRY 3 STDERR:        tests::integrations raftstore::test_snap::test_v1_apply_snap_from_v2 ---
[2024-03-14T03:08:11.593Z] thread 'raftstore::test_snap::test_v1_apply_snap_from_v2' panicked at tests/integrations/raftstore/test_snap.rs:838:10:
[2024-03-14T03:08:11.593Z] called `Result::unwrap()` on an `Err` value: Engine(Status { code: IoError, sub_code: None, sev: NoError, state: "Invalid argument: Directory exists" })
[2024-03-14T03:08:11.593Z] stack backtrace:
[2024-03-14T03:08:11.593Z]    0: rust_begin_unwind
[2024-03-14T03:08:11.593Z]              at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/std/src/panicking.rs:645:5
[2024-03-14T03:08:11.593Z]    1: core::panicking::panic_fmt
[2024-03-14T03:08:11.593Z]              at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/core/src/panicking.rs:72:14
[2024-03-14T03:08:11.593Z]    2: core::result::unwrap_failed
[2024-03-14T03:08:11.593Z]              at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/core/src/result.rs:1649:5
[2024-03-14T03:08:11.593Z]    3: core::result::Result<T,E>::unwrap
[2024-03-14T03:08:11.593Z]    4: integrations::raftstore::test_snap::generate_snap
[2024-03-14T03:08:11.593Z]              at /home/jenkins/tikv-src/tests/integrations/raftstore/test_snap.rs:836:5
[2024-03-14T03:08:11.593Z]    5: integrations::raftstore::test_snap::test_v1_apply_snap_from_v2
[2024-03-14T03:08:11.593Z]              at /home/jenkins/tikv-src/tests/integrations/raftstore/test_snap.rs:959:27
[2024-03-14T03:08:11.593Z]    6: integrations::raftstore::test_snap::test_v1_apply_snap_from_v2::{{closure}}
[2024-03-14T03:08:11.593Z]              at /home/jenkins/tikv-src/tests/integrations/raftstore/test_snap.rs:898:32
[2024-03-14T03:08:11.593Z]    7: core::ops::function::FnOnce::call_once
[2024-03-14T03:08:11.593Z]              at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/core/src/ops/function.rs:250:5
[2024-03-14T03:08:11.593Z]    8: test_util::runner::run_test_with_hook::{{closure}}::{{closure}}
[2024-03-14T03:08:11.593Z]    9: core::ops::function::FnOnce::call_once{{vtable.shim}}
[2024-03-14T03:08:11.593Z]   10: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
[2024-03-14T03:08:11.593Z]              at /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/alloc/src/boxed.rs:2015:9
[2024-03-14T03:08:11.593Z] note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@LykxSassinator LykxSassinator added type/enhancement Type: Issue - Enhancement flaky_test The test case is unstable labels Mar 14, 2024
ti-chi-bot bot pushed a commit that referenced this issue Mar 14, 2024
close #16648

Fix the flaky test `raftstore::test_snap::test_v1_apply_snap_from_v2`.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
dbsid pushed a commit to dbsid/tikv that referenced this issue Mar 24, 2024
close tikv#16648

Fix the flaky test `raftstore::test_snap::test_v1_apply_snap_from_v2`.

Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
Signed-off-by: dbsid <chenhuansheng@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky_test The test case is unstable type/enhancement Type: Issue - Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant