4007ff44b7
This commit fixes an issue in synchronization in Exporters class. The export() method is synchronized and when used with LocalExport can provoke a deadlock. LocalExporter exports data locally using bulk requests that can trigger cluster state updates for mapping updates. If a exporters settings update sneaks in, the settings update waits for the export to terminate but the export waits for the settings to be updated... and boom. This commit removes the synchronized and refactor Exporters/LocalExporter to use state and dedicated instance of LocalBulk for each export so that synchronizing methods is not necessary anymore. It also lower down some random settings in MonitoringBulkTests because the previous settings almost always fill the bulk thread pool. closes elastic/elasticsearch#1769 Original commit: elastic/x-pack-elasticsearch@f50c916f8b |
||
---|---|---|
.. | ||
license | ||
qa | ||
x-dev-tools | ||
x-pack | ||
build.gradle | ||
checkstyle_suppressions.xml |