Skip to content

ObjectCacher: remove all buffers from a non-existent object - #242

Merged
jdurgin merged 1 commit into
nextfrom
wip-objectcacher-enoent
Apr 24, 2013
Merged

jdurgin merged 1 commit into
nextfrom
wip-objectcacher-enoent

Conversation

@jdurgin

@jdurgin jdurgin commented Apr 24, 2013

Copy link
Copy Markdown
Member

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]

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
@jdurgin
jdurgin merged commit 4322522 into next Apr 24, 2013
@jdurgin
jdurgin deleted the wip-objectcacher-enoent branch April 24, 2013 23:21
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant