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

*: add a tidb system variable tidb_hash_join_concurrency #6244

Merged
merged 9 commits into from
Apr 12, 2018

Conversation

XuHuaiyu
Copy link
Contributor

@XuHuaiyu XuHuaiyu commented Apr 9, 2018

This commit adds a tidb system variable called tidb_hash_join_concurrency,
thus we can change the value of hash join concurrency without restarting the tidb server.

PTAL @zz-jason @winoros

@@ -138,6 +100,47 @@ const (
TiDBEnableStreaming = "tidb_enable_streaming"
)

// TiDB session and global system variable names.
Copy link
Member

Choose a reason for hiding this comment

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

session or global is better.

@XuHuaiyu
Copy link
Contributor Author

XuHuaiyu commented Apr 9, 2018

/run-all-tests

@@ -406,6 +410,15 @@ func (s *SessionVars) GetStatusFlag(flag uint16) bool {
return s.Status&flag > 0
}

// GetHashJoinConcurrency gets the value of SessionVars.HashJoinConcurrency.
func (s *SessionVars) GetHashJoinConcurrency() uint {
Copy link
Member

Choose a reason for hiding this comment

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

can we remove this func and initialize HashJoinConcurrency in other places, thus we can use HashJoinConcurrency like other session variables ?

@shenli
Copy link
Member

shenli commented Apr 10, 2018

Please resolve the conflicts and fix CI.

@XuHuaiyu
Copy link
Contributor Author

/run-integration-common-test
/run-common-test

@XuHuaiyu XuHuaiyu changed the title *: add a tidb system variable for hash join concurrency *: add a tidb system variable tidb_hash_join_concurrency Apr 12, 2018
@XuHuaiyu
Copy link
Contributor Author

/run-integration-common-test tidb-test=pr/496
/run-common-test tidb-test=pr/496

@XuHuaiyu
Copy link
Contributor Author

/run-integration-common-test tidb-test=pr/496 tidb-private-test=pr/8
/run-common-test tidb-test=pr/496 tidb-private-test=pr/8

@XuHuaiyu
Copy link
Contributor Author

PTAL @zz-jason @jackysp

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

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

LGTM

@XuHuaiyu
Copy link
Contributor Author

/run-all-tests tidb-test=pr/496 tidb-private-test=pr/8

@XuHuaiyu
Copy link
Contributor Author

/run-integration-common-test tidb-test=pr/496 tidb-private-test=pr/8

@XuHuaiyu XuHuaiyu merged commit e2b033d into pingcap:master Apr 12, 2018
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.

5 participants