Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Support tiflash in list-append and rw-register test cases and add a tiflash specific case #422

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

lidezhu
Copy link
Contributor

@lidezhu lidezhu commented Jun 21, 2021

What problem does this PR solve?

What is changed and how does it work?

Check List

Tests

  • Unit test
  • E2E test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has Go code change
  • Has CI related scripts change
  • Has Terraform scripts change

Side effects

  • Breaking backward compatibility

Related changes

  • Need to update the documentation

Does this PR introduce a user-facing change?:

NONE

@lidezhu lidezhu changed the title Support more tiflash tests Support test tiflash in list-append and rw-register and add a tiflash specific case Jun 21, 2021
@lidezhu lidezhu changed the title Support test tiflash in list-append and rw-register and add a tiflash specific case Support tiflash in list-append and rw-register test cases and add a tiflash specific case Jun 21, 2021
@lidezhu lidezhu requested review from mahjonp and lilinghai June 21, 2021 05:41
txnMode: txnMode,
replicaRead: replicaRead,
tiflashDataReplicas: tiflashDataReplicas,
it: elletxn.WrTxn(opt),
Copy link
Contributor

Choose a reason for hiding this comment

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

The function Create also needs "tiflashDataReplicas: r.tiflashDataReplicas,"

Copy link
Contributor

@lilinghai lilinghai left a comment

Choose a reason for hiding this comment

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

rest lgtm

if err := loader.Flush(); err != nil {
log.Warn(err)
}
if _, err := db.Exec(fmt.Sprintf("DELETE FROM %s limit %d", tableName, deleteNum)); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should ensure the read engine is "TiKV" here.

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

Successfully merging this pull request may close these issues.

2 participants