Skip to content

test: fix wrong alarm (HitSetWrite)#42564

Merged
tchaikov merged 1 commit intoceph:masterfrom
myoungwon:wip-fix-45423
Aug 6, 2021
Merged

test: fix wrong alarm (HitSetWrite)#42564
tchaikov merged 1 commit intoceph:masterfrom
myoungwon:wip-fix-45423

Conversation

@myoungwon
Copy link
Member

This is not a serious bug. Please look over the following scenario
in HitSetWrite test:

  1. append object, which causes to add the object to the hitset
  2. call hit_set_get to get the object accessed recently
  3. see the hitset to check that appened object is in the hitset

After step 2, assert occurs because plpg_on_pool_change,
which invokes hit_set_clear, is called
between step 1 and step 2.
So, the object this unit test want to add to the hitset
is not in the hitset sometime.
To avoid this, this commit adds retry logic.

Fixes: https://tracker.ceph.com/issues/45423

Signed-off-by: Myoungwon Oh myoungwon.oh@samsung.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

This is not a serious bug. Please look over the following scenario
in HitSetWrite test:

1. append object, which causes to add the object to the hitset
2. call hit_set_get to get the object accessed recently
3. see the hitset to check that appened object is in the hitset

After step 2, assert occurs because plpg_on_pool_change,
which invokes hit_set_clear, is called
between step 1 and step 2.
So, the object this unit test want to add to the hitset
is not in the hitset sometime.
To avoid this, this commit adds retry logic.

Fixes: https://tracker.ceph.com/issues/45423

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
@myoungwon
Copy link
Member Author

@neha-ojha @athanatos @tchaikov Any comment?

@neha-ojha
Copy link
Member

jenkins test make check

@neha-ojha
Copy link
Member

jenkins test api

@neha-ojha neha-ojha added the core label Aug 2, 2021
@neha-ojha
Copy link
Member

@neha-ojha @athanatos @tchaikov Any comment?

Based on your explanation in the commit message, adding a retry logic makes sense. Are you able to reproduce this issue reliably?

Copy link
Member

@neha-ojha neha-ojha left a comment

Choose a reason for hiding this comment

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

LGTM with tests passing

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.

4 participants