pingcap / docs

TiDB database documentation.
https://docs.pingcap.com
Other
579 stars 673 forks source link

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

Open dveeden opened 2 years ago

dveeden commented 2 years ago

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:

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
Leavrth commented 2 years ago

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

dveeden commented 2 years ago

Yes, https://github.com/pingcap/docs/pull/6966 has a cherry-pick PR in https://github.com/pingcap/docs/pull/6972 but that was closed.

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

dveeden commented 2 years ago

cc @TomShawn