mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Follow-up to #65415. We can't have this exception bubble up in an exception handler any longer due to the new assertion so we must handle it here.
This commit is contained in:
parent
6bbeedc932
commit
16642f1c74
@ -42,6 +42,7 @@ import org.elasticsearch.common.settings.Setting;
|
|||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.settings.SettingsModule;
|
import org.elasticsearch.common.settings.SettingsModule;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
|
import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException;
|
||||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||||
import org.elasticsearch.index.Index;
|
import org.elasticsearch.index.Index;
|
||||||
import org.elasticsearch.index.IndexNotFoundException;
|
import org.elasticsearch.index.IndexNotFoundException;
|
||||||
@ -544,7 +545,12 @@ public class ShardFollowTasksExecutor extends PersistentTasksExecutor<ShardFollo
|
|||||||
if (ShardFollowNodeTask.shouldRetry(e)) {
|
if (ShardFollowNodeTask.shouldRetry(e)) {
|
||||||
logger.debug(new ParameterizedMessage("failed to fetch follow shard global {} checkpoint and max sequence number",
|
logger.debug(new ParameterizedMessage("failed to fetch follow shard global {} checkpoint and max sequence number",
|
||||||
shardFollowNodeTask), e);
|
shardFollowNodeTask), e);
|
||||||
threadPool.schedule(() -> nodeOperation(task, params, state), params.getMaxRetryDelay(), Ccr.CCR_THREAD_POOL_NAME);
|
try {
|
||||||
|
threadPool.schedule(() -> nodeOperation(task, params, state), params.getMaxRetryDelay(), Ccr.CCR_THREAD_POOL_NAME);
|
||||||
|
} catch (EsRejectedExecutionException rex) {
|
||||||
|
rex.addSuppressed(e);
|
||||||
|
shardFollowNodeTask.onFatalFailure(rex);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
shardFollowNodeTask.onFatalFailure(e);
|
shardFollowNodeTask.onFatalFailure(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user