Original commit: elastic/x-pack-elasticsearch@0397e68efd
This commit is contained in:
Simon Willnauer 2017-07-26 09:17:28 +02:00
parent be109b1538
commit 3914d66cea
2 changed files with 2 additions and 2 deletions

View File

@ -530,7 +530,7 @@ public class Security implements ActionPlugin, IngestPlugin, NetworkPlugin {
() -> {
throw new IllegalArgumentException("permission filters are not allowed to use the current timestamp");
}),
}, null),
indexService.cache().bitsetFilterCache(),
indexService.getThreadPool().getThreadContext(), licenseState,
indexService.getScriptService()));

View File

@ -72,7 +72,7 @@ public class SecurityIndexSearcherWrapperIntegrationTests extends ESTestCase {
when(client.settings()).thenReturn(Settings.EMPTY);
final long nowInMillis = randomNonNegativeLong();
QueryShardContext realQueryShardContext = new QueryShardContext(shardId.id(), indexSettings, null, null, mapperService, null,
null, xContentRegistry(), client, null, () -> nowInMillis);
null, xContentRegistry(), client, null, () -> nowInMillis, null);
QueryShardContext queryShardContext = spy(realQueryShardContext);
IndexSettings settings = IndexSettingsModule.newIndexSettings("_index", Settings.EMPTY);
BitsetFilterCache bitsetFilterCache = new BitsetFilterCache(settings, new BitsetFilterCache.Listener() {