cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-541) allow moving a live node with data on it
Date Thu, 12 Nov 2009 22:54:39 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777254#action_12777254
] 

Jonathan Ellis commented on CASSANDRA-541:
------------------------------------------

apparently this is a jdk bug. some discussion on http://issues.apache.org/jira/browse/HADOOP-3164
including a workaround

[...] try {
        nTransfered = (int) inChannel.transferTo(startPos, len, outChannel);
      } catch (IOException e) {
        /* at least jdk1.6.0 on Linux seems to throw IOException
         * when the socket is full. Hopefully near future verisions will
         * handle EAGAIN better. For now look for a specific string in for
         * the message for the exception.
         */
        if (e.getMessage().startsWith("Resource temporarily unavailable")) {
          out.waitForWritable();
          continue;
        } else {
          throw e;
        }
      }

and a link to fix in jdk7: http://bugs.sun.com/view_bug.do?bug_id=5103988

> allow moving a live node with data on it
> ----------------------------------------
>
>                 Key: CASSANDRA-541
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-541
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Core, Tools
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>             Fix For: 0.5
>
>         Attachments: 0001-CASSANDRA-541-add-Move-command.txt, 0002-fixes.txt
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message