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] Possible race condition during update of static entities #4386

Open willyborankin opened 1 month ago

willyborankin commented 1 month ago

What is the bug?

During refactoring of Action group REST API test. If more than one test updates static action group. The test which executes after the previous one creates a new static action group which has the same name as predefined static action group.

I will check such behave for other entities and update the issue.

An important node: It is floating bug. Sometimes it works fine sometimes not. If I add any sync-aware method into AbstractApiAction (e.g. System.err.) the test stats work fine.

scrawfor99 commented 1 month ago

[Triage] Thanks for filing this issue @willyborankin. Sounds like you are taking a further look into this so will mark as triaged.