-
Notifications
You must be signed in to change notification settings - Fork 98
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
Conversation
Signed-off-by: mahjonp <[email protected]>
Signed-off-by: mahjonp <[email protected]>
condition11 is not work for mysql |
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. |
so we can separate into two checks - run check, and load check. |
Signed-off-by: mahjonp <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@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, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @zhouqiang-cl
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]