[
https://issues.apache.org/jira/browse/CASSANDRA-20363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17930581#comment-17930581
]
Tommy Stendahl edited comment on CASSANDRA-20363 at 2/26/25 7:55 AM:
---------------------------------------------------------------------
My plan is to extend DefaultFSErrorHandler and override handleFSError(FSError
e), something like this:
{quote}public class CustomFSErrorHandler extendDefaultFSErrorHandler
{
@Override
public void handleFSError(FSError e)
{
super.handleFSError(e);
// if disk_failure_policy is stop and problem is disk unavailable
schedule a task
// that monitor when disk is available again and open gossip and
transports
{color:#172b4d} }{color}
{color:#172b4d}}
{quote}
was (Author: tommy_s):
My plan is to extend DefaultFSErrorHandler and override handleFSError(FSError
e), something like this:
{quote}public class CustomFSErrorHandler extendDefaultFSErrorHandler
{
@Override
public void handleFSError(FSError e)
{
super.handleFSError(e);
// if problem is disk unavailable schedule a task that monitor
// when disk is available again and open gossip and transports
{color:#172b4d} }{color}
{color:#172b4d}}{color}{quote}
> Add option to set a custom FSErrorHandler
> -----------------------------------------
>
> Key: CASSANDRA-20363
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20363
> Project: Apache Cassandra
> Issue Type: New Feature
> Reporter: Tommy Stendahl
> Assignee: Tommy Stendahl
> Priority: Normal
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Add java property to override the DefaultFSErrorHandler with a custom
> implementation.
> The use case I am looking at is a customer deployment that are using network
> disks and these can go off-line sometimes, I would like to use
> "disk_failure_policy: stop" but automatically detect when the disk is on-line
> again and just open gossip and transports so the nodes comes back UP without
> triggering a restart of the node.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]