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

tpcc: add checkCondition6 and checkCondition11 #1

Merged
merged 3 commits into from
Nov 15, 2019
Merged

tpcc: add checkCondition6 and checkCondition11 #1

merged 3 commits into from
Nov 15, 2019

Conversation

mahjonp
Copy link
Contributor

@mahjonp mahjonp commented Nov 14, 2019

Add checkCondition6 and checkCondition11.

I found that checkCondition11 always failed after running tpcc run command for a while . PTAL @zhouqiang-cl

Signed-off-by: mahjonp [email protected]

@zhouqiang-cl
Copy link
Contributor

condition11 is not work for mysql

@siddontang
Copy link
Member

refer to TPC-C specification, we can know only condition check 1 - 4 must be demonstrated when running TPC-C.

All of the checks must be met only after loading data.

@siddontang
Copy link
Member

so we can separate into two checks - run check, and load check.

Copy link
Contributor

@zhouqiang-cl zhouqiang-cl left a comment

Choose a reason for hiding this comment

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

LGTM

@zhouqiang-cl
Copy link
Contributor

@siddontang PTAL

@@ -6,22 +6,34 @@ import (
)

// Check implements Workloader interface
func (w *Workloader) Check(ctx context.Context, threadID int) error {
func (w *Workloader) Check(ctx context.Context, threadID int, checkForLoad bool) error {
// refer 3.3.2
checks := []func(ctx context.Context, warehouse int) error{
w.checkCondition1,
w.checkCondition2,
w.checkCondition3,
w.checkCondition4,
Copy link
Member

Choose a reason for hiding this comment

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

seem we still can check all in run except 11

Copy link
Member

Choose a reason for hiding this comment

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

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

Successfully merging this pull request may close these issues.

3 participants