Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement dangling indices API #50920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement dangling indices API #50920
Changes from all commits
cf46736
befcfa4
747908e
0d6fb6d
4f63acc
4843741
b335d44
ac76ed4
7419339
a520236
df9bf02
bbef246
515dd9b
2234641
969a87a
9847ed1
b9b9b97
eaf940f
aadc7cc
a0aa236
65ef49c
8b27586
a68b1fa
a956490
07638ed
820f07e
553b838
96389ab
3268744
7216589
fab5609
df3ad06
1f62352
c55227f
2164576
1e74fc3
de586e2
fedd909
743de04
9c00ab3
8ad1977
8069ba9
c73f20f
e521667
9aabc86
5fb15d6
81d40b3
b539066
a9487f2
f78f09d
c3569e4
fc4a620
8a4321b
16b1f5a
01350af
466eb8c
0c413ea
83b4fc5
b95bc58
1d7cc02
47468de
d979b97
dcb2474
79b8df4
80021f9
a0b29bd
33f027d
1b09baf
ed427c0
6ab6a64
02ec404
d4a0836
cfc7772
e358ca5
5a0f0ef
0e79032
dc38fbc
d36ea4f
ef7e6b1
da2e7cc
5ce7f09
30f1b37
e520f23
23acbf8
d02c5ce
da9886b
b26f4c4
2158d54
b94efdf
a2ce053
6becf55
7e6c1bd
64718c5
a38d927
04cca44
1216423
ec98df7
53611f1
f80e6da
f8db53f
9043ae8
2195c95
637c3c3
8e2c9fc
a8a68fa
593e07c
56f6617
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that the dangling index metadata was written to disk by this point? I think it happens asynchronously now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure - do you know how I would check? I had assumed that the tests would fail if the metadata wasn't written, because the create test explicitly checks what the dangling list API returns, and the import and delete tests both perform list calls before their respective actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think these tests would fail if the metadata weren't written; I didn't see them fail but it might be pretty rare and I didn't try very hard to make it less rare, but nor could I see a reason why the metadata is definitely written by this point.
I don't think it's enough to list the dangling indices, or at least I don't see how this guarantees anything about the persistence of metadata of the non-dangling indices.
I was going to suggest adding a method to
PersistedState
but then I see that we already have one, seeGatewayMetaState#allPendingAsyncStatesWritten
. It should be enough toassertBusy
that this returns true on all nodes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that you added an
assertBusy()
onGatewayMetaState#allPendingAsyncStatesWritten
below. In fact I think we need to wait for that before we restart the node, not after.