Open prziborowski opened 16 hours ago
Howdy 🖐 prziborowski ! Thank you for your interest in this project. We value your feedback and will respond soon.
If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION
guidelines.
Describe the bug
I am seeing that if I try to perform a Login, that it will modify the userSession object. And if I'm also calling something like UserSession(), or maybe SessionIsActive, it is reading the object. I'm not sure if I should be adding locks on the client code or not. https://github.com/vmware-tanzu/vm-operator/blob/main/pkg/providers/vsphere/client/client_test.go#L305,L356 is a somewhat contrived case of the race.
To Reproduce
I wrote a small test-case that just loops forever (obviously not a candidate for checking in if it no longer hits the data race):
Expected behavior Either hoping that it doesn't race here, or possibly suggestion on what locking structure to add from client.
Affected version commit 3db76c0b19c97fc81c9e4339c054cb4c31cf5b93
Screenshots/Debug Output
Additional context Add any other context about the problem here.