]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yehuda Sadeh [Fri, 5 Dec 2014 23:52:26 +0000 (15:52 -0800)]
rgw, cls_rgw: keep shard ids with oids
Instead of just having the list of oids, keep the shard ids together, so
that we can know on which shard the operation happened.
Bucket markers are just using the shard numeric id, instead of the
bucket instance shard id. This makes it easier to parse the markers
appropriately.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 5 Dec 2014 22:10:50 +0000 (14:10 -0800)]
cls_rgw: clean up CLSRGWConcurrentIO
Class is no longer a template, and keeps a map of oids by shard_id. Call
issue_op() using both shard_id and oids. Shard id is used for mapping
the results in the derived classes.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 5 Dec 2014 01:15:15 +0000 (17:15 -0800)]
rgw: modify bucket instance shard marker ids
Instead of having the markers prefixed by the oids, use the bucket
instance id.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 Dec 2014 22:41:00 +0000 (14:41 -0800)]
rgw: bucket replica log, handle shard ids
bucket replica log can now save entries by the specified shard id
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 Dec 2014 22:40:13 +0000 (14:40 -0800)]
cls_rgw: list bi log should not return marker entry
The marker should be served as a lower bound, but should not be
returned.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 Dec 2014 19:31:26 +0000 (11:31 -0800)]
rgw: bucket_index_shard_hash_type fixes
add initializations, json encode /decode.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 3 Dec 2014 19:30:44 +0000 (11:30 -0800)]
rgw: decode the req_state bucket instance id if needed
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 2 Dec 2014 22:17:14 +0000 (14:17 -0800)]
rgw: improve bucket sharding hashing
Amplify small source changes.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 2 Dec 2014 00:22:32 +0000 (16:22 -0800)]
rgw: data changes log, log info by bucket shard id
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 1 Dec 2014 23:34:37 +0000 (15:34 -0800)]
rgw: use new BucketShard structure for index manipulation calls
Instead of recalculating the hash every call, do it once, and pass this
structure around. Also, will be used for logging changes into the data
log.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 24 Nov 2014 22:30:20 +0000 (14:30 -0800)]
rgw: bi log list/trim can get specific bucket shard
bucket shard can be specified on the bucket instance param. It can be
added like this: <bucket-instance>[:shard-id]
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Guang Yang [Mon, 3 Nov 2014 12:56:06 +0000 (12:56 +0000)]
Fix the multipart uploads functional test failures due to bucket index sharding.
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
Guang Yang [Fri, 31 Oct 2014 16:56:36 +0000 (16:56 +0000)]
Fix get_bucket_instance_info, only build the oid if it is empty.
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
Guang Yang [Wed, 24 Sep 2014 06:21:28 +0000 (06:21 +0000)]
Adjust bi log trim implementation to work with multiple bucket shards.
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
Guang Yang [Tue, 23 Sep 2014 23:14:24 +0000 (23:14 +0000)]
Adjust bi log listing to work with multiple bucket shards.
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
Yehuda Sadeh [Fri, 19 Sep 2014 22:34:54 +0000 (15:34 -0700)]
cls_rgw, rgw: switch different ops to new concurrent infrastructure
Make all the relevant ops use the CLSRGWConcurrentIO infrastructure,
which simplifies things.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 19 Sep 2014 22:14:55 +0000 (15:14 -0700)]
rgw: generalize container type for concurrent IO base class
Turned the ConcurrentIO class a template, so that we could use different
kind of containers that are needed for the different operations.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 19 Sep 2014 21:55:12 +0000 (14:55 -0700)]
cls_rgw, rgw: create base class for common bucket shard operations
Instead of copy pasting the same code all over again, create a base
class for the needed concurrent IO operations.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Guang Yang [Fri, 29 Aug 2014 10:22:50 +0000 (10:22 +0000)]
Adjust bucket stats/index checking/index rebuild/tag timeout implementation to work with multiple shards.
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
Guang Yang [Mon, 18 Aug 2014 11:46:32 +0000 (11:46 +0000)]
Adjust bucket listing to work with multiple shards.
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
Guang Yang [Sat, 16 Aug 2014 09:04:28 +0000 (09:04 +0000)]
Adjust rgw bucket prepare/complete OP to work with multiple bucket index shards.
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
Guang Yang [Fri, 1 Aug 2014 04:54:13 +0000 (04:54 +0000)]
Implement sharding for bucket creation.
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
Guang Yang [Mon, 28 Jul 2014 07:40:26 +0000 (07:40 +0000)]
Add a new field to bucket info indicating the number of shards of this bucket and make it configurable.
Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
Josh Durgin [Tue, 13 Jan 2015 00:20:28 +0000 (16:20 -0800)]
Merge pull request #3316 from ceph/wip-10471
rgw: index swift keys appropriately
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Sat, 10 Jan 2015 05:43:04 +0000 (21:43 -0800)]
Merge pull request #3327 from ceph/wip-peeringqueue
osd: fix peering queue bug
Reviewed-by: Samuel Just <sjust@redhat.com>
Yehuda Sadeh [Tue, 16 Dec 2014 20:27:54 +0000 (12:27 -0800)]
rgw: return InvalidAccessKeyId instead of AccessDenied
Fixes: #10334
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit
56af795b1046a4c1bfba59e1fefde272bb0e5c1e )
Yehuda Sadeh [Tue, 16 Dec 2014 17:11:20 +0000 (09:11 -0800)]
rgw: return SignatureDoesNotMatch instead of AccessDenied
Fixes: #10329
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit
ef75d720f289ce2e18c0047380a16b7688864560 )
Josh Durgin [Fri, 9 Jan 2015 22:12:22 +0000 (14:12 -0800)]
Merge pull request #3250 from ceph/wip-10372
osdc/Objecter: improve pool deletion detection
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yehuda Sadeh [Fri, 9 Jan 2015 22:02:04 +0000 (14:02 -0800)]
Revert "rgw: switch to new watch/notify API"
This reverts commit
dc67cd69604ec4e4df846b818ec739dc7b09a537 .
Conflicts:
src/rgw/rgw_rados.cc
Sage Weil [Thu, 8 Jan 2015 19:10:45 +0000 (11:10 -0800)]
osd: assert there is a peering event
This became conditional way back in
12e22b3d44eba51a70d8babebc2684f0c46575a7
for unclear reasons. It probably predates the in_use checks. In any case,
at this point, we should only arrive here if the PG was queued, implying
that there will always be an event to process.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 8 Jan 2015 21:34:52 +0000 (13:34 -0800)]
osd: requeue PG when we skip handling a peering event
If we don't handle the event, we need to put the PG back into the peering
queue or else the event won't get processed until the next event is
queued, at which point we'll be processing events with a delay.
The queue_null is not necessary (and is a waste of effort) because the
event is still in pg->peering_queue and the PG is queued.
Note that this only triggers when we exceeed osd_map_max_advance, usually
when there is a lot of peering and recovery activity going on. A
workaround is to increase that value, but if you exceed osd_map_cache_size
you expose yourself to crache thrashing by the peering work queue, which
can cause serious problems with heavily degraded clusters and bit lots of
people on dumpling.
Backport: giant, firefly
Fixes: #10431
Signed-off-by: Sage Weil <sage@redhat.com>
Yehuda Sadeh [Wed, 7 Jan 2015 21:56:14 +0000 (13:56 -0800)]
rgw: index swift keys appropriately
Fixes: #10471
Backport: firefly, giant
We need to index the swift keys by the full uid:subuser when decoding
the json representation, to keep it in line with how we store it when
creating it through other mechanism.
Reported-by: hemant burman <hemant.burman@gmail.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Josh Durgin [Mon, 5 Jan 2015 20:54:22 +0000 (12:54 -0800)]
Merge pull request #3277 from ceph/wip-watch-leak
librados: fix a memory leak in watch
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Mon, 5 Jan 2015 19:16:49 +0000 (11:16 -0800)]
Merge pull request #3247 from ceph/wip-10422
mon: provide encoded canonical full OSDMap from primary
Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
Sage Weil [Mon, 5 Jan 2015 17:36:43 +0000 (09:36 -0800)]
librados: fix leak of WatchContext on unwatch
The lifecycle matches that of the watch linger_op. Note that it is NULL
for notify.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 29 Dec 2014 23:55:24 +0000 (15:55 -0800)]
Makefile: include radosgw-admin in base
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 29 Dec 2014 23:47:28 +0000 (15:47 -0800)]
client: fix quota signed/unsigned warning
client/Client.cc: In member function 'bool Client::is_quota_bytes_exceeded(Inode*, uint64_t)':
client/Client.cc:10393:66: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (quota->max_bytes && (rstat->rbytes + new_bytes) > quota->max_bytes)
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 23 Dec 2014 20:39:08 +0000 (12:39 -0800)]
mon: provide encoded canonical full OSDMap from primary
Currently we make each monitor apply the incremental and encode the full
map locally. The original motivation was to save bandwidth, but the
savings are minimal to modest and the complexity associated with doing this
is huge.
This strategy also causes problems now that we have OSDMap crc's and old
mons/clusters may have diverging full OSDMaps due to mixed version
clusters. See #10422
Instead, include the encoded full map in the paxos transaction. We will
still apply the incremental and check the crc, but if it fails and we have
the correct version, reload it from disk and move on. If we don't, we
will continue as we have before--the primary mon doesn't have support for
crc's yet. When it does we will start verifying and/or get our
full map back into sync.
Fixes: #10422
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 23 Dec 2014 23:59:19 +0000 (15:59 -0800)]
osdc/Objecter: improve pool deletion detection
Currently we can have a race like so:
- send op in epoch X
- osd replies
- pool deleted in epoch X+1
- client gets X+1, sends map epoch check
- client gets reply
-> fails assert that there is no map check in flight
Avoid this situation by inferring that the pool is deleted when we see
that we previously sent the request but the pool is no longer present.
Since pool ids are not reused there is no point in doing a synchronous
map check at all.
Backport: giant
Fixes: #10372
Signed-off-by: Sage Weil <sage@redhat.com>
Haomai Wang [Tue, 23 Dec 2014 10:38:24 +0000 (18:38 +0800)]
librados: only call watch_flush if necessary
Fix bug #10424
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
(cherry picked from commit
926a1b7468550e0c83bfa68bd45df1a6af599727 )
Loic Dachary [Sat, 20 Dec 2014 00:08:33 +0000 (01:08 +0100)]
mds: add default ctor for quota_info_t
http://tracker.ceph.com/issues/10400 Fixes: #10400
Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit
7f1e510165f284aad3f341ff89f64d5c3e8fe60e )
Sage Weil [Mon, 22 Dec 2014 21:56:07 +0000 (13:56 -0800)]
librados: warn about rados_watch_flush() prior to ioctx shutdown
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
1fbe9b6f3a67584829fe17b6bb08cfa1b787d82c )
Sage Weil [Fri, 19 Dec 2014 19:50:38 +0000 (11:50 -0800)]
librados: watch_flush() on shutdown
Users can easily forget this. It makes shutdown potentially block, but if
they have racing callbacks they get what they ask for.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
30678f6daf0a71b6074c061c6b4aec6386372368 )
Sage Weil [Fri, 19 Dec 2014 19:48:27 +0000 (11:48 -0800)]
librados: add rados_watch_flush() call
Add a call so that callers can make sure all queued callbacks have
completed before shutting down the ioctx. This avoids a segv triggered
by the LibRadosWatchNotifyPPTests/LibRadosWatchNotifyPP.WatchNotify2Timeout/1
test due to the ioctx being destroyed when the in-progress callback
does a notify_ack.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
4ebd4b4280cb048547842351f41b38658fb21a6e )
Sage Weil [Fri, 19 Dec 2014 16:37:00 +0000 (08:37 -0800)]
osdc/Objecter: do notify completion callback in fast-dispatch context
The notify completion has exactly one user, the librados caller which
does nothing but take a local (inner) lock and signal a Cond. Do this
in the fast-dispatch context for simplicity.
Notably, this makes the notify completion (and timeout) trigger a
notify2() return (with ETIMEDOUT) even when the finisher queue that
normally delivers notify is busy.. for example with a notify that is
being very slow. In our case, the unit test is doing a sleep(3) to
test timeouts but also prevented the ETIMEDOUT notification from
being delivered to the caller. This patch resolves that.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
9b78dafd4a80ad9a557cfdf17d10fb2bff236f1a )
Samuel Just [Mon, 22 Dec 2014 19:39:16 +0000 (11:39 -0800)]
Merge pull request #3229 from ceph/wip-osd-ctor
osd/ReplicatedPG: initialize new_backfill in ctor
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Mon, 22 Dec 2014 14:46:21 +0000 (06:46 -0800)]
Merge pull request #3230 from ceph/wip-pg-stat
mon/PGMap: restructure 'pg stat' formatted output
Reviewed-by: John Spray <jspray@redhat.com>
Sage Weil [Mon, 22 Dec 2014 14:41:25 +0000 (06:41 -0800)]
mon/PGMap: restructure 'pg stat' formatted output
The + character, which appears in state names, is not a valid XML token.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 21 Dec 2014 15:26:07 +0000 (07:26 -0800)]
osd/ReplicatedPG: initialize new_backfill in ctor
*** CID
1260213 : Uninitialized scalar field (UNINIT_CTOR)
/osd/ReplicatedPG.cc: 1242 in ReplicatedPG::ReplicatedPG(OSDService *,
std::tr1::shared_ptr<const OSDMap>, const PGPool &, spg_t)()
1236 snap_trimmer_machine(this)
1237 {
1238 missing_loc.set_backend_predicates(
1239 pgbackend->get_is_readable_predicate(),
1240 pgbackend->get_is_recoverable_predicate());
1241 snap_trimmer_machine.initiate();
>>> CID
1260213 : Uninitialized scalar field (UNINIT_CTOR)
>>> Non-static class member "new_backfill" is not initialized in this
constructor nor in any functions that it calls.
1242 }
1243
1244 void ReplicatedPG::get_src_oloc(const object_t& oid, const
object_locator_t& oloc, object_locator_t& src_oloc)
1245 {
1246 src_oloc = oloc;
1247 if (oloc.key.empty())
Signed-off-by: Sage Weil <sage@redhat.com>
Gregory Farnum [Fri, 19 Dec 2014 22:45:44 +0000 (14:45 -0800)]
Merge pull request #3121 from ceph/wip-10277
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Sage Weil [Fri, 19 Dec 2014 19:55:58 +0000 (11:55 -0800)]
Merge remote-tracking branch 'gh/next'
John Spray [Fri, 19 Dec 2014 17:03:25 +0000 (17:03 +0000)]
Merge pull request #3199 from ceph/wip-qa-empty-xattr
qa: test zero size xattr
Reviewed-by: John Spray <john.spray@redhat.com>
Sage Weil [Fri, 19 Dec 2014 15:45:02 +0000 (07:45 -0800)]
Merge remote-tracking branch 'gh/wip-fs-quota'
Conflicts:
src/client/Client.cc
Sage Weil [Fri, 19 Dec 2014 15:42:48 +0000 (07:42 -0800)]
Merge pull request #3218 from dachary/wip-10383-disable-unittest-msgr
tests: temporarily disable unittest_msgr
Loic Dachary [Fri, 19 Dec 2014 15:21:50 +0000 (16:21 +0100)]
tests: temporarily disable unittest_msgr
http://tracker.ceph.com/issues/10383 Refs: #10383
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Sage Weil [Fri, 19 Dec 2014 15:19:05 +0000 (07:19 -0800)]
Merge pull request #2976 from ceph/wip-pgmeta
osd: move PG metadata to a per-PG object
Passed rados and upgrade tests.
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Fri, 19 Dec 2014 15:09:33 +0000 (07:09 -0800)]
Merge pull request #3212 from ceph/wip-10255-wusui
Remove sepia dependency (use fqdn)
Backport: giant
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 19 Dec 2014 15:02:39 +0000 (07:02 -0800)]
Merge pull request #3214 from xinxinsh/wip-cleanup
cleanup : remove sync_epoch
Reviewed-by: Sage Weil <sage@redhat.com>
Jenkins [Fri, 19 Dec 2014 14:56:22 +0000 (06:56 -0800)]
0.90
Wido den Hollander [Fri, 19 Dec 2014 14:51:49 +0000 (15:51 +0100)]
doc: Instead of using admin socket, use 'ceph daemon' command.
Loic Dachary [Fri, 19 Dec 2014 14:36:39 +0000 (15:36 +0100)]
Merge pull request #3193 from nilamdyuti/wip-doc-ceph-disk
Changes format style in ceph-disk to improve readability as html
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Fri, 19 Dec 2014 14:07:56 +0000 (15:07 +0100)]
Merge pull request #3210 from ceph/wip-osdmap
osd: only verify OSDMap crc if it is known
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Fri, 19 Dec 2014 13:57:11 +0000 (14:57 +0100)]
Merge pull request #3216 from cstavr/master
ceph-disk: Fix wrong string formatting
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Christos Stavrakakis [Fri, 19 Dec 2014 11:46:44 +0000 (13:46 +0200)]
ceph-disk: Fix wrong string formatting
Signed-off-by: Christos Stavrakakis <stavr.chris@gmail.com>
xinxin shu [Fri, 19 Dec 2014 01:07:52 +0000 (09:07 +0800)]
cleanup : remove sync_epoch
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
Warren Usui [Wed, 17 Dec 2014 06:01:26 +0000 (22:01 -0800)]
Remove sepia dependency (use fqdn)
Fixes: #10255
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Loic Dachary [Fri, 19 Dec 2014 00:54:42 +0000 (01:54 +0100)]
Merge pull request #3209 from dmick/wip-stop.sh-me
stop.sh: only try killing processes that belong to me
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Sage Weil [Fri, 19 Dec 2014 00:49:06 +0000 (16:49 -0800)]
osd: only verfy OSDMap crc if it is known
Only verify we encode a full map with the correct CRC if we actually
have the value in the Incremental. Otherwise, any map from an old
mon will fail. And we'll try to request a full map with a message the
old mon doesn't understand.
Signed-off-by: Sage Weil <sage@redhat.com>
Dan Mick [Fri, 19 Dec 2014 00:14:43 +0000 (16:14 -0800)]
stop.sh: only try killing processes that belong to me
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Loic Dachary [Fri, 19 Dec 2014 00:12:10 +0000 (01:12 +0100)]
Merge pull request #3207 from ceph/wip-cot-rename
ceph_objectstore_tool: Rename generated binary to ceph-objectstore-tool
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Dan Mick [Fri, 19 Dec 2014 00:10:34 +0000 (16:10 -0800)]
Merge pull request #3208 from ceph/wip-10326
qa/workunits/rest/test.py: fix pg stat test
Sage Weil [Thu, 18 Dec 2014 23:45:48 +0000 (15:45 -0800)]
qa/workunits/rest/test.py: fix pg stat test
Back in
e27b0d9e42b7ac3de896c3398689bbdbe03f1bbb we changed pg stat to
not dump everything when a formatter is used.
Fixes: #10326
Signed-off-by: Sage Weil <sage@redhat.com>
John Wilkins [Thu, 18 Dec 2014 23:01:50 +0000 (15:01 -0800)]
Merge pull request #3195 from nilamdyuti/wip-doc-ceph-deploy
doc: Changes format style in ceph-deploy to improve readability as html.
Reviewed-by: John Wilkins <jowilkin@redhat.com>
John Wilkins [Thu, 18 Dec 2014 23:00:37 +0000 (15:00 -0800)]
Merge pull request #3201 from nilamdyuti/wip-doc-ceph
doc: Changes format style in ceph to improve readability as html.
Reviewed-by: John Wilkins <jowilkin@redhat.com>
Sage Weil [Thu, 18 Dec 2014 22:13:33 +0000 (14:13 -0800)]
Merge pull request #3057 from ceph/wip-crush-straw
crush: fix straw bucket scaler bugs
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Sage Weil [Tue, 16 Dec 2014 20:10:11 +0000 (12:10 -0800)]
.gitmodules: update ceph-object-corpus auth repo to github
It's annoying having ceph.com for only this repo, and it's not that big.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 18 Dec 2014 22:05:16 +0000 (14:05 -0800)]
Merge pull request #3101 from yuyuyu101/wip-10147
Messenger Unit Tests
Reviewed-by: Sage Weil <sage@redhat.com>
Gregory Farnum [Thu, 18 Dec 2014 19:36:49 +0000 (11:36 -0800)]
Merge pull request #3205 from ceph/wip-caps-init
messages/MClientCaps: init peer.flags
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Samuel Just [Thu, 18 Dec 2014 19:23:23 +0000 (11:23 -0800)]
Merge pull request #3123 from linuxbox2/wip-claim-3
Wip claim 3
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 18 Dec 2014 19:21:28 +0000 (11:21 -0800)]
Merge pull request #3111 from yuyuyu101/wip-10193
WBThrottle: make bytes/ios/inode_wb's perf counter effective
Reviewed-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 18 Dec 2014 19:20:24 +0000 (11:20 -0800)]
Merge pull request #3133 from XinzeChi/wip-2
OSD: FileJournal: call writeq_cond.Signal if necessary in submit_entry
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Samuel Just [Thu, 18 Dec 2014 19:19:34 +0000 (11:19 -0800)]
Merge pull request #3132 from mslovy/optimazation_collection_map
os: IndexManager:: optimize map<coll_t, CollectionIndex* > col_indices to unordered_map
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Loic Dachary [Thu, 18 Dec 2014 18:32:41 +0000 (19:32 +0100)]
Merge pull request #3204 from ceph/wip-osdmap-leak
osd: fix leaked OSDMap
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Haomai Wang [Tue, 9 Dec 2014 08:55:28 +0000 (16:55 +0800)]
AsyncConnection: Fix time event is called after AsyncMessenger destruction
AsyncConnection uses time event to handle async event partially, but it's not
very effective so here use dispatch_event_external instead.
And if client try to connect to server after a period, it may be call
AsyncConnection::process which will reference to AsyncMessenger. Since
AsyncMessenger doesn't use reference count, it will result in segment
fault. Now we record time event id and delete these registered time events
when stopping connection.
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Haomai Wang [Sun, 7 Dec 2014 04:27:38 +0000 (12:27 +0800)]
PipeConnection: Avoid deadlock when calling is_connected
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Haomai Wang [Sat, 6 Dec 2014 18:51:47 +0000 (02:51 +0800)]
test/msgr/test_msgr: Fix potential unsafe cond wakeup and wrap check
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Sage Weil [Thu, 18 Dec 2014 14:29:40 +0000 (06:29 -0800)]
messages/MClientCaps: init peer.flags
*** CID
1258789 : Uninitialized scalar field (UNINIT_CTOR)
/messages/MClientCaps.h: 132 in MClientCaps::MClientCaps(int, inodeno_t,
inodeno_t, unsigned long, int, unsigned int)()
126 head.ino = ino;
127 head.realm = realm;
128 head.cap_id = id;
129 head.migrate_seq = mseq;
130 peer.cap_id = 0;
131 inline_version = 0;
>>> CID
1258789 : Uninitialized scalar field (UNINIT_CTOR)
>>> Non-static class member field "peer.flags" is not initialized in this
constructor nor in any functions that it calls.
132 }
133 private:
134 ~MClientCaps() {}
135
136 public:
137 const char *get_type_name() const { return "Cfcap";}
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 18 Dec 2014 14:24:49 +0000 (06:24 -0800)]
osd: fix leaked OSDMap
*** CID
1258787 : Resource leak (RESOURCE_LEAK)
/osd/OSD.cc: 6118 in OSD::handle_osd_map(MOSDMap *)()
6112 << dendl;
6113 clog->warn() << "failed to encode map e" << e << " with expecte
crc\n";
6114 MMonGetOSDMap *req = new MMonGetOSDMap;
6115 req->request_full(e, last);
6116 monc->send_mon_message(req);
6117 last = e - 1;
>>> CID
1258787 : Resource leak (RESOURCE_LEAK)
>>> Variable "o" going out of scope leaks the storage it points to.
6118 break;
6119 }
6120
6121
6122 hobject_t fulloid = get_osdmap_pobject_name(e);
6123 t.write(META_COLL, fulloid, 0, fbl.length(), fbl);
Signed-off-by: Sage Weil <sage@redhat.com>
Haomai Wang [Sat, 6 Dec 2014 18:14:46 +0000 (02:14 +0800)]
Messenger: Create an Messenger implementation by name.
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Yan, Zheng [Thu, 18 Dec 2014 12:22:40 +0000 (20:22 +0800)]
Merge pull request #3202 from ceph/wip-fix-asok
mds: fix asok on rank 0
John Spray [Thu, 18 Dec 2014 12:14:25 +0000 (12:14 +0000)]
mds: fix asok on rank 0
Broken by:
1b2b34431 (MDS: do not allow invocation of most commands on an inactive MDS)
MDS::whoami is a rank, so check for inactive is <0, not <=0
Signed-off-by: John Spray <john.spray@redhat.com>
Nilamdyuti Goswami [Thu, 18 Dec 2014 11:43:27 +0000 (17:13 +0530)]
doc: Adds updated man page for ceph under man/
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
Nilamdyuti Goswami [Thu, 18 Dec 2014 11:41:22 +0000 (17:11 +0530)]
doc: Changes format style in ceph to improve readability as html.
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
Nilamdyuti Goswami [Thu, 18 Dec 2014 11:20:22 +0000 (16:50 +0530)]
doc: Adds updated man page for ceph-disk under man/
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
Nilamdyuti Goswami [Thu, 18 Dec 2014 11:18:50 +0000 (16:48 +0530)]
doc: Updates man page for ceph-disk with suggested changes.
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
Nilamdyuti Goswami [Wed, 17 Dec 2014 14:41:54 +0000 (20:11 +0530)]
doc: Adds updated man page for ceph-disk under man/
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
Nilamdyuti Goswami [Wed, 17 Dec 2014 14:38:22 +0000 (20:08 +0530)]
doc: Updates man page for ceph-disk.
Changes format style to improve readability as html.
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
Wido den Hollander [Thu, 18 Dec 2014 09:59:31 +0000 (10:59 +0100)]
doc: Show how new data pools can be added to CephFS for file layouts
Nilamdyuti Goswami [Thu, 18 Dec 2014 09:02:05 +0000 (14:32 +0530)]
packaging: package ceph-deploy(8)
Fixes merge conflict.
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
Nilamdyuti Goswami [Wed, 17 Dec 2014 15:17:22 +0000 (20:47 +0530)]
doc: Adds updated man page for ceph-deploy under man/
Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>