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

refactory of birdwatch #208

Merged
merged 1 commit into from
Oct 27, 2023
Merged

refactory of birdwatch #208

merged 1 commit into from
Oct 27, 2023

Conversation

yiwangdr
Copy link
Contributor

  1. add an interface layer to decouple infra from features
  2. add tikv support

Signed-off-by: yiwangdr <yiwangdr@gmail.com>
Copy link
Collaborator

@congqixia congqixia left a comment

Choose a reason for hiding this comment

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

/lgtm
Thanks for the work!

// RemoveWithPrefix removes the keys for the given prefix.
func (kv *txnTiKV) RemoveWithPrefix(ctx context.Context, prefix string) error {
prefix = path.Join(kv.rootPath, prefix)
ctx, cancel := context.WithTimeout(ctx, RequestTimeout)
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: RequestTimeout shall be deprecated since ctx could be controlled from command

return apps, nil
}

func (kv *txnTiKV) BackupKV(base, prefix string, w *bufio.Writer, ignoreRevision bool, batchSize int64) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT: maybe a better abstraction here is to implement an iterator for EtcdKV and tikv

@sre-ci-robot sre-ci-robot added the lgtm look good to me label Oct 27, 2023
@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia, yiwangdr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@congqixia
Copy link
Collaborator

/kind feature

@sre-ci-robot
Copy link
Collaborator

@congqixia: The label(s) kind/feature cannot be applied, because the repository doesn't have them.

In response to this:

/kind feature

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sre-ci-robot sre-ci-robot merged commit c66effc into milvus-io:main Oct 27, 2023
3 checks passed
@yiwangdr yiwangdr deleted the yiwang/kv branch October 27, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants