tici: integrate with TiCI import into interfaces | tidb-test=ef726505f262e22c6ec9c8951273bb5ee20abefb#62820
Conversation
|
Hi @JaySon-Huang. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## feature/fts #62820 +/- ##
===================================================
- Coverage 74.4116% 71.5503% -2.8613%
===================================================
Files 1889 1875 -14
Lines 508453 542144 +33691
===================================================
+ Hits 378348 387906 +9558
- Misses 106590 130905 +24315
+ Partials 23515 23333 -182
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
40e6daa to
6f4e3a1
Compare
6f4e3a1 to
5901a74
Compare
a621fcb to
7d800d1
Compare
282a6ed to
041b232
Compare
|
/hold |
ab33846 to
21e4e1e
Compare
JaySon-Huang
left a comment
There was a problem hiding this comment.
TODO: Update the proto according to the design doc after discussion
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
|
@D3Hunter here is the comment for running IMPORT INTO test. However, the script of transforming the JSON to CSV input is in the tici repo |
|
/test mysql-test |
|
@JaySon-Huang: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
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-sigs/prow repository. |
|
/test mysql-test |
|
@JaySon-Huang: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
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-sigs/prow repository. |
OliverS929
left a comment
There was a problem hiding this comment.
There are still a few comments remaining. The rest looks good to me.
| if err != nil { | ||
| return nil, err | ||
| } | ||
| ectdEndpoints, err := util.ParseHostPortAddr(tidbCfg.Path) |
There was a problem hiding this comment.
Moving getEtcdClient() out of the current file and into another file (e.g., tici_manager_client.go) might be a good idea, since it is not directly related to writing index data to TiCI. cc @Lloyd-Pottiger
There was a problem hiding this comment.
Leave it to be resolve later
|
@OliverS929: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this:
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-sigs/prow repository. |
|
/test unit-test |
|
@JaySon-Huang: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
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-sigs/prow repository. |
|
@JaySon-Huang: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
|
/test unit-test |
|
@JaySon-Huang: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: D3Hunter, OliverS929, windtalker The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/unhold |
What problem does this PR solve?
Issue Number: ref #61759
Problem Summary:
What changed and how does it work?
IMPORT INTOis failed, the user may run theIMPORT INTOagain. Sotable_id+index_idcan not consider as a unique_id. Add task_id to the request so TiCI can usetidb_task_id+table_id+index_idas a unique_id.IMPORT INTOjob status from tidb-servertici.protoMarkPartitionUploadFinished->FinishImportPartitionUpload. Add some fields (tidb_task_idand so on) in the request so that TiCI can retrieve the TiCI job.MarkTableUploadFinished->FinishImportIndexUpload. Addtidb_task_idso that TiCI can retrieve the TiCI job.GetCloudStoragePath->GetImportStoragePrefixIMPORT INTOjob with multiple IndexIDsDataWriterDataWriter::InitTICIFileWriterinside tidb-server code. Will move the proto into kvproto repo later.
ticiWriteGroupticiWriteGroupis shared for multiple region_job so it is not correct to init TICIFileWriters insideticiWriteGroup.TiCIFileWriteras a local variable in region_jobIMPORT INTOjob is running on a table with multiple fulltext indexMetaServiceEelectionKey->MetaServiceElectionKeyCheck List
Tests
As https://github.com/pingcap-inc/tici/issues/239#issuecomment-3206740111 describe
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.