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

[release-3.4] server,test: refresh cache on each NewAuthStore #14410

Merged
merged 1 commit into from Sep 9, 2022

Conversation

vivekpatani
Copy link
Contributor

- permissions were incorrectly loaded on restarts.
- etcd-io#14355
- Backport of etcd-io#14358

Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
@mitake
Copy link
Contributor

mitake commented Sep 2, 2022

TestV3AuthRestartMember is failing only in linux-amd64-integration-1-cpu. I guess it's a non deterministic issue because the test case finished successfully in other checks of integration test. Let me check.

Copy link
Contributor

@mitake mitake left a comment

Choose a reason for hiding this comment

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

LGTM, defer to @ahrtr . Do you think it's better to revisit timeout config?

@ahrtr
Copy link
Member

ahrtr commented Sep 5, 2022

It seems the new integration test case is failing. It might be related to the Restart method, please try to figure out the root cause.

=== RUN   TestV3AuthRestartMember
{"level":"warn","ts":"2022-09-04T19:32:36.671Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"endpoint://client-a7ac07e9-893e-4e9a-a568-0cb48cf737ce/localhost:57870851442980026570","attempt":0,"error":"rpc error: code = Unavailable desc = transport is closing"}
    testutil.go:55: goroutine 34432 [running]:
        go.etcd.io/etcd/pkg/testutil.FatalStack(0xc002c6d680, 0xc0029c54a0, 0x4d)
        	/home/runner/work/etcd/etcd/pkg/testutil/testutil.go:54 +0x6f
        go.etcd.io/etcd/pkg/testutil.AssertEqual(0xc002c6d680, 0x0, 0x0, 0xf31560, 0xc00018d040, 0x0, 0x0, 0x0)
        	/home/runner/work/etcd/etcd/pkg/testutil/assert.go:35 +0x153
        go.etcd.io/etcd/pkg/testutil.AssertNil(...)
        	/home/runner/work/etcd/etcd/pkg/testutil/assert.go:39
        go.etcd.io/etcd/integration.TestV3AuthRestartMember(0xc002c6d680)
        	/home/runner/work/etcd/etcd/integration/v3_auth_test.go:471 +0x9c5
        testing.tRunner(0xc002c6d680, 0x109e968)
        	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1203 +0xe5
        created by testing.(*T).Run
        	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1248 +0x2b3

@mitake
Copy link
Contributor

mitake commented Sep 7, 2022

@ahrtr It's only failing in linux-amd64-integration-1-cpu. linux-amd64-integration-2-cpu and linux-amd64-integration-4-cpu don't cause the failure and on my local env the test case runs successfully. Probably we should fix the timeout config? How do you think @vivekpatani ?

@serathius serathius changed the title server,test: refresh cache on each NewAuthStore [release-3.4] server,test: refresh cache on each NewAuthStore Sep 7, 2022
@vivekpatani
Copy link
Contributor Author

@mitake quoting myself from the 3.5 PR, I can't seem to reproduce this, can you by any chance reproduce this?

I've tried on docker (amd64) and on my baremetal machine (M1 arch), and have consistently failed and reproducing this.

@serathius
Copy link
Member

Yep, v3.4 tests are definitely flaky.

testutil.AssertNil(t, err)

clus.Members[0].Stop(t)
err = clus.Members[0].Restart(t)
Copy link
Member

Choose a reason for hiding this comment

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

Please try to add code something below, probably we should add a timeout also,

clus.Members[0].WaitOK(t)

Copy link
Member

Choose a reason for hiding this comment

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

Let me do this in a separate PR.

Copy link
Member

Choose a reason for hiding this comment

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

FYI. #14442

@ahrtr ahrtr mentioned this pull request Sep 8, 2022
8 tasks
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

Thank you @vivekpatani

@ahrtr ahrtr merged commit 6730ed8 into etcd-io:release-3.4 Sep 9, 2022
@vivekpatani
Copy link
Contributor Author

sorry for the delay, thanks for merging @ahrtr

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

Successfully merging this pull request may close these issues.

None yet

4 participants