mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 05:58:44 +00:00
Test: assert that the current thread is not already interrupted
Original commit: elastic/x-pack-elasticsearch@acc517ca53
This commit is contained in:
parent
d036fc505d
commit
853f8d50ef
@ -617,6 +617,7 @@ public class IndexAuditTrail extends AbstractComponent implements AuditTrail {
|
||||
}
|
||||
|
||||
authenticationService.attachUserHeaderIfMissing(request, auditUser.user());
|
||||
assert !Thread.currentThread().isInterrupted() : "current thread has been interrupted before putting index template!!!";
|
||||
PutIndexTemplateResponse response = client.admin().indices().putTemplate(request).actionGet();
|
||||
if (!response.isAcknowledged()) {
|
||||
throw new ShieldException("failed to put index template for audit logging");
|
||||
|
Loading…
x
Reference in New Issue
Block a user