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

Feature: Watch api #4779

Merged
merged 29 commits into from
Apr 16, 2022
Merged

Feature: Watch api #4779

merged 29 commits into from
Apr 16, 2022

Conversation

lichuang
Copy link
Contributor

@lichuang lichuang commented Apr 9, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

  1. add watch API for metasrv
  2. add unit tests for watch API.

Changelog

  • New Feature

Related Issues

Fixes #issue

@vercel
Copy link

vercel bot commented Apr 9, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/databend/databend/5a69zviicKyWUM14SRsnWQGLJVSz
✅ Preview: https://databend-git-fork-lichuang-watchapi-databend.vercel.app

[Deployment for 4f2c28c canceled]

@mergify
Copy link
Contributor

mergify bot commented Apr 9, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the pr-feature this PR introduces a new feature to the codebase label Apr 9, 2022
common/meta/raft-store/src/state_machine/sm.rs Outdated Show resolved Hide resolved
common/meta/types/proto/meta.proto Outdated Show resolved Hide resolved
common/meta/types/proto/meta.proto Outdated Show resolved Hide resolved
common/meta/raft-store/src/state_machine/sm.rs Outdated Show resolved Hide resolved
common/meta/types/proto/meta.proto Outdated Show resolved Hide resolved
common/meta/types/proto/meta.proto Outdated Show resolved Hide resolved
metasrv/src/watcher/watcher_stream.rs Outdated Show resolved Hide resolved
metasrv/src/watcher/watcher_config.rs Outdated Show resolved Hide resolved
common/meta/types/proto/meta.proto Outdated Show resolved Hide resolved
metasrv/src/watcher/watcher_manager.rs Outdated Show resolved Hide resolved
metasrv/src/watcher/watcher_manager.rs Outdated Show resolved Hide resolved
metasrv/src/watcher/watcher_manager.rs Outdated Show resolved Hide resolved
metasrv/src/watcher/watcher_manager.rs Outdated Show resolved Hide resolved
metasrv/tests/it/grpc/metasrv_grpc_watch.rs Outdated Show resolved Hide resolved
metasrv/tests/it/grpc/metasrv_grpc_watch.rs Outdated Show resolved Hide resolved
@vercel
Copy link

vercel bot commented Apr 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
databend ✅ Ready (Inspect) Visit Preview Apr 16, 2022 at 6:59AM (UTC)

Copy link
Contributor

@ariesdevil ariesdevil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and after this PR merged we need a simple doc that let the cloud team know how to use this feature.

@drmingdrmer
Copy link
Member

/lgtm

trump-lgtm

@BohuTANG
Copy link
Member

The API adds/remove will be a compatible problem with old databend-metasrv?
If so, how the user upgrade the old databend-metasrv to the new? There is already some users using databend in the production now 💯
cc @lichuang @drmingdrmer

@drmingdrmer
Copy link
Member

The API adds/remove will be a compatible problem with old databend-metasrv? If so, how the user upgrade the old databend-metasrv to the new? There is already some users using databend in the production now 💯 cc @lichuang @drmingdrmer

This feature does not affect data format thus the upgrade would be smooth:)

@BohuTANG BohuTANG mentioned this pull request Apr 30, 2022
3 tasks
@lichuang lichuang deleted the watch_api branch May 14, 2022 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-review pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants