mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Handle error in concurrent downsample actions (#122251)
This commit is contained in:
parent
ec7f4ccb04
commit
65f6b44b2a
2 changed files with 2 additions and 5 deletions
|
@ -1760,7 +1760,7 @@ public class DownsampleActionSingleNodeTests extends ESSingleNodeTestCase {
|
|||
new Thread(() -> {
|
||||
try {
|
||||
downsample(sourceIndex, targetIndex, config);
|
||||
} catch (ResourceAlreadyExistsException e) {
|
||||
} catch (ElasticsearchException e) {
|
||||
firstFailed.set(true);
|
||||
} finally {
|
||||
downsampleComplete.countDown();
|
||||
|
@ -1770,7 +1770,7 @@ public class DownsampleActionSingleNodeTests extends ESSingleNodeTestCase {
|
|||
new Thread(() -> {
|
||||
try {
|
||||
downsample(sourceIndex, targetIndex, config);
|
||||
} catch (ResourceAlreadyExistsException e) {
|
||||
} catch (ElasticsearchException e) {
|
||||
secondFailed.set(true);
|
||||
} finally {
|
||||
downsampleComplete.countDown();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue