Skip to content

RBD-replay - #2253

Merged
liewegas merged 81 commits into
ceph:masterfrom
adamcrume:wip-lttng
Aug 21, 2014
Merged

liewegas merged 81 commits into
ceph:masterfrom
adamcrume:wip-lttng

Conversation

@adamcrume

Copy link
Copy Markdown
Contributor

No description provided.

liewegas and others added 30 commits August 10, 2014 11:41
No need to duplicate this code.

Signed-off-by: Sage Weil <[email protected]>
We can't simply try to delete everything in there because some items may
be whiteouts.  Instead, flush+evict everything, then remove overlay, and
*then* delete what remains.

Fixes: ceph#9055
Signed-off-by: Sage Weil <[email protected]>
If the image doesn't exist and caching is enabled, the ObjectCacher
was not being shutdown, and the ImageCtx was leaked. The IoCtx could
later be closed while the ObjectCacher was still running, resulting in
a segfault. Simply use the usual cleanup path in open_image(), which
works fine here.

Fixes: ceph#8912
Backport: dumpling, firefly
Signed-off-by: Josh Durgin <[email protected]>
librbd: fix error path cleanup for opening an image

Reviewed-by: Sage Weil <[email protected]>
We do not know when the objecter will finally let go of this Context.  Thus, we
cannot know whether it will happen before the flush, at which point the
object_context held by the cop must have been released.

Also, we simply don't need it, process_copy_chunk alrady works in terms of the
tid!

Fixes: ceph#8894
Reviewed-by: Sage Weil <[email protected]>
Signed-off-by: Samuel Just <[email protected]>
The ref was introduced in 589b639
and is actually necessary to keep the buffers around.

This reverts commit 300b5e8.
There is only one caller.

Signed-off-by: Sage Weil <[email protected]>
The mark-down of old peers needs to take the session_dispatch_lock in order
to safely clear the Session ref cycle.  However, for fast dispatch callers,
that lock is already held.  Pass a flag down from the callers indicating
whether we need to take the additional lock.

Fixes: ceph#9096
Signed-off-by: Sage Weil <[email protected]>
After a split we can get negative values here.  Only do the arithmetic if
we have a valid (positive) value that won't through the floating point
unit for a loop.

Fixes: ceph#9082
Tested-by: Karan Singh <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
osd: fix require_same_peer_instance from fast_dispatch

Reviewed-by: Samuel Just <[email protected]>
Reviewed-by: Loic Dachary <[email protected]>
ceph_test_rados_api_tier: fix cache pool cleanup during test

Reviewed-by: Samuel Just <[email protected]>
Fixes: ceph#9052
Backport: firefly, dumpling
Signed-off-by: Sage Weil <[email protected]>
See src/tracing/README.md

Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Noah Watkins <[email protected]>
Signed-off-by: Adam Crume <[email protected]>
Simply copied and modified the C++ API example.

Signed-off-by: Adam Crume <[email protected]>
'ver' is obsolete and variable exists only for proper deserialization

Signed-off-by: Adam Crume <[email protected]>
If the HOME variable is not set, LTTng complains, and the extra output
fails to match what the tests expect, so they fail.

Signed-off-by: Adam Crume <[email protected]>
This adds LD_PRELOAD=liblttng-ust-fork.so to TESTS_ENVIRONMENT.
This prevents lttng from complaining when processes are forked.
The complaints otherwise taint the output and cause tests to fail.

Signed-off-by: Adam Crume <[email protected]>
Signed-off-by: Adam Crume <[email protected]>
Tracing may start after the application is started, and image open calls
may missed. To support replaying these traces, additional information is
traced, allowing missing open calls to be generated.

Signed-off-by: Adam Crume <[email protected]>
Was getting:
test/test_rbd_replay.cc:44:3: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’ [-Wconversion-null]

Fixed by changing EXPECT_EQ(false, xxx) to EXPECT_FALSE(xxx).
For completeness, also changed EXPECT_EQ(true, xxx) to EXPECT_TRUE(xxx).

Signed-off-by: Adam Crume <[email protected]>
This is a short-term fix for issues caused by tracepoints in libcommon.
Code crashes at runtime if the same tracepoints are linked into the
program multiple times.  This happens with libcommon because it is
statically linked into dynamic libraries such as librados, then
statically linked into executables because symbols from libcommon are
not exposed in librados.  Therefore, any programs that use librados and
libcommon would crash because of duplicate tracepoints.

Signed-off-by: Adam Crume <[email protected]>
@liewegas

Copy link
Copy Markdown
Member

rebased; there was some test/librados/TestCase stuff in there. will verify teh build is still good and then merge!

liewegas added a commit that referenced this pull request Aug 21, 2014
@liewegas
liewegas merged commit 5b9ade5 into ceph:master Aug 21, 2014
liewegas added a commit that referenced this pull request Aug 21, 2014
This reverts commit 5b9ade5, reversing
changes made to b0aa846.

I merged the wrong version of wip-lttng.

Signed-off-by: Sage Weil <[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.

5 participants