Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a node is in offline mode, it responds with fetch disabled error. Currently the error is not treated as a soft error and this fails the HA BnP. With this code change, FetchDisabled is considered as a soft error and the fetch will continue as normal.
- Loading branch information
1 parent
8159584
commit 445b240
Showing
4 changed files
with
37 additions
and
11 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
17 changes: 17 additions & 0 deletions
17
src/java/voldemort/server/protocol/admin/ReadOnlyFetchDisabledException.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,17 @@ | ||
package voldemort.server.protocol.admin; | ||
|
||
import voldemort.VoldemortApplicationException; | ||
|
||
/** | ||
* This exception is thrown when fetch is disabled explicitly on the voldemort | ||
* server you can see the state of the fetcher on a server by running the | ||
* command | ||
* | ||
* bin/vadmin.sh meta get readonly.fetch.enabled --url <AdminUrl> | ||
*/ | ||
public class ReadOnlyFetchDisabledException extends VoldemortApplicationException { | ||
|
||
public ReadOnlyFetchDisabledException(String s) { | ||
super(s); | ||
} | ||
} |
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