Project

General

Profile

Subtask #5487

Feature #4929: Erasure encoded placement group

Factor out ObjectContext / ReplicatedPG::object_contexts

Added by Loic Dachary over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
OSD
Target version:
-
Start date:
07/06/2013
Due date:
08/14/2013
% Done:

0%

Estimated time:
0.00 h
Spent time:
8.00 h (Total: 64.00 h)
Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:


Subtasks

Subtask #5510: ObjectContext : replace ref with shared_ptrResolvedLoic Dachary

Subtask #5527: unit tests for common/sharedptr_registry.hppResolvedLoic Dachary

Subtask #6119: replace PG::object_contexts with SharedPtrRegistryWon't FixLoic Dachary

Associated revisions

Revision 7b7f752c (diff)
Added by Loic Dachary over 6 years ago

unit tests for ObjectContext read/write locks

unit tests for the ObjectContext methods ondisk_write_lock,
ondisk_write_unlock, ondisk_read_lock and ondisk_read_unlock.

A class derived from ::testing::Test is created with two sub-classes (
Thread_read_lock & Thread_write_lock ) to provide a separate thread
that can block with cond.Wait(). usleep(3) is used in the main thread
to wait for the expected side effect with increasing delays ( up to
MAX_DELAY ).

http://tracker.ceph.com/issues/5487 refs #5487

Signed-off-by: Loic Dachary <>

History

#1 Updated by Loic Dachary over 6 years ago

  • Status changed from New to In Progress

#2 Updated by Loic Dachary over 6 years ago

  • Description updated (diff)

#3 Updated by Loic Dachary over 6 years ago

  • Description updated (diff)

#4 Updated by Loic Dachary over 6 years ago

  • Category set to OSD

#5 Updated by Loic Dachary over 5 years ago

  • Status changed from In Progress to Closed

Obsoleted.

Also available in: Atom PDF