]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Sage Weil [Tue, 1 Jul 2014 22:50:33 +0000 (15:50 -0700)]
msg/Message: use RefCountedObject ctor to set initial ref count
Also, drop the useless assert in the dtor (the RefCountedObject dtor does
the same).
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 1 Jul 2014 23:44:02 +0000 (16:44 -0700)]
msg/Pipe: debug Pipe refs
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 1 Jul 2014 23:43:46 +0000 (16:43 -0700)]
msg: debug Connection refs
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 1 Jul 2014 22:44:11 +0000 (15:44 -0700)]
osd: debug Session refs
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 1 Jul 2014 22:51:06 +0000 (15:51 -0700)]
common/RefCountedObject: assert nref == 0 in dtor
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 1 Jul 2014 22:49:58 +0000 (15:49 -0700)]
common/RefCountedObject: optionally take initial ref count to ctor
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Tue, 1 Jul 2014 22:43:47 +0000 (15:43 -0700)]
common/RefCountedObject: optionally debug
Introduce a 'refs' subsys for logging. Print log ref count inc and dec
for any RefCountedObject that gets a cct passed to its ctor.
Signed-off-by: Sage Weil <sage@inktank.com>
Loic Dachary [Thu, 3 Jul 2014 14:00:56 +0000 (16:00 +0200)]
Merge pull request #2047 from dachary/wip-osd-config
osd: improve tests for configuration updates
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Loic Dachary [Thu, 3 Jul 2014 12:40:42 +0000 (14:40 +0200)]
Merge pull request #2036 from ceph/wip-osd-map-cache-size
osd: allow osd map cache size to be adjusted at runtime
Reviewed-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Thu, 3 Jul 2014 09:29:35 +0000 (11:29 +0200)]
Merge pull request #2068 from thorstenb/wip-janitorial-clang-4
ceph_argparse_flag has no regular 3rd parameter.
Reviewed-by: Loic Dachary <loic@dachary.org>
Sage Weil [Thu, 3 Jul 2014 00:44:56 +0000 (17:44 -0700)]
Merge pull request #2046 from ceph/wip-8670
mon: OSDMonitor: 'osd pool' - if we can set it, we must be able to get it
Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Sage Weil <sage@redhat.com>
Thorsten Behrens [Wed, 2 Jul 2014 22:15:03 +0000 (00:15 +0200)]
ceph_argparse_flag has no regular 3rd parameter.
With clang warning: 'va_start' has undefined behavior with reference
types, noticing copy-paste mistake on ceph_argparse_flag.
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Joao Eduardo Luis [Mon, 30 Jun 2014 16:51:47 +0000 (17:51 +0100)]
mon: OSDMonitor: 'osd pool' - if we can set it, we must be able to get it
Add support to get the values for the following variables:
- target_max_objects
- target_max_bytes
- cache_target_dirty_ratio
- cache_target_full_ratio
- cache_min_flush_age
- cache_min_evict_age
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Samuel Just [Tue, 1 Jul 2014 20:08:13 +0000 (13:08 -0700)]
Merge pull request #2055 from ceph/wip-8692
mon: clear osd request queue latency info on down or up
Reviewed-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Tue, 1 Jul 2014 19:42:19 +0000 (12:42 -0700)]
mon: clear osd request queue latency info on down or up
It doesn't make sense to warn about slow requests on OSDs that are down;
clear those stats in the monitor when we see an OSD go down (or up).
Fixes: #8692
Signed-off-by: Sage Weil <sage@inktank.com>
Gregory Farnum [Tue, 1 Jul 2014 18:49:21 +0000 (11:49 -0700)]
Merge pull request #2054 from ceph/wip-fs-cmds-oops
Apply some accidentally-dropped commits from the wip-fs-cmds branch to be a little friendlier and pass tests.
Reviewed-by: Greg Farnum <greg@inktank.com>
John Spray [Fri, 13 Jun 2014 07:41:59 +0000 (08:41 +0100)]
mds: Update default FS name
From 'default' to 'cephfs' so that it looks
at least vaguely meaningful.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 1 Jul 2014 17:18:48 +0000 (18:18 +0100)]
qa: update cephtool EC pools test to respect IDs
...of data and metadata pools which are no longer
constant.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 24 Jun 2014 21:49:54 +0000 (14:49 -0700)]
mon/MDSMonitor: EC check in 'fs new' like newfs
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 24 Jun 2014 21:14:03 +0000 (14:14 -0700)]
qa: add a check for crash_replay_interval autoset
... that after a fs new on fresh pools, crash_replay_interval
is set to the default on the data pool.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 23 Jun 2014 18:09:54 +0000 (11:09 -0700)]
mon: Set crash_replay_interval automatically
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Fri, 20 Jun 2014 15:45:12 +0000 (11:45 -0400)]
qa: Update data pool ID for vxattrs test
Signed-off-by: John Spray <john.spray@redhat.com>
Loic Dachary [Tue, 1 Jul 2014 15:05:34 +0000 (17:05 +0200)]
Merge pull request #2053 from dachary/wip-signed-warnings
test: use 0U with gtest to avoid spurious warnings
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Loic Dachary [Tue, 1 Jul 2014 14:49:32 +0000 (16:49 +0200)]
Merge pull request #2052 from dachary/wip-vstart-wrapped
qa: support running under non privileged user
Reviewed-by: Florent Flament <florent.flament@cloudwatt.com>
Loic Dachary [Tue, 1 Jul 2014 07:41:21 +0000 (09:41 +0200)]
test: use 0U with gtest to avoid spurious warnings
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Tue, 1 Jul 2014 06:42:58 +0000 (08:42 +0200)]
qa: support running under non privileged user
If the test is run against a cluster started with vstart.sh (which is
the case for make check), the --asok-does-not-need-root disables the use
of sudo and allows the test to run without requiring privileged user
permissions.
Signed-off-by: Loic Dachary <loic@dachary.org>
Gregory Farnum [Tue, 1 Jul 2014 03:52:46 +0000 (20:52 -0700)]
Merge pull request #1942 from ceph/wip-fs-cmds
Wip fs cmds
Reviewed-by: Greg Farnum <greg@inktank.com>
Sage Weil [Tue, 1 Jul 2014 00:54:58 +0000 (17:54 -0700)]
osd: allow osd map cache size to be adjusted at runtime
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Mon, 30 Jun 2014 23:50:01 +0000 (16:50 -0700)]
Merge remote-tracking branch 'gh/next'
Dan Mick [Mon, 30 Jun 2014 23:48:29 +0000 (16:48 -0700)]
Merge pull request #2050 from ceph/wip-cephtool
qa/workunits/cephtool/test.sh: sudo ceph daemon
Sage Weil [Mon, 30 Jun 2014 23:38:10 +0000 (16:38 -0700)]
qa/workunits/cephtool/test.sh: sudo ceph daemon
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Mon, 30 Jun 2014 22:31:10 +0000 (15:31 -0700)]
Merge pull request #2049 from ceph/wip-fix-pglog-unittest
PGLog: fix clear() to avoid the IndexLog::zero() asserts
Reviewed-by: Sage Weil <sage@redhat.com>
Samuel Just [Mon, 30 Jun 2014 20:40:07 +0000 (13:40 -0700)]
PGLog: fix clear() to avoid the IndexLog::zero() asserts
Introduced in:
c5b8d8105d965da852c79add607b69d5ae79a4d4
ac11ca40b4f4525cbe9b1778b1c5d9472ecb9efa
Signed-off-by: Samuel Just <sam.just@inktank.com>
Josh Durgin [Mon, 30 Jun 2014 20:13:52 +0000 (13:13 -0700)]
Merge pull request #2003 from ferustigris/hotfix/rgw_memory_leaks
RGW memory leaks have been fixed
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 30 Jun 2014 20:11:46 +0000 (13:11 -0700)]
Merge pull request #2041 from ceph/wip-map-unmap
Wip map unmap
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 30 Jun 2014 20:09:21 +0000 (13:09 -0700)]
Merge pull request #2040 from ceph/wip-krbd-settle
krbd: rework the unmap retry loop
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 30 Jun 2014 20:08:14 +0000 (13:08 -0700)]
Merge pull request #2038 from ceph/wip-fsx-random-ctx
test_librbd_fsx: use private RNG context
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Mon, 30 Jun 2014 20:02:17 +0000 (13:02 -0700)]
Merge pull request #2048 from ceph/wip-8699
rgw: fix uninit ofs in RGWObjManifect::obj_iterator
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Sage Weil [Mon, 30 Jun 2014 19:55:45 +0000 (12:55 -0700)]
rgw: fix uninit ofs in RGWObjManifect::obj_iterator
Valgrind picked this up:
<kind>UninitCondition</kind>
<what>Conditional jump or move depends on uninitialised value(s)</what>
<stack>
<frame>
<ip>0x5145B8</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWObjManifest::obj_iterator::seek(unsigned long)</fn>
<dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/
ceph-0.82-354-g62027ec /src/rgw</dir>
<file>rgw_rados.cc</file>
<line>562</line>
</frame>
<frame>
<ip>0x5672A4</ip>
<obj>/usr/bin/radosgw</obj>
<fn>list_multipart_parts(RGWRados*, req_state*, std::string const&, std::string&, int, int, std::map<unsigned int, RGWUploadPartInfo, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, RGWUploadPartInfo> > >&, int*, bool*, bool)</fn>
<dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/
ceph-0.82-354-g62027ec /src/rgw</dir>
<file>rgw_rados.h</file>
<line>217</line>
</frame>
<frame>
<ip>0x5688EE</ip>
<obj>/usr/bin/radosgw</obj>
<fn>RGWListMultipart::execute()</fn>
<dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/
ceph-0.82-354-g62027ec /src/rgw</dir>
<file>rgw_op.cc</file>
<line>2956</line>
</frame>
...
Fixes: #8699
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Mon, 30 Jun 2014 19:35:46 +0000 (12:35 -0700)]
Merge pull request #2045 from ceph/wip-8542
qa/workunits/suites/fsx.sh: don't use zero range
Reviewed-by: Greg Farnum <greg@inktank.com>
Loic Dachary [Mon, 30 Jun 2014 19:10:41 +0000 (21:10 +0200)]
osd: improve tests for configuration updates
Extract the default values from the actual configuration instead of
having them hardcoded. Also check that lowering the osd_map_cache_size
triggers the expected warning.
Signed-off-by: Loic Dachary <loic@dachary.org>
Samuel Just [Mon, 30 Jun 2014 18:12:03 +0000 (11:12 -0700)]
Merge pull request #2026 from athanatos/wip-8438-master
Wip 8438 master
Fixes: #8438
Backport: Firefly
Reviewed-by: Sage Weil <sage@inktank.com>
Samuel Just [Mon, 30 Jun 2014 18:11:16 +0000 (11:11 -0700)]
Merge pull request #2027 from athanatos/wip-7999-master
Wip 7999 master
Fixes: #7999
Backport: Firefly
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
Sage Weil [Mon, 30 Jun 2014 14:05:04 +0000 (07:05 -0700)]
qa/workunits/suites/fsx.sh: don't use zero range
Zero range is not supported by cephfs.
Fixes: #8542
Signed-off-by: Sage Weil <sage@inktank.com>
Loic Dachary [Mon, 30 Jun 2014 09:40:30 +0000 (11:40 +0200)]
Merge pull request #2039 from dachary/wip-erasure-code-doc
erasure-code: add definitions to the glossary
Reviewed-by: Florent Flament <florent.flament@cloudwatt.com>
John Spray [Thu, 12 Jun 2014 11:54:35 +0000 (12:54 +0100)]
mon/MDSMonitor: log warning while MDS up but no FS
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 12 Jun 2014 11:30:35 +0000 (12:30 +0100)]
mon/MDSMonitor: fix incorrect comment
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 12 Jun 2014 11:24:03 +0000 (12:24 +0100)]
mon/MDSMonitor: s/enabled/get_enabled()/
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 12 Jun 2014 11:22:33 +0000 (12:22 +0100)]
mds: Handle setting 'enabled' in upgrades
Previously was always defaulting to disabled,
should be enabled if MDS map epoch is >1 (i.e.
if an MDS was ever started).
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 9 Jun 2014 11:37:03 +0000 (12:37 +0100)]
mds: journal-related debug messages
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 27 May 2014 10:04:43 +0000 (11:04 +0100)]
test/qa: update for MDSMonitor changes
Accomodate changes:
* data and metadata pools no longer exist by default
* filesystem-using tests must use `fs new` to create
the filesystem first.
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Fri, 23 May 2014 13:30:20 +0000 (14:30 +0100)]
vstart: update for newfs/rmfs changes
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Tue, 29 Apr 2014 19:05:11 +0000 (20:05 +0100)]
mon: add `ceph fs [new|rm|ls]`
Signed-off-by: John Spray <john.spray@inktank.com>
Loic Dachary [Mon, 30 Jun 2014 08:19:23 +0000 (10:19 +0200)]
erasure-code: add definitions to the glossary
and fix a typo
Signed-off-by: Loic Dachary <loic@dachary.org>
John Spray [Tue, 27 May 2014 12:22:51 +0000 (13:22 +0100)]
mon: hide mdsmap in 'ceph status' if not enabled
Previously we checked if the MDS map had ever been
updated (epoch > 1), now we have an explicit flag
for whether it's enabled.
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Tue, 29 Apr 2014 16:18:18 +0000 (17:18 +0100)]
mon: stop MDSMonitor when FS disabled
Where 'stopped' means ignoring beacons and
not performing 'tick' activities.
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Tue, 29 Apr 2014 16:17:56 +0000 (17:17 +0100)]
mon: enable deleting pools when FS disabled
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Tue, 29 Apr 2014 15:22:51 +0000 (16:22 +0100)]
mon: warn in newfs if crash_replay_interval=0
This is the setting we would apply to data pools
created automatically, so notify the user if they're
failing to use it for data pools they have created
by hand.
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Tue, 29 Apr 2014 15:01:52 +0000 (16:01 +0100)]
mon: don't require 'sure' flag for new fs
Only prompt for --yes-i-really-mean-it if there
is an existing FS.
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Tue, 29 Apr 2014 14:39:45 +0000 (15:39 +0100)]
osdmap: Don't create FS pools by default
Because many Ceph users don't use the filesystem,
don't create the 'data' and 'metadata' pools by
default -- they will be created by newfs if
they are needed.
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Tue, 29 Apr 2014 14:14:42 +0000 (15:14 +0100)]
mds: no initial filesystem
Because not everyone uses CephFS, we would
like to avoid initially creating any data/metadata
pools for CephFS.
To avoid creating those pools, we must avoid initially
populating the MDSMap.
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Tue, 29 Apr 2014 14:11:06 +0000 (15:11 +0100)]
mds: add 'enabled' flag to MDSMap
When 'enabled' is false, the MDSMap is effectively
null. This allows Ceph clusters with no filesystem
or filesystem data/metadata pools.
Signed-off-by: John Spray <john.spray@inktank.com>
John Spray [Wed, 21 May 2014 17:25:05 +0000 (18:25 +0100)]
doc: RPM instructions correction
Signed-off-by: John Spray <john.spray@inktank.com>
Ilya Dryomov [Wed, 25 Jun 2014 16:23:44 +0000 (20:23 +0400)]
krbd: rework the unmap retry loop
The retry loop in the unmap path turned out to be insufficient for
doing long fsx -K runs. Replace it with a single retry and then call
out to 'udevadm settle' if the retry doesn't help.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Andrey Kuznetsov [Fri, 27 Jun 2014 06:33:58 +0000 (10:33 +0400)]
[RGW, memory leak] Memory leak in RGW has been fixed: deletion of allocated pointer to pointer to Log object has been added to "on_exit" handler.
Memory leaks detector report:
$ valgrind --leak-check=full /usr/bin/radosgw -c /etc/ceph/ceph.conf -n
client.radosgw.gateway -
...
==16986== 8 bytes in 1 blocks are definitely lost in loss record 14 of 83
==16986== at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==16986== by 0x58980B8: ceph::log::Log::set_flush_on_exit() (in /usr/lib64/librados.so.2.0.0)
==16986== by 0x6BE3CA: global_init(std::vector<char const*, std::allocator<char const*> >*, st
==16986== by 0x5B6B0A: main (in /usr/bin/radosgw)
...
Signed-off-by: Andrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Andrey Kuznetsov [Thu, 19 Jun 2014 13:59:31 +0000 (17:59 +0400)]
[RGW, memory leak] Memory leak in RGW GC (losing pointer during allocating Ceph-context) has been fixed.
Memory leaks detector report:
...
==117947== 11,725 (200 direct, 11,525 indirect) bytes in 25 blocks are definitely lost in loss
record 82 of 82
==117947== at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==117947== by 0x687CC1: RGWGC::process(int, int) (in /usr/bin/radosgw)
==117947== by 0x6884D1: RGWGC::process() (in /usr/bin/radosgw)
==117947== by 0x68875C: RGWGC::GCWorker::entry() (in /usr/bin/radosgw)
==117947== by 0x55F890A: Thread::_entry_func(void*) (in /usr/lib64/librados.so.2.0.0)
==117947== by 0x34D46079D0: start_thread (in /lib64/libpthread-2.12.so)
==117947== by 0x34D42E8B6C: clone (in /lib64/libc-2.12.so)
...
Signed-off-by: Andrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Andrey Kuznetsov [Thu, 19 Jun 2014 13:56:01 +0000 (17:56 +0400)]
[RGW, memory leaks] Memory leak in RGW initialization (Inserting new connection into connections map w/o check) has been fixed.
Memory leaks detector report:
$ valgrind --leak-check=full /usr/bin/radosgw -c /etc/ceph/ceph.conf -n
client.radosgw.gateway -f
...
=16986== 1,262 (48 direct, 1,214 indirect) bytes in 1 blocks are definitely lost in loss record 81
of 83
==16986== at 0x4A075BC: operator new(unsigned long) (vg_replace_malloc.c:298)
==16986== by 0x618F0D: RGWRados::init_complete() (in /usr/bin/radosgw)
==16986== by 0x618FE6: RGWRados::initialize() (in /usr/bin/radosgw)
==16986== by 0x63BB23: RGWRados::initialize(CephContext*, bool) (in /usr/bin/radosgw)
==16986== by 0x634D20: RGWStoreManager::init_storage_provider(CephContext*, bool) (in
/usr/bin/radosgw)
==16986== by 0x5B8970: RGWStoreManager::get_storage(CephContext*, bool) (in /usr/bin/radosgw)
==16986== by 0x5B6D5D: main (in /usr/bin/radosgw)
...
Signed-off-by: Andrey Kuznetsov <Andrey_Kuznetsov@epam.com>
Ilya Dryomov [Thu, 26 Jun 2014 13:34:19 +0000 (17:34 +0400)]
map-unmap.sh: fail if 'rbd rm' fails
Fail if 'rbd rm' fails - most probably it'd fail with "image still has
watchers" and in that case it's a bug in the kernel client which we do
want to notice. Also nuke the trap-based error handling - cleanup() is
half-baked and not really necessary here.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Thu, 26 Jun 2014 13:34:19 +0000 (17:34 +0400)]
map-unmap.sh: drop the get_id() logic
Take advantage of the fact that 'rbd map' will now talk to udev and
output the device that got assigned by the kernel to the newly created
mapping. Drop the get_id() cruft, udevadm settle and chown calls.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Ilya Dryomov [Fri, 27 Jun 2014 18:43:39 +0000 (22:43 +0400)]
test_librbd_fsx: use private RNG context
It is at the core of fsx to be able to reproduce the exact op sequence
that lead to a failure. Use reentrant glibc RNG functions to make sure
that nothing else has to chance to mess up the sequence.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Joao Eduardo Luis [Sat, 28 Jun 2014 13:44:09 +0000 (14:44 +0100)]
doc: dev: cache-pool.rst: fix typo s/objets/objects/
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Samuel Just [Fri, 27 Jun 2014 20:27:47 +0000 (13:27 -0700)]
Merge remote-tracking branch 'upstream/master' into wip-8438-master
Conflicts:
src/osd/ECMsgTypes.cc
Samuel Just [Mon, 2 Jun 2014 20:44:49 +0000 (13:44 -0700)]
osd/: in scrub, check for and remove obsolete rollback objs
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Fri, 30 May 2014 23:53:37 +0000 (16:53 -0700)]
osd/: plumb rollback_trim_to through interfaces and messages
We simply trim the roll back info up to min_last_complete_ondisk
since we cannot correctly rollback past that point anyway!
ReplicatedPG
-> PGBackend::submit_transaction
-> Backend messages
-> PGBackend::Listener::log_operation
-> append_log
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Fri, 30 May 2014 23:27:32 +0000 (16:27 -0700)]
PGLog: add rollback_info_trimmed_to_riter to IndexedLog and use in PG
Signed-off-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Fri, 27 Jun 2014 20:25:41 +0000 (13:25 -0700)]
doc/release-notes: v0.82
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Fri, 27 Jun 2014 19:55:44 +0000 (12:55 -0700)]
Merge branch 'next'
Yehuda Sadeh [Mon, 16 Jun 2014 18:48:24 +0000 (11:48 -0700)]
rgw: allocate enough space for bucket instance id
Fixes: #8608
Backport: dumpling, firefly
Bucket instance id is a concatenation of zone name, rados instance id,
and a running counter. We need to allocate enough space to account zone
name length.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Samuel Just [Fri, 30 May 2014 22:40:15 +0000 (15:40 -0700)]
PGLog: fix logging whitespace in trim
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Fri, 27 Jun 2014 17:54:23 +0000 (10:54 -0700)]
Merge remote-tracking branch 'upstream/master' into wip-7999-master
Conflicts:
src/os/KeyValueStore.h
Samuel Just [Fri, 27 Jun 2014 17:51:13 +0000 (10:51 -0700)]
PG: block outgoing peering messages until the last interval is durable
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 21 May 2014 20:09:33 +0000 (13:09 -0700)]
PG: add machinery to temporarily buffer outgoing recovery messages
Signed-off-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Mon, 9 Jun 2014 18:00:32 +0000 (11:00 -0700)]
os/: add async flush_commit() method to Sequencer and implementations
Signed-off-by: Samuel Just <sam.just@inktank.com>
Sage Weil [Thu, 26 Jun 2014 19:43:08 +0000 (12:43 -0700)]
Merge pull request #2035 from ceph/wip-da-SCA-
20140623
Fix for SCA and CID issues
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 26 Jun 2014 18:37:15 +0000 (11:37 -0700)]
Revert "ceph-disk: Enable creating multiple osds per dev"
This reverts commit
200d0ae9c6e6701c06310230e180d4e739865bfe .
This breaks ceph-disk. See #8644. Reverting for now.
Signed-off-by: Sage Weil <sage@redhat.com>
Greg Farnum [Thu, 26 Jun 2014 17:35:00 +0000 (10:35 -0700)]
test: use (unsigned)0 with gtest to avoid spurious warnings
Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Samuel Just [Thu, 26 Jun 2014 18:05:49 +0000 (11:05 -0700)]
Merge pull request #2034 from ceph/wip-osd-ints
osd: fix int -> int32_t in misc encoded structures
Reviewed-by: Samuel Just <sam.just@inktank.com>
Danny Al-Gaaf [Thu, 26 Jun 2014 16:51:19 +0000 (18:51 +0200)]
scratchtool.c: cleanup do_rados_getxattrs()
Cleanup error path to reduce code duplication.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Thu, 26 Jun 2014 16:13:47 +0000 (09:13 -0700)]
osd: fix pg_stat_t int -> int32_t
Still 4 bytes on i386 and x86_64.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 26 Jun 2014 16:13:30 +0000 (09:13 -0700)]
osd: fix pg_shard_t int -> int32_t
Still 4 bytes on i386 and x86_64.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 26 Jun 2014 16:11:53 +0000 (09:11 -0700)]
osd: fix pg_interval_t int -> int32_t
Still 4 bytes on i386 and x86_64.
Signed-off-by: Sage Weil <sage@inktank.com>
Sage Weil [Thu, 26 Jun 2014 15:47:06 +0000 (08:47 -0700)]
Merge pull request #2032 from sponce/wip-fixstriperoni386
Wip fixstriperoni386
Reviewed-by: Sage Weil <sage@redhat.com>
Sebastien Ponce [Thu, 26 Jun 2014 13:00:15 +0000 (15:00 +0200)]
Fixed build on 32 bits platforms
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
Sebastien Ponce [Thu, 26 Jun 2014 08:37:36 +0000 (10:37 +0200)]
Added a couple of ASSERTS for avoiding coverity to complain about the possibility of a division by 0
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
Sage Weil [Thu, 26 Jun 2014 15:33:11 +0000 (08:33 -0700)]
Merge pull request #2030 from ceph/wip-xattr-fix
mds: set xattr_version to 0 if replay doesn't contain xattrs
Reviewed-by: Sage Weil <sage@redhat.com>
Yan, Zheng [Thu, 26 Jun 2014 05:30:13 +0000 (13:30 +0800)]
mds: set xattr_version to 0 if replay doesn't contain xattrs
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Sage Weil [Thu, 26 Jun 2014 05:06:58 +0000 (22:06 -0700)]
Merge pull request #2019 from ceph/wip-refactor-cephtool-test
qa/workunits/cephtool/test.sh: refactor and make it modular (yey! \o/)
Reviewed-by: Loic Dachary <loic@dachary.org>
Danny Al-Gaaf [Thu, 26 Jun 2014 03:22:02 +0000 (05:22 +0200)]
common/fd.cc: fix possible out-of-bounds write
Read max 'sizeof(target) - 1' to not write out of bound
later on the 'target[r] = 0;' call in case we read the
full PATH_MAX.
CID
1128416 (#1 of 1): Out-of-bounds write (OVERRUN)
overrun-local: Overrunning array target of 4096 bytes
at byte offset 4096 using index r (which evaluates to 4096).
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 26 Jun 2014 02:40:09 +0000 (04:40 +0200)]
mount.ceph.c: fix strdup related memory leak
CID
1219611 (#1 - 5): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable saw_name 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, 26 Jun 2014 01:49:22 +0000 (03:49 +0200)]
scratchtool.c: fix resource leak and error handling
Check the result of rados_ioctx_create()before using io_ctx.
Free io_ctx where needed. Fix messages at the end of testrados().
CID
1219613 (#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>