opensearch-project / security

🔐 Secure your cluster with TLS, numerous authentication backends, data masking, audit logging as well as role-based access control on indices, documents, and fields
https://opensearch.org/docs/latest/security-plugin/index/
Apache License 2.0
181 stars 264 forks source link

[BUG] Concurrent roles/users creation causes conflict #4522

Open Statheres opened 5 days ago

Statheres commented 5 days ago

Describe the bug

When I'm trying to create multiple roles/users concurrently I receive an error: {"status":"CONFLICT","message":"[roles]: version conflict, required seqNo [36], primary term [1]. current document has seqNo [37] and primary term [1]"}

Script example: create_roles.txt

Related component

Plugins

To Reproduce

  1. Run example script with valid username/password
  2. See error

Expected behavior

Roles/users are created successfully

Additional Details

Host/Environment (please complete the following information):

peternied commented 4 days ago

[Triage - attendees 1 2 3] @Statheres Thanks for creating this issue, transferring to the security plugin repo