ceph/qa/workunits
Josef Johansson 21a26a7528 librbd: Fix local rbd mirror journals growing forever
This commit fixes commit 7ca1bab90f by pushing properly aligned
discards back to m_image_extents, if corrected.

If discards are misaligned (off 0, len 4608, gran=4096), they are
corrected properly, but only in object_extents and not in
m_image_extents.

When journal_append_event is triggered it will only append from
m_image_extents and does not now about the alignment fixes. In
commit_io_events_extent it will log a message and return without
completing the io since the larger misaligned area was sent to the journal.
This will in turn break rbd journal mirroring since the local client will wait
indefinately on the commit to be completed, which it never does.

This does not effect rbd-mirror in any way, which may be confusing and
dangerous since it's only rbd-mirror that updates ceph health, and not
the local client.

Setting `rbd_skip_partial_discard = false` under client will restore the
pre 7ca1bab behaviour and thus not trigger the bug with journals growing.
This will set `rbd_discard_granularity_bytes = 0` internally. This
setting is only changed during startup of a client.

Fixes: 7ca1bab90f
Fixes: https://tracker.ceph.com/issues/57396
Signed-off-by: Josef Johansson <josef@oderland.se>
2023-01-20 11:59:16 +01:00
..
caps
ceph-tests
cephadm qa/workunits/cephadm/test_cephadm: add --no-pager 2022-09-13 12:17:20 -04:00
cephtool doc, common, mon, qa: Mon-related updates for reef 2022-09-20 14:26:59 +00:00
client
cls
direct_io
erasure-code
fs tools/cephfs/first-damage: repair specific first=CEPH_NOSNAP damage 2023-01-07 15:49:46 -05:00
hadoop
libcephfs test/libcephfs: add newops test case 2022-08-16 08:30:52 +08:00
mgr
mon qa/workunits/mon/auth_key_rotation.sh: exercise pending key / rotation 2022-09-12 17:02:59 +00:00
objectstore
osdc
rados qa/workunits/rados: specify redirect in curl command 2022-11-18 00:31:59 +00:00
rbd librbd: Fix local rbd mirror journals growing forever 2023-01-20 11:59:16 +01:00
rename
rest
restart
rgw rgw/qa: Add QA suite for Keystone service token 2022-09-23 15:10:14 +00:00
suites qa: switch to https protocol for repos' server 2022-12-12 21:05:57 +08:00
windows qa: add windows run-tests.ps1 2023-01-18 15:32:50 +02:00
ceph-helpers-root.sh examples: Compile with c++20 2022-09-19 13:18:20 +00:00
false.sh
kernel_untar_build.sh
Makefile
post-file.sh
test_telemetry_pacific_x.sh qa/workunits: interpret with bash instead of sh 2022-10-08 06:50:25 +00:00
test_telemetry_pacific.sh qa/workunits: identify ceph test clusters 2022-11-18 15:42:32 +00:00
test_telemetry_quincy_x.sh qa/workunits: interpret with bash instead of sh 2022-10-08 06:50:25 +00:00
test_telemetry_quincy.sh qa/workunits: identify ceph test clusters 2022-11-18 15:42:32 +00:00
true.sh