-
Notifications
You must be signed in to change notification settings - Fork 50
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
content: call content.flush
within content-checkout.put
#6242
Comments
doh! |
Ah maybe we just need a new flag like KVS_CHECKPOINT_NO_FLUSH. |
Yeah, we could do that too. Unfortunately no flags passed in the RPC (flags are only used within Edit: Ehhh I guess adding flags maybe easier, b/c the sequence number is hidden within an object. |
Problem: Before checkpointing, users need to remember to call content.flush, to ensure data has been flushed to the backing store. It is easy to forget this. Within the content module, call content.flush before checkpointing. Fixes flux-framework#6242
Ugh ... so should FLUX_KVS_SYNC fail if a backing store does not exist? At the moment, it does. if we move the If we also need a KVS_CHECKPOINT_REQUIRE_FLUSH flag, this refactor probably isn't worth it. |
Thinking about this a bit more, maybe we should think about design of the content + backing module + sync / checkpoint with our new goals in mind. Right now ...
This feels inconsistent and appears counter intuitive. The nuanced test in I should note that for some reason this was very explicitly called out for support in #4492. For some reason back then, supporting checkpointing on "none" was desired, perhaps for backwards compatibility in places. I did notice this in rc1
So if we are doing a "none" backing module, we are just skipping this sort of stuff anyways already. |
Problem: Before checkpointing, users need to remember to call content.flush, to ensure data has been flushed to the backing store. It is easy to forget this. Within the content module, call content.flush before checkpointing. Fixes flux-framework#6242
Problem: Before checkpointing, users need to remember to call content.flush, to ensure data has been flushed to the backing store. It is easy to forget this. Within the content module, call content.flush before checkpointing. Fixes flux-framework#6242
Per comment / idea in #6240
Pro: no need to require user to call before calling
content-checkpoint.put
. If backing store isn't loaded, the content module will know not to callcontent.flush
.Con: only work if user doesn't use BYPASS flag. but presumably user will know what they are doing if they use BYPASS.
The text was updated successfully, but these errors were encountered: