Project

General

Profile

Actions

Feature #3949

closed

krbd: create test script that exercises concurrent operations

Added by Alex Elder about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

I suggested doing this in http://tracker.ceph.com/issues/3427.
That issue is about a bug where an image unmapping can get underway
after an open of the mapped device has begun, with predictably
undesirable results.

I didn't have a good test for it though. I've put something
together that I've verified catches that issue. Since it took
a few hours this morning I thought I should record it separately.

I still have some more testing to do but I intend to add this as
a new test script "qa/workunits/rbd/concurrent.sh" in the ceph
git tree.

Actions #1

Updated by Alex Elder about 11 years ago

Well the script is really nice. And I just got a new
crash while running it on a real machine (rather than
my UML test environment). Good thing.

Actions #2

Updated by Alex Elder about 11 years ago

  • Status changed from In Progress to Resolved

I just committed the test script to the ceph master branch.
The script is located here: qa/workunits/rbd/concurrent.sh

    qa: add rbd/concurrent workunit

    This defines a new workunit shell script that performs a bunch of
    rbd operations concurrently in order to exercise code paths and
    catch reference count and bad pointer problems.

I scaled back a few of the default parameters so it would be
less likely to hit the crash described in 3950. They can be
overridden using the YAML file. We can increase the defaults
again after fixing up that problem (and any others).

Actions

Also available in: Atom PDF