Skip to content

Commit

Permalink
Allow blob operations on stateless threadpools
Browse files Browse the repository at this point in the history
This commit allows blob store operations to be performed on stateless
thread pools.
  • Loading branch information
Tim-Brooks committed Nov 15, 2023
1 parent 59b730d commit 294fea7
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,14 @@ public long getRestoreThrottleTimeInNanos() {
}

protected void assertSnapshotOrGenericThread() {
assert ThreadPool.assertCurrentThreadPool(ThreadPool.Names.SNAPSHOT, ThreadPool.Names.SNAPSHOT_META, ThreadPool.Names.GENERIC);
// The Stateless plugin adds custom thread pools for object store operations
assert ThreadPool.assertCurrentThreadPool(
ThreadPool.Names.SNAPSHOT,
ThreadPool.Names.SNAPSHOT_META,
ThreadPool.Names.GENERIC,
"stateless_shard",
"stateless_translog"
);
}

@Override
Expand Down

0 comments on commit 294fea7

Please sign in to comment.