OpenSearch/x-pack/plugin
Ioannis Kakavas 6c19d872a0 Fix testRefreshingMultipleTimesWithinWindowSucceeds (#39701)
Previously all the threads were writing the received tokens to a
HashSet. In cases with many threads, sometimes (1 every ~25 tests)
calling size() on the HashSet returned 2 even though it seemed to
contain only one String and there was no evidence from logging that
threadSecurityClient.refreshToken() ever returned a different
access or refresh token.

This commit changes the test to use a ConcurrentHashMap instead,
checking that we only received one pair of access token/refresh token
eventually. It also adds a check so that we won't take into consideration
tokens that are returned after 30s, hence not in the concurrent refresh
time window.
2019-03-07 13:13:50 +02:00
..
ccr Unmute testFollowIndexAndCloseNode 2019-03-06 22:39:13 -05:00
core Change licence expiration date pattern Backport(#39681) #39781 2019-03-07 12:06:18 +01:00
data-frame Add roles and cluster privileges for data frame transforms (#39661) 2019-03-05 14:07:25 +00:00
deprecation ML refactor DatafeedsConfig(Update) so defaults are not populated in queries or aggs (#38822) (#39119) 2019-02-19 12:45:56 -06:00
graph Remove X-Pack centric graph endpoints (#36010) 2018-11-29 07:09:37 -05:00
ilm Handle failure to release retention leases in ILM (#39281) (#39417) 2019-02-26 16:58:30 -07:00
logstash Rename confusing variable holding name of Logstash index template (#36840) 2018-12-19 12:09:37 -07:00
ml [ML] Use scaling thread pool and xpack.ml.max_open_jobs cluster-wide dynamic (#39736) 2019-03-06 12:29:34 +00:00
monitoring Add ILM plugin for MonitoringIT tests (#39271) 2019-02-21 21:45:43 -07:00
rollup Fixed missed stopping of SchedulerEngine (#39193) 2019-02-21 14:31:33 -07:00
security Fix testRefreshingMultipleTimesWithinWindowSucceeds (#39701) 2019-03-07 13:13:50 +02:00
sql SQL: Don't allow inexact fields for MIN/MAX (#39563) 2019-03-04 15:35:11 +01:00
src/test Types removal security index template (#39705) (#39728) 2019-03-06 18:53:59 +11:00
upgrade Converting randomized testing to create a separate unitTest task instead of replacing the builtin test task (#36311) 2018-12-19 08:25:20 +02:00
watcher Use any index specified by .watches for Watcher (#39541) (#39708) 2019-03-05 11:45:34 -07:00
build.gradle Add support for API keys to access Elasticsearch (#38291) 2019-02-05 14:21:57 +11:00