Haomai Wang
9cacdf1bca
AsyncConnection: Dont send message when local connection is closed
...
Fix : #14386
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-01-16 12:46:49 +08:00
Haomai Wang
0771efafea
AsyncConnection: Fix leak event
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-01-16 12:37:16 +08:00
shawn
a9c5f99f2c
organizationmap: modify org mail info.
...
Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
2016-01-15 19:59:37 -05:00
Guang Yang
e7631ef3dc
common: change the type of counter total/unhealthy_workers
...
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
2016-01-16 00:37:11 +00:00
Kefu Chai
4a2351eb89
doc: amend the rados.8
...
explain the run-name in more details.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-16 00:48:44 +08:00
Kefu Chai
3daf908ba0
Merge pull request #5900 from ritz303/wip-doc-12899
...
doc: Updated the rados command man page to include the --run-name opt…
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-01-16 00:45:48 +08:00
Casey Bodley
1e9fc0630f
Merge pull request #7249 from ceph/wip-fix-cmake-trusty
...
cmake: fix the build on trusty
2016-01-15 11:07:45 -05:00
Jason Dillaman
7bcc960b31
librbd: handle additional journal replay states
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:30 -05:00
Jason Dillaman
41987c8611
librbd: avoid recursive callback when replaying journal
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:30 -05:00
Jason Dillaman
d093d839cc
tests: correct googlemock warnings
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:30 -05:00
Jason Dillaman
a2ad7ecb5c
tests: update tests to support replaying snap create / resize
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
9ab14f76f6
librbd: initial hook points for snap create / resize journal replay
...
After snap create has blocked IO and after resize has ensured clipped
IO boundaries, they will resume the playback of journal events.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
15170e688b
librbd: journal events still possible during shutdown
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
532c9d2325
tests: new unit test for snap rollback state machine
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
11f6a5f3db
librbd: snapshot rollback should block writes
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
254c8f41ec
librbd: track simple maintenance ops to coordinate replay
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
0fff6830db
librbd: asynchronously replay journal events
...
Properly track when AIO operations are safely committed to
disk before marking the journal events are committed.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
2b66a3be08
tests: unit test cases for all available journal events
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
ca71a3eb12
librbd: initial integration of maintenance op journal replay
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
37df597012
librbd: AioImageRequest base class is now templated
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
20b9b2e29d
tests: updated librbd test cases for updated maint ops API
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:29 -05:00
Jason Dillaman
629c6f0d7c
librbd: moved all maintenance ops to new Operations class
...
This will permit unit testing and will facilitate proper
serialization of requests (when necessary).
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
58069aa490
tests: journal event handling test updates
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
ce8fa3d3bd
tests: unit test case for librbd::operation::ResizeRequest
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
bf7a1f62a6
librbd: properly order maintenance ops journal events
...
In general, the op shoud only start after the jouranl event is
safely committed. Snapshot create and resize need special treatment
to record the event while no IO is in-progress.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
ac86521bb6
librbd: fixed "hidden" virtual methods
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
1a17f61ffb
librbd: handle journal and IO commits in either sequence
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
89d6c271cf
librbd: allocate and associate op tids to maint op journal events
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
8b2dc72ec4
tests: unit tests for librbd Journal
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
1192e9c343
librbd: journal replay flush should be async
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
a1f7006809
librbd: convert journal classes to templates for unit testing
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
eb057e1d94
tests: compile RBD and RGW types into ceph-dencoder when enabled
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:28 -05:00
Jason Dillaman
588ccfb633
librbd: move journal support classes to journal namespace
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-15 10:40:27 -05:00
Kefu Chai
10335c507a
cmake: fix the build on trusty
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-15 22:42:07 +08:00
Igor Fedotov
275aaf406d
Fixing both the subissues from #14383 by using intrusive_ptr instead of Dir* in BlueFS::dir_map
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-01-15 15:20:23 +03:00
Sangdi Xu
0a4d1a411d
mon: add an independent option for max election time
...
add a new configure option mon_election_timeout, which is not dependent on mon_lease
Signed-off-by: Sangdi Xu <xu.sangdi@h3c.com>
2016-01-15 19:12:46 +08:00
Yan, Zheng
838b16aa35
ceph_test_libcephfs: tolerate duplicated entries in readdir
...
If a dirfrag get fragmented in the middle of readdir, the readdir
result may contain duplicated entries. (but there shouldn't be
any missing entries)
Fixes : #14377
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-15 17:20:35 +08:00
huanwen ren
cbaee84971
osd:osdmap some clean up
...
remove set_weightf
Fixes : #14369
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
2016-01-15 13:38:59 +08:00
Yan, Zheng
19dc272d11
mds: add config option to suspend logging
...
The option creates long-standing unsafe MDS requests. It help in
testing unsafe request related corner cases.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-15 13:34:45 +08:00
Yan, Zheng
5d8d66629f
mds: fix completed cap flush handling
...
Client re-send cap flush when MDS restarts. The cap flush message
may release some caps even if the corresponding flush is already
completed.
Fixes : #13546
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-15 13:19:37 +08:00
Yan, Zheng
dafb46ba7b
mds: delay handling client caps until corresponding inode is created
...
When handling client caps in clientreplay stage, it's possible that
corresponding inode does not exist because the client request which
creates inode hasn't been replayed. To handle this corner case, we
delay handling caps message until corresponding inode is created.
Fixes : #14254
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-01-15 13:19:05 +08:00
Jeffrey Lu
0187a59918
cls/cls_rbd: pass string by reference
...
Signed-off-by: Jeffrey Lu <lzhng2000@aliyun.com>
2016-01-15 11:21:10 +08:00
Sage Weil
31034f6d74
Merge branch 'wip-compressor'
...
Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-14 19:04:53 -05:00
Ved-vampir
300c2f773b
Compressor: compressor plugins unit tests
...
Signed-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
2016-01-14 19:04:19 -05:00
Ved-vampir
2cadc416ca
Compressor: compressor code extention: plugin system added
...
Signed-off-by: Alyona Kiseleva <akiselyova@mirantis.com>
2016-01-14 19:04:11 -05:00
Sage Weil
c5a3c2b1e4
Merge pull request #6425 from branch-predictor/bp-delayed-pglog-index-v2
...
osd: delay populating in-memory PG log hashmaps
Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-14 19:02:30 -05:00
Sage Weil
2f9f91b6a1
Merge pull request #6797 from mathslinux/fix-parse-return
...
rgw: fix wrong check for parse() return
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-01-14 19:01:00 -05:00
Sage Weil
b8bc25b0f0
Merge pull request #7087 from H3C/wip-yrf-cephdf
...
mon: add RAW USED column to ceph df detail
Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-14 19:00:16 -05:00
Sage Weil
cae2e2c60b
Merge pull request #7106 from tchaikov/wip-11101
...
ceph: improve the error message
Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-14 18:59:46 -05:00
Sage Weil
852f076f6d
Merge pull request #7122 from xiexingguo/xxg-wip-bluefs
...
osd: bluestore: fix several bugs
Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-14 18:59:12 -05:00