Repository navigation
crimson/osd, osd: bring snap trimming to crimson - #49286
Conversation
ae8949b to
7dfd3bb
Compare
5ffb306 to
349d600
Compare
|
Fixing Clang's errors (GCC 11.2.1 hasn't pointed them out). |
8e647d5 to
ef92e75
Compare
|
@rzarzynski Is this ready for review? |
|
@athanatos: yes, it's ready (though still waiting for the Clang-based check bot). |
ef92e75 to
e0b8250
Compare
|
Squashed the Clang fixes. |
| std::pair<K, V> *next ///< [out] first key after key | ||
| ) = 0; ///< @return 0 on success, -ENOENT if there is no next | ||
|
|
||
| virtual int get_next_or_current( |
There was a problem hiding this comment.
/// returns least entry >= key
| const auto needs_pause = !snap_trimq.empty(); | ||
| return seastar::repeat([to_trim, needs_pause, this] { | ||
| logger().debug("{}: going to start SnapTrimEvent, to_trim={}", | ||
| *this, to_trim); |
There was a problem hiding this comment.
pg->state_set(PG_STATE_SNAPTRIM);?
By tracking snaptrim pg state we will be able to properly test wait_snap_trimming_complete when running tests.
AFAIK, there aren't any snptrim specific tests so it might be worth to at least support this.
There was a problem hiding this comment.
Yup, thanks! I will add a commit here or send a follow-up for it as well as for PG_STATE_SNAPTRIM_ERROR and PG_STATE_SNAPTRIM_WAIT.
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
a0ae9ea to
52057a8
Compare
There was a problem hiding this comment.
After fixing this problem the snaptrimmer branch fails the workunits/rados/test.sh exactly like a fresh main:
[rzarzynski@o06 build]$ grep -A10 terminate out/osd.1.stdout
terminate called after throwing an instance of 'std::runtime_error'
what(): read gave enoent on #-1:a95ba935:::osdmap.579:0#
Aborting on shard 0.
Backtrace:
0# gsignal in /lib64/libc.so.6
1# abort in /lib64/libc.so.6
2# 0x00007F16BDA2709B in /lib64/libstdc++.so.6
3# 0x00007F16BDA2D53C in /lib64/libstdc++.so.6
4# 0x00007F16BDA2C559 in /lib64/libstdc++.so.6
5# __gxx_personality_v0 in /lib64/libstdc++.so.6
6# 0x00007F16BC6EBB03 in /lib64/libgcc_s.so.1
[rzarzynski@o06 build]$ git describe
v18.0.0-2140-gfa8a9c73ae3
[rzarzynski@o06 build]$ git log | head -n 4
commit fa8a9c73ae3a5cc905789e96e76c4f9d3a0b0573
Merge: 8b5ab2bc038 9d1fb1bc39a
Author: zdover23 <[email protected]>
Date: Fri Feb 3 04:20:48 2023 +1000
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
…rsion() Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
…date() Signed-off-by: Radoslaw Zarzynski <[email protected]>
…lone() Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
…remove_head_whiteout() Signed-off-by: Radoslaw Zarzynski <[email protected]>
…head() Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
It doesn't work. Signed-off-by: Radoslaw Zarzynski <[email protected]>
`crimson::interruptible` does not support that. See the `DISABLED_nested_interruptors` unit test. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Throwing away the NOP-looking-like `maybe_delay` concept became possible after eradication of the `with_interruption` call nested within `SnapTrimSubEvent`. Before, on Ubuntu and GCC 11.2.1, lack of it was the reson behind assertion failures on resetting the `thread_local` intteruption condition. Signed-off-by: Radoslaw Zarzynski <[email protected]>
```
/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/osd/osd_operations/snaptrim_event.cc:38:33: note: while checking constraint satisfaction for template 'operator|<const std::ranges::views::_Elements<0> &, const std::vector<std::pair<unsigned long, crimson::interruptible::interruptible_future_detail<crimson::osd::IOInterruptCondition, seastar::future<>>>> &>' required here
for (const auto &i : subops | std::views::keys) {
^
/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/osd/osd_operations/snaptrim_event.cc:38:33: note: in instantiation of function template specialization 'std::ranges::views::__adaptor::operator|<const std::ranges::views::_Elements<0> &, const std::vector<std::pair<unsigned long, crimson::interruptible::interruptible_future_detail<crimson::osd::IOInterruptCondition, seastar::future<>>>> &>' requested here
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:963:7: note: candidate template ignored: constraints not satisfied [with _Tp = std::ranges::ref_view<const std
```
Signed-off-by: Radoslaw Zarzynski <[email protected]>
After a few tries:
```
$ bin/ceph -s
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2022-12-19T20:18:21.856+0000 7ff87b46f700 -1 WARNING: all dangerous and experimental features are enabled.
2022-12-19T20:18:21.857+0000 7ff87b46f700 1 build_initial for_mkfs: 0
2022-12-19T20:18:21.860+0000 7ff87b46f700 -1 WARNING: all dangerous and experimental features are enabled.
2022-12-19T20:18:21.861+0000 7ff87b46f700 1 build_initial for_mkfs: 0
cluster:
id: 347aedc9-d72f-4a34-98fc-26cb04b0c2fc
health: HEALTH_WARN
11 mgr modules have failed dependencies
1 pool(s) do not have an application enabled
1 pool(s) have no replicas configured
services:
mon: 1 daemons, quorum a (age 3m)
mgr: x(active, since 3m)
osd: 1 osds: 1 up (since 3m), 1 in (since 3m)
data:
pools: 1 pools, 1 pgs
objects: 95 objects, 6 B
usage: 1.0 GiB used, 100 GiB / 101 GiB avail
pgs: 1 active+clean+snaptrim
io:
client: 1.2 KiB/s wr, 0 op/s rd, 1 op/s wr
```
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
d1cdf3d to
4dbe8f5
Compare
|
|
jenkins test make check |
|
make check failure is due to TEST_multimon timing out, checking if retriggering helps |
|
jenkins test make check |
|
Helped! |
TODO
SnapTrimRequesttoSnapTrimOpSnapTrimEvent.Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows