You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make some constant SubscribableListener instances cheaper
We can just use a real constant for the `null` case, avoiding any
non-plain stores in all cases. This should be somewhat helpful for the
security interceptors.
Also, the spots where we create completed instances can use weaker
release-type memory semantics to potentially help the compiler out.
Copy file name to clipboardexpand all lines: x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/interceptor/BulkShardRequestInterceptor.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,6 @@ public SubscribableListener<Void> intercept(
Copy file name to clipboardexpand all lines: x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/interceptor/DlsFlsLicenseRequestInterceptor.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,6 @@ public SubscribableListener<Void> intercept(
Copy file name to clipboardexpand all lines: x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/interceptor/FieldAndDocumentLevelSecurityRequestInterceptor.java
Copy file name to clipboardexpand all lines: x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/interceptor/IndicesAliasesRequestInterceptor.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ public SubscribableListener<Void> intercept(
Copy file name to clipboardexpand all lines: x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/interceptor/ResizeRequestInterceptor.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,7 @@ public SubscribableListener<Void> intercept(
Copy file name to clipboardexpand all lines: x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/interceptor/SearchRequestCacheDisablingInterceptor.java
Copy file name to clipboardexpand all lines: x-pack/plugin/snapshot-repo-test-kit/src/internalClusterTest/java/org/elasticsearch/repositories/blobstore/testkit/integrity/RepositoryVerifyIntegrityIT.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -191,7 +191,7 @@ public void testTaskStatus() throws IOException {
Copy file name to clipboardexpand all lines: x-pack/plugin/snapshot-repo-test-kit/src/main/java/org/elasticsearch/repositories/blobstore/testkit/integrity/RepositoryIntegrityVerifier.java
Copy file name to clipboardexpand all lines: x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/action/TransportSetTransformUpgradeModeAction.java
0 commit comments