Skip to content
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

Support the temporary lock up of a space to ensure that CLEAR SPACE and actually clear the space #4059

Open
randomJoe211 opened this issue Mar 21, 2022 · 3 comments
Labels
type/feature req Type: feature request

Comments

@randomJoe211
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It seems like when trying to run CLEAR SPACE we have no good way to stop writing. Users may have trouble clearing a graph space while somebody else is still writing data into the space, and since they need to run CLEAR SPACE, the Graph service cannot be stopped to block writing.

Describe the solution you'd like
Shall we add a query to stop clients from writing into a certain space (lock up a space) for a period of time?

@randomJoe211 randomJoe211 added the type/feature req Type: feature request label Mar 21, 2022
@sworduo
Copy link
Contributor

sworduo commented Mar 21, 2022

Snapshot::instance(kvstore_, client_)->blockingWrites(SignType::BLOCK_ON) maybe helpful.

@zhaohaifei
Copy link
Contributor

nebula-ent can be set to read-only before clear. But nebula cannot.

@randomJoe211
Copy link
Contributor Author

Thank you both for the reply! Good to know that we have more than one way to do this. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

3 participants