Setting pg_num_target has no effect when we encode our OSDMap with mimic
or luminous features. Fall back to the pre-nautilus behavior of directly
setting pg_num.
Fixes: http://tracker.ceph.com/issues/39570
Signed-off-by: Sage Weil <sage@redhat.com>
rgw: beast frontend uses yield_context to read/write body
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
PeeringCtx was a bit of a mess in terms of tracking down where the
resources were cleaned up. This patch:
- Reworks PeeringCtx to directly own its maps/transaction
- Introduces PeeringCtxWrapper to deal with the message buffering
internally
- Cleans up users to avoid passing pointers through the PeeringState
interface unnecessarily.
This'll allow the PeeringCtx destructor to do its job vastly
simplifying usage in crimson.
Signed-off-by: Samuel Just <sjust@redhat.com>
The concept of emitting log lines to a central mon log is likely
to be useful for both crimson and classic, but the mechanism is
likely to be different. Break out OstreamTemp for use in interface.
Signed-off-by: Samuel Just <rexludorum@gmail.com>
Long running clients connected to thrashing OSDs could result in a
"see no progress in more than <timeout>" message printed to stderr.
This is not an error but can result in test failures when console
output is compared against expected output.
Fixes: http://tracker.ceph.com/issues/39448
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Removes the messages.xlf file from the git repository, due to a lot of merge conflicts.
It won't cause any problems, because the file is not important for building or the translation during runtime.
Fixes: https://tracker.ceph.com/issues/38003
Signed-off-by: Sebastian Krah <skrah@suse.com>
* initialize mon::Connection::global_id to `0` in the ctor.
global_id is assigned by monitor, a zero global_id implies
that "allocate me a new global_id please". so we should
never use a random number on stack for the global_id.
* do not use a magic number for initializing MAuth::protocol,
use `CEPH_AUTH_UNKNOWN` instead.
* do not try to dereference `auth` before creating it. `auth`
is created by `create_auth()`. in which, the global_id
is always assigned to `auth->global_id`, as it's a new session.
so we should just call `create_auth()`.
* restructure the code to finish the authentication. to remove
the find_if(), and use the `parallel_for_each()` loop for
both set the active_con and closing the other pending connections.
* ask for the rotating keyring once gets authenticated.
Signed-off-by: Kefu Chai <kchai@redhat.com>
dump cache in plain text will print lock state. But in json format dump,
it won't. It is not convenient to debug some MDS lock issues without
such information.
Fixes: http://tracker.ceph.com/issues/39645
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
src/: define ceph_release_t and use it
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
* refs/pull/27480/head:
mds: check dir fragment to split dir if mkdir makes it oversized.
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
rgw: crypto: throw DigestException from Digest and HMAC
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>