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

Make create schema effective in real time #4462

Open
sun361504834 opened this issue Jul 26, 2022 · 1 comment
Open

Make create schema effective in real time #4462

sun361504834 opened this issue Jul 26, 2022 · 1 comment
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@sun361504834
Copy link

now trying to insert data with a newly created tag may fail,
because the creation of the tag/property is implemented asynchronously. (Wait for two heartbeat cycles, i.e., 20 seconds.)

we need support create schema effective in real time, Can it be implemented synchronously?

Thanks!
@MuYiYong

@sun361504834 sun361504834 added the type/enhancement Type: make the code neat or more efficient label Jul 26, 2022
@wey-gu
Copy link
Contributor

wey-gu commented Jul 26, 2022

Now the schema change is "pull-ed" via the periodic heartbeat communication.

We could think of adding "best-effort push with timestamp" to update schema in all storageD, that is, it's still async update, and in the worst case the push didn't succeed, still it will be updated by heartbeat later in two cycles, while when it's pushed successfully, the user will have experience of real-time schema altering :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

2 participants