Repository navigation
ObjectCacher: remove all buffers from a non-existent object - #242
Merged
Merged
Conversation
Once we're sure an object doesn't exist, we retry all the waiters in order, and they return -ENOENT immediately. If there were a bunch of BufferHeads waiting for data (rx state), they would be left behind while the reads that triggered them were complete from the cache user's perspective. These extra rx BufferHeads would pin the object in the lru, so they wouldn't be removed by release_set(). This meant that the assert during shutdown of the cache would be triggered. To fix this, remove any BufferHeads in this state immediately when we find out the object doesn't exist. Use the same condition as readx for determining whether this is safe - if we got -ENOENT and all BufferHeads for the object are clean or rx. Fixes: #3664 Signed-off-by: Josh Durgin <[email protected]>
jdurgin
added a commit
that referenced
this pull request
Apr 24, 2013
Reviewed-by: Sage Weil <[email protected]>
liewegas
added a commit
to liewegas/ceph
that referenced
this pull request
Nov 18, 2016
ms die on skipped message = false for all krbd, kclient tasks
liewegas
pushed a commit
that referenced
this pull request
Dec 14, 2016
Mirror beanstalkd queue in paddles
mogeb
pushed a commit
to mogeb/ceph
that referenced
this pull request
Nov 30, 2018
qa/deepsea: separate ses_qa.py task for non-DS testing and implement smoke test for influx MGR plugin
liewegas
pushed a commit
to liewegas/ceph
that referenced
this pull request
Nov 5, 2021
Fix date formatting off-by-one bug
andriytk
pushed a commit
to andriytk/cortx-rgw
that referenced
this pull request
Jun 6, 2022
* rgw_sal_motr: [CORTX-30362] Add & Update User Stats Index Table (ceph#215) * rgw_sal_motr: [CORTX-30362] Add user stats changes while user/bucket create & delete. 1. User stats index should be created per new user. 2. Add blank entry per bucket in owner user stats index on bucket creation. 3. Delete stats entry on bucket deletion. 4. Delete user stats index table on user deletion. * rgw_sal_motr: [CORTX-30362] Implement read bucket stats Bucket Stats are read from Bucket owner's user stats index table. * rgw_sal_motr: [CORTX-30362] Update Bucket Stats on Object Put/Delete Update the bucket stats on object create and delete operations. Object overwrite & Versioned object put is handled. * rgw_sal_motr: [CORTX-30362] Fix zero byte object issue & code refactoring. Size of zero byte object and the default size of old object when it is abscent is '0'. Thus there was no distinction between the two cases. This was causing the issue, fixed the same by adding a new boolean var for distinction. * rgw_sal_motr: [CORTX-30362] Fix versioning bug in bucket stats Old Object size of getting reduced while uploading a new object for versioned object. Fixing the same. Signed-off-by: Sumedh A. Kulkarni <[email protected]> * User level stats counting for Motr SAL layer (ceph#226) Signed-off-by: Diwakar92 <[email protected]> Co-authored-by: Sumedh Anantrao Kulkarni <[email protected]> * rgw_sal_motr: [CORTX-30363] Fix user-stats bug for user with no buckets (ceph#242) * rgw_sal_motr: [CORTX-30363] Fix user-stats bug for user with no buckets - next_query_by_name() crashes when zero entries are returned and so does list_buckets() and read_stats(). - Fixing the issue by returning 0 when no entries are present in the index. Signed-off-by: Sumedh A. Kulkarni <[email protected]> Co-authored-by: Diwakar92 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Once we're sure an object doesn't exist, we retry all the waiters in
order, and they return -ENOENT immediately. If there were a bunch of
BufferHeads waiting for data (rx state), they would be left behind
while the reads that triggered them were complete from the cache
user's perspective. These extra rx BufferHeads would pin the object in
the lru, so they wouldn't be removed by release_set(). This meant that
the assert during shutdown of the cache would be triggered.
To fix this, remove any BufferHeads in this state immediately when we
find out the object doesn't exist. Use the same condition as readx for
determining whether this is safe - if we got -ENOENT and all
BufferHeads for the object are clean or rx.
Fixes: #3664
Signed-off-by: Josh Durgin [email protected]