]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Sage Weil [Wed, 10 Sep 2014 13:57:12 +0000 (06:57 -0700)]
osdc/Objecter: fix leak of MStatfsReply
Signed-off-by: Sage Weil <sage@redhat.com>
Josh Durgin [Tue, 9 Sep 2014 00:48:45 +0000 (17:48 -0700)]
Merge pull request #2422 from ceph/wip-6494
Enforce cache size on read requests
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
John Wilkins [Mon, 8 Sep 2014 21:04:33 +0000 (14:04 -0700)]
doc: Fixed broken links and clarified terms for new authentication docs.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
John Wilkins [Mon, 8 Sep 2014 20:24:52 +0000 (13:24 -0700)]
doc: Minor cleanup.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Sage Weil [Mon, 8 Sep 2014 20:13:36 +0000 (13:13 -0700)]
Merge pull request #2424 from ceph/wip-9366
lttng: Fix 'make tag' when configured --without-lttng
Josh Durgin [Mon, 8 Sep 2014 19:47:42 +0000 (12:47 -0700)]
Merge pull request #2390 from ceph/wip-9311
Parallelize RBD import/export
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 8 Sep 2014 19:22:29 +0000 (12:22 -0700)]
Merge pull request #2426 from ceph/wip-doc-qemu
doc: Added more robust usage example for uid and conf for QEMU.
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Mon, 8 Sep 2014 19:19:45 +0000 (12:19 -0700)]
Merge remote-tracking branch 'gh/next'
Sage Weil [Mon, 8 Sep 2014 16:31:38 +0000 (09:31 -0700)]
doc/release-notes: v0.85
Signed-off-by: Sage Weil <sage@redhat.com>
John Wilkins [Mon, 8 Sep 2014 18:58:09 +0000 (11:58 -0700)]
doc: Added more robust usage example for uid and conf for QEMU.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
John Wilkins [Mon, 8 Sep 2014 18:26:37 +0000 (11:26 -0700)]
doc: Clean up syntax to suppress warnings.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
John Wilkins [Mon, 8 Sep 2014 18:24:28 +0000 (11:24 -0700)]
doc: Clean up syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Sage Weil [Mon, 8 Sep 2014 17:06:09 +0000 (10:06 -0700)]
Merge pull request #2421 from ceph/wip-paxos-dout
mon/Paxos: don't spam log with is_readable at dout level 1
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
Adam Crume [Fri, 5 Sep 2014 21:33:20 +0000 (14:33 -0700)]
lttng: Fix 'make tag' when configured --without-lttng
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Sage Weil [Mon, 8 Sep 2014 15:39:50 +0000 (08:39 -0700)]
mon/Paxos: make is_readable debug output show result
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 8 Sep 2014 13:58:45 +0000 (06:58 -0700)]
mon/Paxos: don't spam log with is_readable at dout level 1
Backport: firefly, dumpling
Reported-by: Aanchal Agrawal <Aanchal.Agrawal@sandisk.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Jenkins [Mon, 8 Sep 2014 13:31:31 +0000 (06:31 -0700)]
0.85
John Spray [Mon, 8 Sep 2014 11:43:12 +0000 (12:43 +0100)]
Merge pull request #2395 from ceph/wip-9282
mds: warn clients which aren't revoking caps
John Spray [Mon, 8 Sep 2014 11:18:34 +0000 (12:18 +0100)]
Merge pull request #2391 from ceph/wip-mds-lock
Wip mds lock
Reviewed-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 8 Sep 2014 11:17:30 +0000 (12:17 +0100)]
Merge pull request #2404 from ceph/wip-9358
osdc/Journaler: fix try_read_entry()/wait_for_readable() locking
Reviewed-by: John Spray <john.spray@redhat.com>
Loic Dachary [Sun, 7 Sep 2014 20:54:59 +0000 (22:54 +0200)]
Merge pull request #2365 from infernix/centos5
Include types.h after stdint.h to accommodate for older distributions.
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Gerben Meijer [Sun, 31 Aug 2014 14:35:10 +0000 (16:35 +0200)]
Include types.h after stdint.h to accomodate for older distributions. This fixes compilation on CentOS 5.
Signed-off-by: Gerben Meijer <infernix@gmail.com>
Loic Dachary [Sun, 7 Sep 2014 07:22:08 +0000 (09:22 +0200)]
Merge pull request #2415 from johnkeepmoving/fix-off-error-in-rbd.cc
correct error of repeatedly adding io_size to off in do_bench_write
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
jiangheng [Sun, 7 Sep 2014 06:48:03 +0000 (14:48 +0800)]
correct error of repeatedly adding io_size to off in do_bench_write
Signed-off-by: jiangheng <jiangheng0511@gmail.com>
Jason Dillaman [Sun, 7 Sep 2014 02:59:40 +0000 (22:59 -0400)]
Enforce cache size on read requests
In-flight cache reads were not previously counted against
new cache read requests, which could result in very large
cache usage. This effect is most noticeable when writing
small chunks to a cloned image since each write requires
a full object read from the parent.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Loic Dachary [Sat, 6 Sep 2014 20:51:13 +0000 (22:51 +0200)]
Merge pull request #2396 from ceph/wip-SCA-
20140902
SCA and Coverity fixes
Reviewed-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Sat, 6 Sep 2014 10:40:35 +0000 (12:40 +0200)]
Merge pull request #2398 from xiaoxichen/refactor_lrc_crush
Refactor ErasureCodeLrc::create_ruleset
Reviewed-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Sat, 6 Sep 2014 01:01:48 +0000 (03:01 +0200)]
Merge pull request #2410 from dachary/wip-9368
erasure-code: init function is extern "C"
Loic Dachary [Sat, 6 Sep 2014 00:55:15 +0000 (02:55 +0200)]
erasure-code: init function is extern "C"
Otherwise it is not found and the real cause obscured by the test
setup. The thread returns immediately and the timeout test sometime
fails.
http://tracker.ceph.com/issues/9368 Fixes: #9368
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
John Wilkins [Fri, 5 Sep 2014 21:17:47 +0000 (14:17 -0700)]
doc: Update logging path to reflect log rotate script default path.
Fixes: #9351
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Josh Durgin [Fri, 5 Sep 2014 21:09:51 +0000 (14:09 -0700)]
Merge pull request #2407 from ceph/wip-formatter-va
formatter: clean up dump_format()
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Loic Dachary [Fri, 5 Sep 2014 18:59:39 +0000 (20:59 +0200)]
Merge pull request #2408 from theanalyst/doc/contributing
doc: Add a contributing file at the root of repo
Reviewed-by: Loic Dachary <loic@dachary.org>
Abhishek Lekshmanan [Fri, 5 Sep 2014 18:04:17 +0000 (23:34 +0530)]
doc: Add a contributing file at the root of repo
Github shows up a `guidelines for contributing` while opening a new pull
request for any repository with a CONTRIBUTING file at the repo
root, which allows for a quick overview to contribute to the
repository.
Currently this file just links to the Submitting Patches and the
documentation start guide.
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Yehuda Sadeh [Fri, 5 Sep 2014 17:48:20 +0000 (10:48 -0700)]
Merge pull request #2406 from alram/master
rgw: add .log to default log path
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Alexandre Marangone [Fri, 5 Sep 2014 17:36:24 +0000 (10:36 -0700)]
rgw: add .log to default log path
Fixes: #9353
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Yehuda Sadeh [Fri, 5 Sep 2014 17:29:08 +0000 (10:29 -0700)]
formatter: clean up dump_format()
Create a common dump_format_va() function, and make all the different
variants call it.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 5 Sep 2014 16:06:39 +0000 (09:06 -0700)]
Merge pull request #2329 from theanalyst/f/s3_bucket_loc
WIP: S3: Implementation for S3 Get Bucket Location
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Loic Dachary [Fri, 5 Sep 2014 15:56:45 +0000 (17:56 +0200)]
Merge pull request #2405 from dachary/wip-workunits
qa: scripts to help test ceph-qa-suite
Reviewed-by: Cheng Cheng <ccheng.leo@gmail.com>
Loic Dachary [Fri, 5 Sep 2014 11:40:27 +0000 (13:40 +0200)]
qa: scripts to help test ceph-qa-suite
This workunit will be used by tests as a placeholder that always return
true. This is helpful in tests when a script from the qa/workunits
directory is mandatory but we do not care about testing anything. For
an example of how it can be used, check
https://github.com/ceph/ceph-qa-suite/pull/120
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Yan, Zheng [Fri, 5 Sep 2014 14:12:01 +0000 (22:12 +0800)]
osdc/Journaler: fix try_read_entry()/wait_for_readable() locking
These two functions should be protected by the Journal::mutex. Furthermore,
wait_for_readable() is racy. The journal may have already become readable
when it is called.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Thu, 4 Sep 2014 12:15:18 +0000 (20:15 +0800)]
mds: warn clients which aren't revoking caps
Add a list to Locker to track revoking caps. print a warning message if client does not
release caps within the given time.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Abhishek Lekshmanan [Mon, 25 Aug 2014 08:31:54 +0000 (14:01 +0530)]
rgw: Implementation for S3 Get Bucket Location
S3 API supports getting the location for a bucket, which gives out one
of those geographic zones (US-WEST-1, EU for eg). Also it returns an
empty string for the default region.
(http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html)
Since LocationConstraint corresponds to regions in our case, this API
returns the region, for the "default" region empty string is returned
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Abhishek Lekshmanan [Sat, 30 Aug 2014 08:12:42 +0000 (13:42 +0530)]
test/formatter: Add tests for dump_format_ns
Adding basic unit test to test the new formatter class'
dump_format_ns. Since the functionality only affects XML (and other
implementations mimic dump_format exactly), tests are added for these.
`fmt.close_section()` is avoided in the tests as this calls an
assert (and there is no section to close) and this triggers a test
failure.
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Abhishek Lekshmanan [Wed, 27 Aug 2014 10:41:53 +0000 (16:11 +0530)]
rgw_formats: dump_format_ns implementation
Since the base formatter was extended with a dump_format_ns class,
implementing this here. For now, this is exactly same as dump_format, as
the concept of ns in json is not used.
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Abhishek Lekshmanan [Wed, 27 Aug 2014 06:32:19 +0000 (12:02 +0530)]
Formatter: add a dump_format_ns to base Formatter
`dump_format_ns` is a generic formatter to dump a simple format along
with a namespace. It is `dump_format` with an optional ns. This also
extends the XML formatter with this functionality. This allows creation
of xml tags with ns and a specified format. The JSON Format doesn't
define a ns, and here the functionality is exactly same as that of
`dump_format`
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Xiaoxi Chen [Thu, 4 Sep 2014 15:47:51 +0000 (23:47 +0800)]
Refactor ErasureCodeLrc::create_ruleset
Refactor ErasureCodeLrc::create_ruleset
1.Use CrushWrapper instead of crush C-api.
2.Make ruleset_id == rule_id, consist as the behavior in
CrushWrapper::add_simple_ruleset().
Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
Yan, Zheng [Fri, 5 Sep 2014 00:56:36 +0000 (08:56 +0800)]
Merge pull request #2375 from ceph/wip-8648
mds: clear objects' dirty flags after log segment is expired
David Zafman [Fri, 5 Sep 2014 00:33:21 +0000 (17:33 -0700)]
Merge pull request #2393 from dachary/wip-warning
erasure-code: warning fix
Reviewed-by: David Zafman <dzafman@redhat.com>
Yan, Zheng [Tue, 2 Sep 2014 09:10:41 +0000 (17:10 +0800)]
mds: clear objects' dirty flags after log segment is expired
When standby-replay MDS detects a log segment is expired, it should check
the expired segment's dirty lists and clear corresponding objects' dirty
bits. Otherwise these objects will be pinned in the standby-replay MDS's
cache forever.
Fixes: #8648
Signed-off-by: Yan, Zheng <zyan@redhat.com>
John Wilkins [Thu, 4 Sep 2014 17:51:17 +0000 (10:51 -0700)]
Merge pull request #2399 from ceph/wip-8366
doc: adds a navigational menu for docs
Reviewed-by: John Wilkins <john.wilkins@inktank.com>
Alfredo Deza [Thu, 4 Sep 2014 01:21:45 +0000 (21:21 -0400)]
doc: fix missing bracket
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
Alfredo Deza [Thu, 4 Sep 2014 00:47:54 +0000 (20:47 -0400)]
doc: attempt to get the ayni JS into all head tags
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
Danny Al-Gaaf [Thu, 4 Sep 2014 14:09:01 +0000 (16:09 +0200)]
OSDMonitor.cc: fix potential division by zero
Fix for:
CID
1232602 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
divide_by_zero: In expression num_pg_copies / num_osds, division
by expression num_osds which may be zero has undefined behavior.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 4 Sep 2014 12:58:50 +0000 (14:58 +0200)]
objectstore/store_test.cc: fix unintentional integer overflow
CID
1232603 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
overflow_before_widen: Potentially overflowing expression
objs_per_folder * folders_range(rng) with type int (32 bits,
signed) is evaluated using 32-bit arithmetic before being
used in a context which expects an expression of type
uint64_t (64 bits, unsigned). To avoid overflow, cast
either operand to uint64_t before performing the multiplication.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 4 Sep 2014 12:36:18 +0000 (14:36 +0200)]
os/HashIndex.cc: fix unintentional integer overflow
CID
1232604 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
overflow_before_widen: Potentially overflowing expression
(unsigned int)abs(this->merge_threshold) * 16U * this->split_multiplier
with type unsigned int (32 bits, unsigned) is evaluated using 32-bit
arithmetic before being used in a context which expects an expression of
type uint64_t const (64 bits, unsigned). To avoid overflow, cast either
operand to uint64_t const before performing the multiplication.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 4 Sep 2014 11:57:58 +0000 (13:57 +0200)]
mount.ceph.c: free memory before return
CID
1219610 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable buf going out of scope leaks the
storage it points to.
leaked_storage: Variable mount_path going out of scope leaks
the storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 4 Sep 2014 11:01:11 +0000 (13:01 +0200)]
st_rados_create_pool.cc: cleanup before return from run()
CID 739605 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable io_ctx going out of scope leaks the
storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 4 Sep 2014 10:20:11 +0000 (12:20 +0200)]
rados_list_parallel.cc: cleanup before return from run()
Fix for:
CID 717112 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable io_ctx going out of scope leaks
the storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Loic Dachary [Thu, 4 Sep 2014 08:14:03 +0000 (10:14 +0200)]
erasure-code: warning fix
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Thu, 4 Sep 2014 08:04:28 +0000 (10:04 +0200)]
Merge pull request #2392 from majianpeng/fix1
FileStore: Remove unused code.
Reviewed-by: Loic Dachary <loic@dachary.org>
Ma Jianpeng [Thu, 4 Sep 2014 06:01:20 +0000 (14:01 +0800)]
FileStore: Remove unused code.
Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
Gregory Farnum [Thu, 4 Sep 2014 04:08:15 +0000 (21:08 -0700)]
Merge pull request #2373 from ceph/wip-9026
client: vxattr support for stat
Reviewed-by: Greg Farnum <greg@inktank.com>
Yan, Zheng [Thu, 4 Sep 2014 02:58:27 +0000 (10:58 +0800)]
mds: don't take mds_lock when doing journal operations
Now journaler and objecter have internal locks to protect themself, there is
no need to take the mds_lock before using journaler and objecter.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Danny Al-Gaaf [Wed, 3 Sep 2014 20:59:30 +0000 (22:59 +0200)]
librbd.cc: add check to prevent null deref in rbd_list()
Fix for :
CID
1192467 (2 of 2): Explicit null dereferenced (FORWARD_NULL)
var_deref_model: Passing null pointer ibuf to rbd_list,
which dereferences it.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Jason Dillaman [Tue, 2 Sep 2014 20:43:38 +0000 (16:43 -0400)]
Parallelize RBD import/export
Use librbd aio_read/_write calls where possible to improve speed.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Danny Al-Gaaf [Wed, 3 Sep 2014 15:52:00 +0000 (17:52 +0200)]
PendingIO.cc: use static_cast instead of c-style cast
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Wed, 3 Sep 2014 15:51:04 +0000 (17:51 +0200)]
FileStore.cc: use static_cast instead of c-style cast
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
John Spray [Wed, 3 Sep 2014 12:52:32 +0000 (13:52 +0100)]
Merge remote-tracking branch 'origin/next'
John Spray [Wed, 3 Sep 2014 12:39:25 +0000 (13:39 +0100)]
Merge pull request #2377 from ceph/wip-session-stats
mds: cap and lease count in `session ls` asok
Reviewed-by: Yan, Zheng <ukernel@gmail.com>
John Spray [Wed, 3 Sep 2014 12:39:19 +0000 (13:39 +0100)]
Merge pull request #2376 from ceph/wip-request-count
mds: Fix Session::get_request_count
Reviewed-by: Yan, Zheng <ukernel@gmail.com>
Yan, Zheng [Tue, 2 Sep 2014 06:10:52 +0000 (14:10 +0800)]
client: vxattr support for rstat
copy the kernel client code (which uses table to present vxattrs)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Samuel Just [Tue, 2 Sep 2014 21:09:55 +0000 (14:09 -0700)]
Merge pull request #2363 from ceph/wip-9285
osd/ReplicatedPG: do not evict blocked objects
Reviewed-by: Samuel Just <sam.just@inktank.com>
John Spray [Tue, 2 Sep 2014 21:02:59 +0000 (22:02 +0100)]
Merge pull request #2343 from ceph/wip-9151
Wip 9151 + 9152
Reviewed-by: Sage Weil <sage@redhat.com>
Samuel Just [Tue, 2 Sep 2014 19:47:51 +0000 (12:47 -0700)]
Merge pull request #2362 from ceph/wip-9294
osd/ReplicatedPG: avoid dereferencing iterator at end()
Reviewed-by: Samuel Just <sam.just@inktank.com>
John Wilkins [Tue, 2 Sep 2014 18:40:22 +0000 (11:40 -0700)]
Merge pull request #2322 from ceph/wip-doc-authentication
doc: Refactored authentication docs.
Reviewed-by: John Wilkins <john.wilkins@inktank.com>
John Wilkins [Tue, 2 Sep 2014 18:38:16 +0000 (11:38 -0700)]
doc: Provided additional detail on daemon-specific caps syntax.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
John Wilkins [Tue, 2 Sep 2014 18:37:33 +0000 (11:37 -0700)]
doc: Updated Keyring settings from comments and ceph-deploy defaults.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
Loic Dachary [Tue, 2 Sep 2014 17:18:35 +0000 (19:18 +0200)]
Merge pull request #2372 from dachary/wip-disk-thread-ioprio
documentation: document disk thread ioprio options
Reviewed-by: Volker Voigt <volker.voigt@1und1.de>
Loic Dachary [Mon, 1 Sep 2014 17:15:57 +0000 (19:15 +0200)]
documentation: disk thread ioprio options
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Danny Al-Gaaf [Tue, 2 Sep 2014 13:15:04 +0000 (15:15 +0200)]
client/Client.cc: fix null pointer checks for 'in'
Cleanup checks for null pointer dereference of 'in' use a
wider code block the cover 'in'.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
John Spray [Mon, 1 Sep 2014 17:43:11 +0000 (18:43 +0100)]
mon: add MDS metric metadata to health detail
This is a bit wonky because the mon health structure expects
a string, and we have a key-val structure, but it's better
to output this somehow than to have it rot as a purely internal
thing.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 27 Aug 2014 21:36:10 +0000 (22:36 +0100)]
mds: add thread to progress queues outside dispatch
This speeds up processing of queued waiters.
Fixes: #9252
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 27 Aug 2014 18:04:03 +0000 (19:04 +0100)]
mon: handle beacon health metrics in MDSMonitor
Fixes: #9151
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 27 Aug 2014 18:03:40 +0000 (19:03 +0100)]
mds: populate health metrics in beacon
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 27 Aug 2014 18:02:52 +0000 (19:02 +0100)]
messages: add health fields to MMDSBeacon
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 27 Aug 2014 12:31:27 +0000 (13:31 +0100)]
mds: use HeartbeatMap to control beacons
...so that if something hogs mds_lock without
pinging the heartbeat map, we will stop sending
beacons to the mon and it will have the chance
to recognise that we are laggy.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 26 Aug 2014 11:53:10 +0000 (12:53 +0100)]
mds: const getters in MDLog
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 26 Aug 2014 11:52:38 +0000 (12:52 +0100)]
include/CompatSet: more const-ness
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Fri, 22 Aug 2014 00:17:55 +0000 (01:17 +0100)]
mds: promote Beacon to be a Dispatcher
This allows it to handle its own MSG_MDS_BEACON
messages from the mon, outside of mds_lock.
This is less important than the sending of beacons
being outside the lock, but still nice to have and
gets all the beacon messaging in one place.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 21 Aug 2014 16:54:55 +0000 (17:54 +0100)]
mds: extract beacon state from MDS lock
For clarity, give it its own class for the
state protected by the separate lock too.
Fixes: #9152
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 21 Aug 2014 17:46:41 +0000 (18:46 +0100)]
include/CompatSet: make merge const()
With usual shenanigans to deal with [] on map
not being const-safe.
Signed-off-by: John Spray <john.spray@redhat.com>
Danny Al-Gaaf [Tue, 2 Sep 2014 12:56:47 +0000 (14:56 +0200)]
mds/CInode.h: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 2 Sep 2014 12:56:10 +0000 (14:56 +0200)]
ceph_objectstore_tool.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
John Spray [Tue, 2 Sep 2014 12:16:03 +0000 (13:16 +0100)]
mds: cap and lease count in `session ls` asok
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 2 Sep 2014 12:15:09 +0000 (13:15 +0100)]
mds: Fix Session::get_request_count
Signed-off-by: John Spray <john.spray@redhat.com>
Danny Al-Gaaf [Tue, 2 Sep 2014 12:15:21 +0000 (14:15 +0200)]
rbd_replay/Replayer.cc: pass const string parameter by reference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 2 Sep 2014 12:03:51 +0000 (14:03 +0200)]
ReplicatedPG.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 2 Sep 2014 12:03:03 +0000 (14:03 +0200)]
IndexManager.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 2 Sep 2014 11:57:23 +0000 (13:57 +0200)]
PGMonitor.cc: prefer empty() over size() for emptiness check
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Tue, 2 Sep 2014 11:53:52 +0000 (13:53 +0200)]
ErasureCodeLrc.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>