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

there is no GC api for txnkv #74

Closed
slow-zhang opened this issue Mar 19, 2021 · 10 comments
Closed

there is no GC api for txnkv #74

slow-zhang opened this issue Mar 19, 2021 · 10 comments

Comments

@slow-zhang
Copy link

If your cluster uses tikv+pd only, this is one only workaround.

@disksing
Copy link
Collaborator

We are working on refactoring the client in side tidb project and later will extract it to this repo to provide a more complete client.

@slow-zhang
Copy link
Author

slow-zhang commented May 25, 2021

We are working on refactoring the client in side tidb project and later will extract it to this repo to provide a more complete client.

Hi Disksing, is there any update on the refactoring process.

@disksing
Copy link
Collaborator

Now it is moved here (v2 branch). Then GC is available now but we are still working on adding some example.

@disksing
Copy link
Collaborator

@slow-zhang
Copy link
Author

slow-zhang commented Jun 25, 2021

it's ready for prod to use? or till now tidb's code is more proper to use

is the code is the same as tidb's client code?

@disksing
Copy link
Collaborator

TiDB is now using client-go/v2 too. We are going to remove duplicated code in TiDB. So it would be better to use client-go.

@Itachi666
Copy link

Hi @disksing, i try to use GC func but find it hasn't packaged in the released version(V2.0.0-alpha), may I know when will the next version release?

@disksing
Copy link
Collaborator

disksing commented Jul 2, 2021

@Itachi666 you can try go get -u github.com/tikv/client-go/v2@master to update to latest master, or go get -u github.com/tikv/client-go/v2@sha to use specific revision.

@slow-zhang
Copy link
Author

linked to #287

@disksing
Copy link
Collaborator

Please check the wiki page https://github.com/tikv/client-go/wiki/Garbage-Collection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants