-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Delete discovery gateway #9500
Delete discovery gateway #9500
Conversation
_ = hc.AddTestTablet(cell, "e0-", 1, "TestExecutor", "e0-", topodatapb.TabletType_PRIMARY, true, 1, nil) | ||
// Below is needed so that SendAnyWherePlan doesn't fail | ||
_ = hc.AddTestTablet(cell, "e0-", 1, "TestXBadVSchema", "-20", topodatapb.TabletType_PRIMARY, true, 1, nil) |
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 problem seems to be related to hostname, if you change the hostname from e0-
to random
the test starts working.
The bug may be a test thing when the hostname is the same.
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.
ah good point. we should change e0-
to -20
to match the shard name and make it unique.
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.
-20
also conflicts. I guess we should make it 0
.
I tried that, the next error is
--- FAIL: TestExecutorMaxPayloadSizeExceeded (0.00s)
executor_test.go:1992:
Error Trace: executor_test.go:1992
Error: Not equal:
expected: <nil>(<nil>)
actual : *vterrors.fundamental(Code: NOT_FOUND
tablet aa-0000000010 not found
)
Test: TestExecutorMaxPayloadSizeExceeded
Messages: err should be nil
@@ -409,7 +409,7 @@ func TestDeleteEqual(t *testing.T) { | |||
} | |||
|
|||
func TestUpdateScatter(t *testing.T) { |
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.
for failing test, the issue is due to a global session named primarySession
getting used.
instead create a local session for those tests and use exec
or executorExecSession
instead of executorExec
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.
What I did instead is to not initialize primarySession
when it is declared, but create it in each of the test env functions - createExecutorEnv
etc. That seems to fix all the failures in this particular test.
let's re-open when we have time to spend on it |
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
… package Signed-off-by: deepthi <deepthi@planetscale.com>
3f5662e
to
266af64
Compare
…teway Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…t names Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
777a4ba
to
faf0cd3
Compare
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
3c976f2
to
2475fb3
Compare
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
I will open a follow-up pull request rebased on top of this one to remove the |
…TabletUID Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
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 opened this PR, so I can't accept it, but it LGTM ⭐
Removing old code is the best ❤️
…teway Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
@deepthi in Link to the corresponding ToDo: |
Not deprecate, just change from exported -> not. All 6 flags below that comment should be reviewed to see if they are still being used outside |
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Description
This pull request removes the
DiscoveryGateway
struct and related files. TheDiscoveryGateway
has been our legacy gateway since the implementation of the newtabletgateway
through #6155.Related Issue(s)
Checklist