You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hairong Kuang (JIRA)" <ji...@apache.org> on 2006/11/09 00:04:51 UTC

[jira] Created: (HADOOP-698) When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection

When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection 
-----------------------------------------------------------------------------------------------------------

                 Key: HADOOP-698
                 URL: http://issues.apache.org/jira/browse/HADOOP-698
             Project: Hadoop
          Issue Type: Bug
          Components: dfs
            Reporter: Hairong Kuang


In the method read(byte buf[ ], int off, int len) of DFSInputStream, when read fails,  it calls "blockSeekTo" to reselect a datanode. However, the failed datanode does not feed back to blockSeekTo. The datanode selection algorithm works as follows:
* If the machine that the client is running on has a local copy, return the local machine;
* Otherwise, randomly pick up one location.

When the failed data node info does not feed back to target reselection, this leads to two flaws:
1. When a client fails to read from the local copy, for example, because of the checksum error, the local machine will always be chosen in retries.
2. Random selection may still return the same failed node.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-698) When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection

Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-698?page=all ]

Milind Bhandarkar updated HADOOP-698:
-------------------------------------

    Attachment: datanode-exclude.patch

Patch attached. It also include two unit tests.

> When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-698
>                 URL: http://issues.apache.org/jira/browse/HADOOP-698
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Hairong Kuang
>         Assigned To: Milind Bhandarkar
>         Attachments: datanode-exclude.patch
>
>
> In the method read(byte buf[ ], int off, int len) of DFSInputStream, when read fails,  it calls "blockSeekTo" to reselect a datanode. However, the failed datanode does not feed back to blockSeekTo. The datanode selection algorithm works as follows:
> * If the machine that the client is running on has a local copy, return the local machine;
> * Otherwise, randomly pick up one location.
> When the failed data node info does not feed back to target reselection, this leads to two flaws:
> 1. When a client fails to read from the local copy, for example, because of the checksum error, the local machine will always be chosen in retries.
> 2. Random selection may still return the same failed node.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Work started: (HADOOP-698) When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection

Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-698?page=all ]

Work on HADOOP-698 started by Milind Bhandarkar.

> When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-698
>                 URL: http://issues.apache.org/jira/browse/HADOOP-698
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Hairong Kuang
>         Assigned To: Milind Bhandarkar
>
> In the method read(byte buf[ ], int off, int len) of DFSInputStream, when read fails,  it calls "blockSeekTo" to reselect a datanode. However, the failed datanode does not feed back to blockSeekTo. The datanode selection algorithm works as follows:
> * If the machine that the client is running on has a local copy, return the local machine;
> * Otherwise, randomly pick up one location.
> When the failed data node info does not feed back to target reselection, this leads to two flaws:
> 1. When a client fails to read from the local copy, for example, because of the checksum error, the local machine will always be chosen in retries.
> 2. Random selection may still return the same failed node.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-698) When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-698?page=all ]

Doug Cutting updated HADOOP-698:
--------------------------------

           Status: Resolved  (was: Patch Available)
    Fix Version/s: 0.9.0
       Resolution: Fixed

I just committed this.  Thanks, Milind!

> When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-698
>                 URL: http://issues.apache.org/jira/browse/HADOOP-698
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Hairong Kuang
>         Assigned To: Milind Bhandarkar
>             Fix For: 0.9.0
>
>         Attachments: datanode-exclude.patch
>
>
> In the method read(byte buf[ ], int off, int len) of DFSInputStream, when read fails,  it calls "blockSeekTo" to reselect a datanode. However, the failed datanode does not feed back to blockSeekTo. The datanode selection algorithm works as follows:
> * If the machine that the client is running on has a local copy, return the local machine;
> * Otherwise, randomly pick up one location.
> When the failed data node info does not feed back to target reselection, this leads to two flaws:
> 1. When a client fails to read from the local copy, for example, because of the checksum error, the local machine will always be chosen in retries.
> 2. Random selection may still return the same failed node.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HADOOP-698) When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-698?page=comments#action_12453815 ] 
            
Hadoop QA commented on HADOOP-698:
----------------------------------

+1, http://issues.apache.org/jira/secure/attachment/12345881/datanode-exclude.patch applied and successfully tested against trunk revision 479931

> When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-698
>                 URL: http://issues.apache.org/jira/browse/HADOOP-698
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Hairong Kuang
>         Assigned To: Milind Bhandarkar
>         Attachments: datanode-exclude.patch
>
>
> In the method read(byte buf[ ], int off, int len) of DFSInputStream, when read fails,  it calls "blockSeekTo" to reselect a datanode. However, the failed datanode does not feed back to blockSeekTo. The datanode selection algorithm works as follows:
> * If the machine that the client is running on has a local copy, return the local machine;
> * Otherwise, randomly pick up one location.
> When the failed data node info does not feed back to target reselection, this leads to two flaws:
> 1. When a client fails to read from the local copy, for example, because of the checksum error, the local machine will always be chosen in retries.
> 2. Random selection may still return the same failed node.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HADOOP-698) When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection

Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-698?page=all ]

Milind Bhandarkar reassigned HADOOP-698:
----------------------------------------

    Assignee: Milind Bhandarkar

> When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-698
>                 URL: http://issues.apache.org/jira/browse/HADOOP-698
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Hairong Kuang
>         Assigned To: Milind Bhandarkar
>
> In the method read(byte buf[ ], int off, int len) of DFSInputStream, when read fails,  it calls "blockSeekTo" to reselect a datanode. However, the failed datanode does not feed back to blockSeekTo. The datanode selection algorithm works as follows:
> * If the machine that the client is running on has a local copy, return the local machine;
> * Otherwise, randomly pick up one location.
> When the failed data node info does not feed back to target reselection, this leads to two flaws:
> 1. When a client fails to read from the local copy, for example, because of the checksum error, the local machine will always be chosen in retries.
> 2. Random selection may still return the same failed node.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HADOOP-698) When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection

Posted by "Milind Bhandarkar (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-698?page=all ]

Milind Bhandarkar updated HADOOP-698:
-------------------------------------

    Status: Patch Available  (was: In Progress)

> When DFS client fails to read from a datanode, the failed datanode is not excluded from target reselection
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-698
>                 URL: http://issues.apache.org/jira/browse/HADOOP-698
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: Hairong Kuang
>         Assigned To: Milind Bhandarkar
>         Attachments: datanode-exclude.patch
>
>
> In the method read(byte buf[ ], int off, int len) of DFSInputStream, when read fails,  it calls "blockSeekTo" to reselect a datanode. However, the failed datanode does not feed back to blockSeekTo. The datanode selection algorithm works as follows:
> * If the machine that the client is running on has a local copy, return the local machine;
> * Otherwise, randomly pick up one location.
> When the failed data node info does not feed back to target reselection, this leads to two flaws:
> 1. When a client fails to read from the local copy, for example, because of the checksum error, the local machine will always be chosen in retries.
> 2. Random selection may still return the same failed node.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira