hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-3618) IF RC is other than zero are we assuming that Service is down (What if NC command itself not found)
Date Mon, 09 Jul 2012 09:33:36 GMT
Brahma Reddy Battula created HDFS-3618:
------------------------------------------

             Summary: IF RC is other than zero are we assuming that Service is down (What
if NC command itself not found)
                 Key: HDFS-3618
                 URL: https://issues.apache.org/jira/browse/HDFS-3618
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: auto-failover
            Reporter: Brahma Reddy Battula


Started NN's and zkfc's are Suse11.
Suse11 will have netcat installation and netcat -z will work(but nc -z wn't work)..
While executing following command, got command not found hence rc will be other than zero
and assuming that server was down..Here we are ending up without checking whether service
is down or not..
{code}
LOG.info(
            "Indeterminate response from trying to kill service. " +
            "Verifying whether it is running using nc...");
        rc = execCommand(session, "nc -z " + serviceAddr.getHostName() +
            " " + serviceAddr.getPort());
        if (rc == 0) {
          // the service is still listening - we are unable to fence
          LOG.warn("Unable to fence - it is running but we cannot kill it");
          return false;
        } else {
          LOG.info("Verified that the service is down.");
          return true;          
        }

{code}




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message