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

rgw: fix list op raced with put op maybe cause index delete (copy + fix) #41978

Closed
wants to merge 3 commits into from

Commits on Jun 22, 2021

  1. rgw: fix list op raced with put op maybe cause index delete

    a special sequence can cause this new situation.
    IO sequence:
    1.put index prepare
    2.list, get stale index
    3.check_disk_state, find the head obj not exist
    4.write head obj
    5.index complete
    6.aio_operate dir_suggest_changes CEPH_RGW_REMOVE
    step 6 will delete the index
    
    Fixes: http://tracker.ceph.com/issues/24744
    
    Signed-off-by: Tianshan Qu <tianshan@xsky.com>
    tianshan authored and ivancich committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    c49376d View commit details
    Browse the repository at this point in the history
  2. test/rgw: add cases for index dir_suggest_changes

    1.recover index from put crash after complete
    2.list raced with put, index_suggest should not delete index
    3.list raced with delete, index_suggest should not recover index
    
    Signed-off-by: Tianshan Qu <tianshan@xsky.com>
    tianshan authored and ivancich committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    815fa3a View commit details
    Browse the repository at this point in the history
  3. test/rgw: conform newer cls_rgw testing code to current APIs

    When these tests were initially added, the APIs were different. This
    updates them to the current versions, so it will compile.
    
    Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
    ivancich committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    070b11b View commit details
    Browse the repository at this point in the history