Commit Graph

5801 Commits

Author SHA1 Message Date
Joonas Koivunen
1ebcb1c45b doc: clean out FIXME
we cannot protect against willful misuse. I had been thinking of witness
of Attempt but ...
2024-07-26 14:39:32 +00:00
Joonas Koivunen
66d750ec20 info log on detach 2024-07-26 14:39:32 +00:00
Joonas Koivunen
ba3a6645e7 fix: info log line again, botched rebase? 2024-07-26 14:39:32 +00:00
Joonas Koivunen
8885a8c482 fixup: missed hashset change 2024-07-26 14:39:32 +00:00
Joonas Koivunen
c8880b69fb stop with the (ancestor_lsn, timeline_id) ordered reparented
I was thinking of the case where we have multiple reparented at the same
ancestor_lsn. But of course, that is not a problem if we compare the
reparented as a set...
2024-07-26 14:39:32 +00:00
Joonas Koivunen
274b2a611b test: handle the case where timeline cannot be found
at least do not double-panick.
2024-07-26 14:39:32 +00:00
Joonas Koivunen
a7153bf9b2 test: forgotten allowed errors 2024-07-26 14:39:32 +00:00
Joonas Koivunen
8a4236a441 test: remove needless s3 storage 2024-07-26 14:39:32 +00:00
Joonas Koivunen
7ec927e43b test: cleanup todos 2024-07-26 14:39:32 +00:00
Joonas Koivunen
22470ef444 test: comment 2024-07-26 14:39:32 +00:00
Joonas Koivunen
8248cbb45b test: ensure persisted gc blocking works across restart 2024-07-26 14:39:32 +00:00
Joonas Koivunen
4dd805b68a test: remove the extra deletion which was confusing
it had already been reparented, so it was not needed.
2024-07-26 14:39:32 +00:00
Joonas Koivunen
f582675452 test: refactor repetition 2024-07-26 14:39:32 +00:00
Joonas Koivunen
48069f68bb chore: forgotten pyfmt 2024-07-26 14:39:32 +00:00
Joonas Koivunen
8f52139913 additional assert in completion 2024-07-26 14:39:32 +00:00
Joonas Koivunen
fc4d80bbf2 elaborate on TODO for which a test is later added 2024-07-26 14:39:32 +00:00
Joonas Koivunen
dc83a5a978 fixup dae8c75c04 test: cannot be parametrized over return or exit 2024-07-26 14:39:32 +00:00
Joonas Koivunen
f4fb08d869 stop masking the topmost error in http handler 2024-07-26 14:39:31 +00:00
Joonas Koivunen
75b326faf4 test: complete fixmes 2024-07-26 14:39:31 +00:00
Joonas Koivunen
c23cd5c149 ongoing_detach_ancestor => gc_blocking in index_part 2024-07-26 14:39:31 +00:00
Joonas Koivunen
f4cd9fe40b refactor: misc after attempt to add lock_in_reparentable 2024-07-26 14:39:31 +00:00
Joonas Koivunen
43af9484c0 doc: schedule_reparenting_and_wait 2024-07-26 14:39:31 +00:00
Joonas Koivunen
842bd4c2db refactor: reparentable_timelines query out 2024-07-26 14:39:31 +00:00
Joonas Koivunen
ada9a46dca remove done fixme, minor reformattting 2024-07-26 14:39:31 +00:00
Joonas Koivunen
742fcac7b9 refactor: use partialeq more 2024-07-26 14:39:31 +00:00
Joonas Koivunen
55aeeb5765 allow deleting timeline unblock gc 2024-07-26 14:39:31 +00:00
Joonas Koivunen
89426570d3 relax overly strict comparisons 2024-07-26 14:39:31 +00:00
Joonas Koivunen
7f767ca18e fix: must_restart condition 2024-07-26 14:39:31 +00:00
Joonas Koivunen
1348dbf0f1 doc: comment cleanup 2024-07-26 14:39:31 +00:00
Joonas Koivunen
a179283f86 always notify gc_waiting when writing over the witness tracking 2024-07-26 14:39:31 +00:00
Joonas Koivunen
deb86c1ea1 remodel the return type 2024-07-26 14:39:31 +00:00
Joonas Koivunen
dfdf40916f rename complete_detaching_from_ancestor
it hasn't meant completing in a while now :)
2024-07-26 14:39:31 +00:00
Joonas Koivunen
c6d8015fe9 chore: clippy needless into_iter 2024-07-26 14:39:31 +00:00
Joonas Koivunen
b2233d557b test: complicate to include added paths 2024-07-26 14:39:31 +00:00
Joonas Koivunen
ce2552ba67 minor comment update for FIXME about 503 2024-07-26 14:39:31 +00:00
Joonas Koivunen
f4d773bb89 refactor: unify t::s::Semaphore 2024-07-26 14:39:31 +00:00
Joonas Koivunen
6f28263428 refactor: failpoint all but one 2024-07-26 14:39:31 +00:00
Joonas Koivunen
1e380ea5af refactor: Ancestor::Delete is not needed 2024-07-26 14:39:31 +00:00
Joonas Koivunen
8258385301 remove indentation level with exhaustive match 2024-07-26 14:39:31 +00:00
Joonas Koivunen
6a8f00dea0 fix: return reparented_direct_children in case we reparent nothing new 2024-07-26 14:39:31 +00:00
Joonas Koivunen
44cdb9fb58 refactor: reparented_direct_children query 2024-07-26 14:39:31 +00:00
Joonas Koivunen
cdfaf0700f fix: bifurcate the detach+reparent step 2024-07-26 14:39:31 +00:00
Joonas Koivunen
881e1ad056 refactor: no need to collect reparentable here 2024-07-26 14:39:31 +00:00
Joonas Koivunen
bb3d70e24d fix: properly cancel if any reparenting failed 2024-07-26 14:39:31 +00:00
Joonas Koivunen
c6c560e4c8 rewrite to include testing assertion 2024-07-26 14:39:31 +00:00
Joonas Koivunen
8dd332aed5 doc: remove unnecessary comment 2024-07-26 14:39:31 +00:00
Joonas Koivunen
5c03a17eb8 wip: some progress
now we hit the todo! in "already detached" path.
2024-07-26 14:39:31 +00:00
Joonas Koivunen
402d66778e make reparenting operations idempotent 2024-07-26 14:39:31 +00:00
Joonas Koivunen
39e2bc932f prepare to reparent while gc blocked 2024-07-26 14:39:31 +00:00
Joonas Koivunen
5fc034fa7f feat: block gc persistently until detach ancestor completes 2024-07-26 14:39:31 +00:00