-
Notifications
You must be signed in to change notification settings - Fork 81
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
Error when creating several users in a row using driver v2 #619
Comments
@vfouqueron Did this happen during the user creation request, or later when you tried to check if the created user exists? |
It was on creation, the user is created but it returns this error, which makes no sense in this case |
@vfouqueron do you have any code to reproduce it? We have a IT tests for user creation within the test scope. |
@jwierzbo Yes, I have the issue in this code : https://github.com/predell/terraform-provider-arangodb/blob/main/internal/provider/user_resource.go Precisely, I have that:
There is nothing incredible and I iterated over just five users in parallel. I don't know if you need me to code a more precise and reproductible use case. I'm not on the subject currently and not a go expert, so I'll need a little bit of time to create a concise and reproductible case. Other precision, I ran that on an Arango cluster running inside a Kubernetes cluster. |
Just a fly on the wall here, but this pattern makes me wonder if there are concurrency issues: func (c *connectionPool) NewRequest(method string, urls ...string) (Request, error) {
return c.connections[0].NewRequest(method, urls...)
} |
@vfouqueron We found that this is an internal database error, and it cannot be fixed in the go-driver. For now, until a fix is provided, you can use the following workarounds: |
@jwierzbo Thank you for finding the issue! |
Hello,
I'm trying to create several arangodb users using the api. Sometimes, I have the error :
HTTP Error: user not found
The user is actually created but I cannot be sure of it
The text was updated successfully, but these errors were encountered: