OpenSearch/client/sniffer
Luca Cavanna 63f3a61134
Refactor Sniffer and make it testable (#29638)
This commit reworks the Sniffer component to simplify it and make it possible to test it.

In particular, it no longer takes out the host that failed when sniffing on failure, but rather relies on whatever the cluster returns. This is the result of some valid comments from #27985. Taking out one single host is too naive, hard to test and debug.

A new Scheduler abstraction is introduced to abstract the tasks scheduling away and make it possible to plug in any test implementation and take out timing aspects when testing.

Concurrency aspects have also been improved, synchronized methods are no longer required. At the same time, we were able to take #27697 and #25701 into account and fix them, especially now that we can more easily add tests.

Last but not least, unit tests are added for the Sniffer component, long overdue.

Closes #27697
Closes #25701
2018-05-31 16:05:09 +02:00
..
licenses Upgrade to Jackson 2.8.10 (#27230) 2017-11-06 10:20:05 +01:00
src Refactor Sniffer and make it testable (#29638) 2018-05-31 16:05:09 +02:00
build.gradle Remove animal sniffer from REST client sniffer (#30260) 2018-05-01 09:33:17 +02:00