Commit Graph

57594 Commits

Author SHA1 Message Date
Ken Dreyer
a676c51606 doc: add "--orphan-stale-secs" to radosgw-admin(8)
The radosgw-admin(8) manual page did not include the description of the
`--orphan-stale-secs` option of the `orphans find` command. The option sets
the number of seconds to wait before declaring an object to be an
orphan.

Fixes: http://tracker.ceph.com/issues/17280
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2016-09-15 11:41:04 -06:00
Sage Weil
c6dc589fa4 Merge pull request #11095 from liewegas/wip-bluefs
os/bluestore/BlueFS: prevent concurrent async compaction
2016-09-15 11:54:32 -05:00
Sage Weil
b9f714ff8c os/bluestore/BlueFS: add assert for sanity/clarity
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-15 12:20:01 -04:00
Sage Weil
e6058fafdc Merge pull request #11096 from ifed01/wip-bluestore-compression-test-fix
test/store_test: fix statfs results check to consider SSD min_alloc_size

Reviewed-by: Sage Weil <sage@redhat.com>
2016-09-15 10:40:17 -05:00
Sage Weil
455cc6cea2 os/bluestore/BlueFS: prevent concurrent async compaction
Tried to fix this in dbe23c94c0
but got the condition wrong (log_flushing is for
normal fsync).

Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-15 11:37:11 -04:00
Igor Fedotov
6cf935b27d test/store_test: fix statfs results check to consider SSD min_alloc_size
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-09-15 15:33:23 +00:00
Sage Weil
c1fd5ddda5 Merge pull request #11081 from ifed01/wip-plugin-registry-fix
common/PluginRegistry: improve error output for shared library load fa…

Reviewed-by: Sage Weil <sage@redhat.com>
2016-09-15 09:35:31 -05:00
Sage Weil
d61cfb5c71 Merge pull request #11092 from badone/wip-dry-run-run-make-check
run-make-check.sh: Make DRY_RUN actually do a dry run
2016-09-15 09:07:59 -05:00
Sage Weil
549fd7dbe9 Merge pull request #11091 from badone/wip-submodule-init-run-cmake-check
run-cmake-check.sh: Init submodules
2016-09-15 09:07:35 -05:00
Sage Weil
89fb457691 Merge pull request #11087 from liewegas/wip-bluefs-allocator
os/bluestore/BlueFS: use StupidAllocator; fix async compaction bug

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
2016-09-15 08:32:20 -05:00
Kefu Chai
84b389e881 Merge pull request #11088 from tchaikov/do-freebsd-without-autotools
do_freebsd*.sh: rename do_freebsd-cmake.sh to do_freebsd.sh

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2016-09-15 19:25:07 +08:00
Brad Hubbard
2d5326e16e run-make-check.sh: Make DRY_RUN actually do a dry run
The "cd build" command will cause an error during a dry run if the directory
does not exist.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2016-09-15 20:08:52 +10:00
Brad Hubbard
5c983f2938 run-cmake-check.sh: Init submodules
If submodules are not initialised run-cmake-check.sh can fail.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2016-09-15 19:39:25 +10:00
Kefu Chai
e8cee2521a do_freebsd*.sh: rename do_freebsd-cmake.sh to do_freebsd.sh
as autotools is dropped. and remove trailing spaces.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-09-15 14:18:33 +08:00
Alfredo Deza
371eb41b15 Merge pull request #11072 from dmick/wip-17268
ceph-disk tests: Let missing python interpreters be non-fatal

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2016-09-15 10:13:08 +05:30
Josh Durgin
5ba264608a Merge pull request #11076 from badone/wip-gitignore-pyc
.gitignore: Add .pyc files globally

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-09-15 09:59:18 +05:30
Sage Weil
39d827c5c7 Merge pull request #11042 from somnathr/wip-verbose-log
kv/rocksdb: dump transactions on error

Reviewed-by: Sage Weil <sage@redhat.com>
2016-09-14 19:42:48 -05:00
Sage Weil
3759e96fe2 os/bluestore/BlueFS: add safety checks on ino 0|1 op_file_update
We only want to log updates on ino 1 in very specific
cases, and never on ino 0.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 19:04:24 -04:00
Sage Weil
7c1a78481c os/bluestore/BlueFS: do not dirty compacting log ino 0
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 19:04:24 -04:00
Sage Weil
92c568279f os/bluestore/StupidAllocator: use hex for debug
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 19:04:24 -04:00
Sage Weil
5ef725d07b os/bluestore/BlueFS: config option for allocator (default stupid)
StupidAllocator is probably a more appropriate choice for bluefs.
Either way, it needn't be tied to what BlueStore is using.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 19:04:23 -04:00
Somnath Roy
14c00baa20 Logging proper message during read error from disk
Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2016-09-14 17:48:24 -04:00
Somnath Roy
46f1f9e5ca Logging rocksdb transaction in ceph log
The rocksdb transaction is now been logged into ceph log based
on debug level. If transaction is failed, the error code,
error string and the entire transaction is dumped in the log.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2016-09-14 17:47:52 -04:00
Sage Weil
9096ad37f2 Merge pull request #11085 from stiopaa1/osd_osd_moveUnderPrivate
osd/OSD.h: make some members private
2016-09-14 14:48:57 -05:00
Michal Jarzabek
6f274eca1a osd/OSD.h: make some members private
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-09-14 18:39:22 +01:00
Sage Weil
ca74bd9f17 Merge pull request #11067 from stiopaa1/common_timer_replaceLongTypeswithauto
common/Timer.cc: replace long types with auto
2016-09-14 12:38:08 -05:00
Sage Weil
5fc0ac91d0 Merge pull request #11068 from liewegas/wip-bluestore-leaks
os/bluestore: fix a few leaks

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-09-14 10:35:18 -05:00
Sage Weil
cdde7b6ad7 os/bluestore: clear SharedBlob cache in dtor
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 11:33:55 -04:00
Sage Weil
fa0f411029 os/bluestore: make Cache::lock a recursive_mutex
We need to remove items from the cache LRUs in their
destructors, and it is very awkward to ensure that all
releasing paths either hold the cache lock or have
already cleared the cache items out.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 11:33:55 -04:00
Sage Weil
4174b42a43 os/bluestore: fix SharedBlob leaks
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 11:33:55 -04:00
Sage Weil
0cf0e5f313 os/bluestore: fix Extent leak from ~ExtentMap
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 11:33:55 -04:00
Igor Fedotov
3a6b635f21 common/PluginRegistry: improve error output forshared library load failure.
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-09-14 15:28:44 +00:00
Sage Weil
8e69b62843 Merge pull request #11080 from ifed01/wip-compression-store-improvement
test/store_test: extend Bluestore compression test to verify compress…
2016-09-14 09:57:12 -05:00
Kefu Chai
0492c232b2 Merge pull request #11074 from badone/wip-dry-run
run-*make-check.sh: Make DRY_RUN actually mean a dry run

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-09-14 22:42:25 +08:00
Igor Fedotov
101be023fb test/store_test: extend Bluestore compression test to verify compression statistics and hence compression workability
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-09-14 14:20:07 +00:00
Orit Wasserman
52b0689a4c Merge pull request #10965 from ceph/wip-crypto-init
common: only call crypto::init once per CephContext
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-09-14 16:12:35 +02:00
Sage Weil
3273757525 os/bluestore: add ExtentMap::add() helper
Matches rm().

Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 10:10:38 -04:00
Sage Weil
3ae6929b22 os/bluestore: fix Extent leak from _wctx_finish
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 10:10:38 -04:00
Sage Weil
0d414cea68 os/bluestore: fix Extent leak on ExtentMap removal
Signed-off-by: Sage Weil <sage@redhat.com>
2016-09-14 10:10:38 -04:00
Casey Bodley
c2ac1991da Merge pull request #10998 from ceph/wip-16695
rgw: work around curl_multi_wait bug with non-blocking reads

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-09-14 09:53:57 -04:00
Sage Weil
0f9c434519 Merge pull request #11069 from liewegas/wip-rocksdb
rocksdb: pull up to master (4.12 + a few patches)
2016-09-14 08:42:09 -05:00
Sage Weil
dd78904dcb Merge pull request #11079 from ifed01/wip-fix-zlib
compressor/zlib: zlib wrapper fix

Reviewed-by: Sage Weil <sage@redhat.com>
2016-09-14 08:41:40 -05:00
Sage Weil
4fa981faa3 Merge pull request #11077 from xiexingguo/xxg-wip-bluestore-0914
os/bluestore: add checks and kill unreachable code

Reviewed-by: Sage Weil <sage@redhat.com>
2016-09-14 08:40:56 -05:00
Sage Weil
d3dac2a23b Merge pull request #11014 from chhabaramesh/extent_alloc
os/bluestore: make assert conditional with macro for allocator

Reviewed-by: Sage Weil <sage@redhat.com>
2016-09-14 08:39:21 -05:00
Igor Fedotov
d113f0d4bc compressor/zlis: improve buffer allocation to avoid space waste
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-09-14 12:48:36 +00:00
Igor Fedotov
d7b04ca9f1 common/compressor: fix improper length value passed to zlib compressor
Signed-off-by: Igor Fedotov <ifedotovo@miranitis.com>
2016-09-14 12:25:10 +00:00
Igor Fedotov
bd8efd83e4 test/objectstore: extend compression test case to use both snappy & zlib
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-09-14 12:24:53 +00:00
Brad Hubbard
fd6513c05a .gitignore: Add .pyc files globally
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2016-09-14 19:35:57 +10:00
Alfredo Deza
0a5d894600 Merge pull request #11071 from dmick/wip-17267
Stop hiding errors from run-tox.sh

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2016-09-14 14:02:42 +05:30
xie xingguo
16b5487aba os/bluestore: drop result check of OP_TRY_RENAME
Because _rename() never returns -ENOENT, it only
returns -EEXIST on failure.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-09-14 15:19:01 +08:00