-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shard failure on flush during upload failures for remote indexes
Signed-off-by: Ashish Singh <[email protected]>
- Loading branch information
Showing
5 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...r/src/main/java/org/opensearch/index/translog/transfer/TranslogUploadFailedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.index.translog.transfer; | ||
|
||
import org.opensearch.core.common.io.stream.StreamInput; | ||
import org.opensearch.core.index.shard.ShardId; | ||
import org.opensearch.index.translog.TranslogException; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* Exception is thrown if there are any exceptions while uploading translog to remote store. | ||
* @opensearch.internal | ||
*/ | ||
public class TranslogUploadFailedException extends TranslogException { | ||
|
||
public TranslogUploadFailedException(ShardId shardId, String message) { | ||
super(shardId, message); | ||
} | ||
|
||
public TranslogUploadFailedException(ShardId shardId, String message, Throwable cause) { | ||
super(shardId, message, cause); | ||
} | ||
|
||
public TranslogUploadFailedException(StreamInput in) throws IOException { | ||
super(in); | ||
} | ||
} |