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

sync-diff-inspector-overview: Incomplete info about docker and tidb-operatator #7366

Open
dveeden opened this issue Jan 4, 2022 · 3 comments
Assignees
Labels
area/sync-diff-inspector Indicates that the Issue or PR belongs to the area of sync-diff-inspector. tracked This issue has been tracked.

Comments

@dveeden
Copy link
Contributor

dveeden commented Jan 4, 2022

Error Report

  1. What is the URL/path of the document related to this issue?

https://docs.pingcap.com/tidb/stable/sync-diff-inspector-overview

  1. How would you like to improve it?

The issues with this page are:

  • While it does list the name of the image, it doesn't tell the user how to run and use it
  • It doesn't list instructions for how to use this with tidb-operator or tidb-docker-compose

In addition to this the container image looks very old:

$ docker run -it pingcap/tidb-enterprise-tools:latest /sync_diff_inspector -V
version: 
sync_diff_inspector: v1.0.0~rc2+git.cccf51b
Git Commit Hash: cccf51b6f44cc6bbd96841d2fdc0c7bd9364ac69
UTC Build Time: 2020-02-27 05:46:50
Go Version: go1.13

There is a nightly versions that is much more recent:

$ docker run -it pingcap/tidb-enterprise-tools:nightly /sync_diff_inspector -V
App Name: sync_diff_inspector v2.0
Release Version: v5.4.0
Git Commit Hash: b1def7746ec382a71a70b8958b1053202092f95c
Git Branch: heads/refs/tags/v5.4.0
UTC Build Time: 2022-01-03 10:01:35
Go Version: go1.16.4

I don't see a version that is recent and stable and is production ready.

There are also tidb-tools (without 'enterprise' in the name) images, and pingcap/tidb-tools:nightly seems to have a version of sync_diff_inspector, but it doesn't work in the container:

[dvaneeden@dve-carbon ~]$ docker run -it pingcap/tidb-tools:nightly /bin/sh
/ # ls -l /tidb-tools/sync_diff_inspector 
-rwxr-xr-x    1 root     root      74327136 Oct 13 20:20 /tidb-tools/sync_diff_inspector
/ # /tidb-tools/sync_diff_inspector -V
/bin/sh: /tidb-tools/sync_diff_inspector: not found
/ # ldd /tidb-tools/sync_diff_inspector
	/lib64/ld-linux-x86-64.so.2 (0x7f3b326c7000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f3b326c7000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f3b326c7000)
/ # ls /lib64
ls: /lib64: No such file or directory
@qiancai qiancai added the area/migrate Indicates that the Issue or PR belongs to the area of TiDB migration tools. label Jan 4, 2022
@Leavrth
Copy link
Contributor

Leavrth commented Jan 5, 2022

It seems that the pr is still in dev-branch...
https://docs.pingcap.com/tidb/dev/sync-diff-inspector-overview/

@dveeden
Copy link
Contributor Author

dveeden commented Jan 5, 2022

Yes, #6966 has a cherry-pick PR in #6972 but that was closed.

I also don't think we should tell customers to use a nightly build in production.

@dveeden
Copy link
Contributor Author

dveeden commented Jan 5, 2022

cc @TomShawn

@shichun-0415 shichun-0415 added area/sync-diff-inspector Indicates that the Issue or PR belongs to the area of sync-diff-inspector. and removed area/migrate Indicates that the Issue or PR belongs to the area of TiDB migration tools. labels Jan 30, 2023
@shichun-0415 shichun-0415 added the tracked This issue has been tracked. label Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sync-diff-inspector Indicates that the Issue or PR belongs to the area of sync-diff-inspector. tracked This issue has been tracked.
Projects
None yet
Development

No branches or pull requests

5 participants