-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
workload repo: Merge Workload Repository into master #57148
base: master
Are you sure you want to change the base?
Conversation
Hi @wddevries. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #57148 +/- ##
================================================
+ Coverage 72.8369% 74.7192% +1.8823%
================================================
Files 1677 1728 +51
Lines 464141 472889 +8748
================================================
+ Hits 338066 353339 +15273
+ Misses 105185 97319 -7866
- Partials 20890 22231 +1341
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/ok-to-test |
cmd/tidb-server/BUILD.bazel
Outdated
@@ -10,6 +10,7 @@ go_library( | |||
"//pkg/config", |
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.
Can you add some test cases for it?
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.
I am not sure exactly what you mean, but we are in the process of creating tests for this code.
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.
The rest of the changes LGTM.
9a36a9b
to
b4c28ff
Compare
c79b50e
to
2c50ab3
Compare
/retest |
/test pull-integration-ddl-test |
@wddevries: The specified target(s) for
Use
In 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. |
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
@@ -4070,6 +4070,9 @@ var systemTables = map[string]struct{}{ | |||
} | |||
|
|||
func isUndroppableTable(schema, table string) bool { | |||
if schema == "workload_schema" { |
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.
Maybe we should use const in repository
package. Removing depedency is great, but it will also be convenient when we want to know all occurences of schema table name by searching workloadSchemaCIStr.
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
@henrybw: adding LGTM is restricted to approvers and reviewers in OWNERS files. In 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/test-infra repository. |
Can we move |
pkg/domain/repository/BUILD.bazel
Outdated
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.
prefer name this pkg as workloadrepo
, repository is too generic
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.
We will move the package. I'll discuss the name with the others, but I am not opposed to renaming it.
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.
and I believe this is a feature, not enhancement, need PM approve first
/hold |
It is approved. /unhold |
@xhebox please ask if it's ok to unhold before doing it, i hold it also for the comments of myself and @Benjamin2037 |
* repository: sample and snapshot threads Signed-off-by: xhe <xw897002528@gmail.com> * fix Signed-off-by: xhe <xw897002528@gmail.com> * fix Signed-off-by: xhe <xw897002528@gmail.com> * address comments Signed-off-by: xhe <xw897002528@gmail.com> * address comments Signed-off-by: xhe <xw897002528@gmail.com> * address coments Signed-off-by: xhe <xw897002528@gmail.com> * address coments Signed-off-by: xhe <xw897002528@gmail.com> * address comments Signed-off-by: xhe <xw897002528@gmail.com> * address comments Signed-off-by: xhe <xw897002528@gmail.com> * address comments Signed-off-by: xhe <xw897002528@gmail.com> --------- Signed-off-by: xhe <xw897002528@gmail.com>
…als. (pingcap#1317) * Add global variables to control sampling intervals in the Workload Repository. * Return error when etc client is not available. * Rework error messages. * Fix required comments. * Switch to using Ticker.Reset instead of restarting Fiber. * Use swap instead of load and store. * Make a couple of minor changes. * Fix issues
Signed-off-by: xhe <xw897002528@gmail.com>
* Wrap exit with a context.Context. * Remove getGlobalVar from Worker. * Seperate Repository from Domain. * Use RegisterSysVar instead of defining varibles in SysVar.go * Move samplingInterval and snapshotInterval to Worker. * Convert setRepositoryDest to a method of Worker. * Make Worker private to the repository package. * Add error handling in SetupRepository and disable repository. * Change to statically allocated worker class and enable repository. * Don't wait on exit channel for domain. * Stop the repository from cleanup in main.go. * Fix nits and move the error check for etcd later in start(). * Add comments on public methods. * Fix error message format.
Signed-off-by: xhe <xw897002528@gmail.com>
17304bf
to
5368a64
Compare
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
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Benjamin2037, henrybw, xhebox The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
What problem does this PR solve?
Issue Number: ref #57147
Problem Summary:
This pull request merges in the Workload Repository code from the Serverless project. The project is not complete yet, and more testing remains to be done.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.