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

dm/test: swap upstream and downstream of sync_diff in some cases #3413

Merged
merged 7 commits into from
Nov 12, 2021

Conversation

lance6716
Copy link
Contributor

@lance6716 lance6716 commented Nov 11, 2021

What problem does this PR solve?

close https://github.com/pingcap/ticdc/issues/3335
close https://github.com/pingcap/ticdc/issues/3409
close https://github.com/pingcap/ticdc/issues/3394

also close https://github.com/pingcap/ticdc/pull/3405

What is changed and how it works?

as title

Check List

Tests

  • No code

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch

Release note

`None`.

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Nov 11, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Ehco1996
  • lichunzhu

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note-none Denotes a PR that doesn't merit a release note. and removed release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Nov 11, 2021
@lance6716
Copy link
Contributor Author

/run-all-tests

@GMHDBJD
Copy link
Contributor

GMHDBJD commented Nov 11, 2021

dm_syncer
["failed to initialize diff process"] [error="no table need to be compared"] [errorVerbose="no table need to be compared\ngithub.com/pingcap/tidb-tools/sync_diff_inspector/source.NewSources\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb-tools/sync_diff_inspector/source/source.go:150\nmain.(*Diff).init\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb-tools/sync_diff_inspector/diff.go:139\nmain.NewDiff\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb-tools/sync_diff_inspector/diff.go:97\nmain.checkSyncState\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb-tools/sync_diff_inspector/main.go:92\nmain.main\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb-tools/sync_diff_inspector/main.go:79\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"] [stack="main.checkSyncState\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb-tools/sync_diff_inspector/main.go:95\nmain.main\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb-tools/sync_diff_inspector/main.go:79\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225"]

@lance6716
Copy link
Contributor Author

/run-all-tests

@lance6716
Copy link
Contributor Author

/run-dm-integration-test

dm/tests/full_mode/run.sh Show resolved Hide resolved
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 11, 2021
dm/tests/full_mode/run.sh Outdated Show resolved Hide resolved
@Ehco1996 Ehco1996 added the area/dm Issues or PRs related to DM. label Nov 12, 2021
@Ehco1996
Copy link
Contributor

/run-dm-integration-tests

Copy link
Contributor

@Ehco1996 Ehco1996 left a comment

Choose a reason for hiding this comment

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

restLGTM

dm/tests/adjust_gtid/run.sh Show resolved Hide resolved
@@ -71,7 +71,7 @@ function run() {
run_dm_syncer $WORK_DIR/syncer2 $WORK_DIR/dm-syncer-2.toml $meta_file --syncer-config-format syncer2

# wait for dm_syncer to init and start
sleep 5
sleep 10
Copy link
Contributor

@Ehco1996 Ehco1996 Nov 12, 2021

Choose a reason for hiding this comment

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

in our doc: Syncer is no longer maintained. Its features are completely superseded by TiDB Data Migration. It is strongly recommended that you use TiDB Data Migration instead

just a question: do we have plan to delete the code releated to dm-sycner from our codebase and syncer-bin from tidb-enterprise-tools?

also cc @sunzhaoyang

dm/tests/full_mode/run.sh Show resolved Hide resolved
@lance6716
Copy link
Contributor Author

/run-all-tests

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Nov 12, 2021
@lance6716
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 5067ec5

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Nov 12, 2021
@Ehco1996
Copy link
Contributor

[2021-11-12T02:43:45.884Z] Exception:

[2021-11-12T02:43:45.884Z] Traceback (most recent call last):

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main

[2021-11-12T02:43:45.884Z]     status = self.run(options, args)

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 307, in run

[2021-11-12T02:43:45.884Z]     requirement_set.prepare_files(finder)

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 370, in prepare_files

[2021-11-12T02:43:45.884Z]     ignore_dependencies=self.ignore_dependencies))

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 587, in _prepare_file

[2021-11-12T02:43:45.884Z]     session=self.session, hashes=hashes)

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/download.py", line 811, in unpack_url

[2021-11-12T02:43:45.884Z]     hashes=hashes

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/download.py", line 650, in unpack_http_url

[2021-11-12T02:43:45.884Z]     hashes)

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/download.py", line 892, in _download_http_url

[2021-11-12T02:43:45.884Z]     _download_url(resp, link, content_file, hashes)

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/download.py", line 596, in _download_url

[2021-11-12T02:43:45.884Z]     hashes.check_against_chunks(downloaded_chunks)

[2021-11-12T02:43:45.884Z]   File "/usr/lib/python2.7/site-packages/pip/utils/hashes.py", line 49, in check_against_chunks

[2021-11-12T02:43:45.884Z]     for chunk in chunks:

[2021-11-12T02:43:45.885Z]   File "/usr/lib/python2.7/site-packages/pip/download.py", line 564, in written_chunks

[2021-11-12T02:43:45.885Z]     for chunk in chunks:

[2021-11-12T02:43:45.885Z]   File "/usr/lib/python2.7/site-packages/pip/download.py", line 553, in resp_read

[2021-11-12T02:43:45.885Z]     decode_content=False):

[2021-11-12T02:43:45.885Z]   File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 353, in stream

[2021-11-12T02:43:45.885Z]     data = self.read(amt=amt, decode_content=decode_content)

[2021-11-12T02:43:45.885Z]   File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 320, in read

[2021-11-12T02:43:45.885Z]     flush_decoder = True

[2021-11-12T02:43:45.885Z]   File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__

[2021-11-12T02:43:45.885Z]     self.gen.throw(type, value, traceback)

[2021-11-12T02:43:45.885Z]   File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 242, in _error_catcher

[2021-11-12T02:43:45.885Z]     raise ReadTimeoutError(self._pool, None, 'Read timed out.')

[2021-11-12T02:43:45.885Z] ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

i will add retry for this

@lance6716
Copy link
Contributor Author

/run-all-tests

@lance6716
Copy link
Contributor Author

/merge

@lance6716
Copy link
Contributor Author

/run-integration-test

@lance6716
Copy link
Contributor Author

/run-integration-test

upload coverage error...

@lance6716
Copy link
Contributor Author

/run-integration-test

@ti-chi-bot ti-chi-bot merged commit 35102b5 into pingcap:master Nov 12, 2021
@glorv glorv mentioned this pull request Nov 17, 2021
lance6716 added a commit that referenced this pull request Jan 18, 2022
lance6716 added a commit to lance6716/ticdc that referenced this pull request Jan 18, 2022
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Jan 19, 2022
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Jan 19, 2022
@lance6716 lance6716 deleted the fix-sync_diff branch October 13, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dm Issues or PRs related to DM. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
5 participants