Skip to content

fix unstable unittest caused by #5958#6061

Closed
Little-Wallace wants to merge 1 commit intofacebook:masterfrom
Little-Wallace:fix-l0
Closed

fix unstable unittest caused by #5958#6061
Little-Wallace wants to merge 1 commit intofacebook:masterfrom
Little-Wallace:fix-l0

Conversation

@Little-Wallace
Copy link
Copy Markdown
Contributor

Signed-off-by: Little-Wallace bupt2013211450@gmail.com

This PR is to fix unstable unit test added by (#5958).
I set SYNC_POINT in PickCompaction before. If IntraL0Compaction was trigger, the compact job which compact sst to base level would start instantly. If the compaction thread run faster than unittest main thread, we may observe the number of files in L0 reduce.

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
@Little-Wallace Little-Wallace changed the title fix unstable unittest fix unstable unittest caused by #5958 Nov 21, 2019
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@siying has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in e50b64b.

yiwu-arbug pushed a commit to tikv/rocksdb that referenced this pull request Nov 26, 2019
Summary:
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>

This PR is to fix unstable unit test added by  (facebook#5958).
I set SYNC_POINT in PickCompaction before. If IntraL0Compaction was trigger,  the compact job which compact sst to base level would start instantly. If the compaction thread run faster than unittest main thread, we may observe the number of files in L0 reduce.
Pull Request resolved: facebook#6061

Differential Revision: D18642301

fbshipit-source-id: 3e4da2ee963532b6e142336951ea3f47d46df148
yiwu-arbug pushed a commit to tikv/rocksdb that referenced this pull request Nov 27, 2019
Summary:
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>

This PR is to fix unstable unit test added by  (facebook#5958).
I set SYNC_POINT in PickCompaction before. If IntraL0Compaction was trigger,  the compact job which compact sst to base level would start instantly. If the compaction thread run faster than unittest main thread, we may observe the number of files in L0 reduce.
Pull Request resolved: facebook#6061

Differential Revision: D18642301

fbshipit-source-id: 3e4da2ee963532b6e142336951ea3f47d46df148
@anand1976
Copy link
Copy Markdown
Contributor

Cc @Little-Wallace This test is still flaky in our internal FB tests. It fails occasionally as follows -

[ RUN      ] DBCompactionTestWithParam/DBCompactionTestWithParam.FlushAfterIntraL0CompactionCheckConsistencyFail/0
db/db_compaction_test.cc:5014: Failure
Expected: (pick_intra_l0_count.load()) > (0), actual: 0 vs 0

wolfkdy pushed a commit to wolfkdy/rocksdb that referenced this pull request Dec 22, 2019
Summary:
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>

This PR is to fix unstable unit test added by  (facebook#5958).
I set SYNC_POINT in PickCompaction before. If IntraL0Compaction was trigger,  the compact job which compact sst to base level would start instantly. If the compaction thread run faster than unittest main thread, we may observe the number of files in L0 reduce.
Pull Request resolved: facebook#6061

Differential Revision: D18642301

fbshipit-source-id: 3e4da2ee963532b6e142336951ea3f47d46df148
yiwu-arbug pushed a commit to tikv/rocksdb that referenced this pull request Jan 16, 2020
Summary:
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>

This PR is to fix unstable unit test added by  (facebook#5958).
I set SYNC_POINT in PickCompaction before. If IntraL0Compaction was trigger,  the compact job which compact sst to base level would start instantly. If the compaction thread run faster than unittest main thread, we may observe the number of files in L0 reduce.
Pull Request resolved: facebook#6061

Differential Revision: D18642301

fbshipit-source-id: 3e4da2ee963532b6e142336951ea3f47d46df148
@Little-Wallace Little-Wallace deleted the fix-l0 branch December 24, 2021 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants