You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Uma Maheswara Rao G (Created) (JIRA)" <ji...@apache.org> on 2011/12/15 17:12:30 UTC
[jira] [Created] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Tests are failing with ClassCastException, due to new protocol changes
-----------------------------------------------------------------------
Key: HDFS-2687
URL: https://issues.apache.org/jira/browse/HDFS-2687
Project: Hadoop HDFS
Issue Type: Bug
Reporter: Uma Maheswara Rao G
https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171566#comment-13171566 ]
Hudson commented on HDFS-2687:
------------------------------
Integrated in Hadoop-Mapreduce-trunk #930 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/930/])
HDFS-2687. Tests failing with ClassCastException post protobuf RPC changes. Contributed by Suresh Srinivas.
suresh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1215366
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelper.java
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171395#comment-13171395 ]
Hudson commented on HDFS-2687:
------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #1470 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/1470/])
HDFS-2687. Tests failing with ClassCastException post protobuf RPC changes. Contributed by Suresh Srinivas.
suresh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1215366
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelper.java
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171542#comment-13171542 ]
Hudson commented on HDFS-2687:
------------------------------
Integrated in Hadoop-Hdfs-trunk #897 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/897/])
HDFS-2687. Tests failing with ClassCastException post protobuf RPC changes. Contributed by Suresh Srinivas.
suresh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1215366
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelper.java
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170672#comment-13170672 ]
Hadoop QA commented on HDFS-2687:
---------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12507563/HDFS-2687.txt
against trunk revision .
+1 @author. The patch does not contain any @author tags.
-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no new tests are needed for this patch.
Also please list what manual steps were performed to verify this patch.
-1 javadoc. The javadoc tool appears to have generated 90 warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
-1 findbugs. The patch appears to cause Findbugs (version 1.3.9) to fail.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these unit tests:
org.apache.hadoop.hdfs.server.blockmanagement.TestBlockTokenWithDFS
org.apache.hadoop.hdfs.server.datanode.TestDataNodeMultipleRegistrations
org.apache.hadoop.hdfs.server.blockmanagement.TestBlocksWithNotEnoughRacks
org.apache.hadoop.hdfs.TestLeaseRecovery2
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/1717//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/1717//console
This message is automatically generated.
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Updated] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Jitendra Nath Pandey (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jitendra Nath Pandey updated HDFS-2687:
---------------------------------------
Issue Type: Sub-task (was: Bug)
Parent: HDFS-2060
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Assigned] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Suresh Srinivas (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas reassigned HDFS-2687:
-------------------------------------
Assignee: Suresh Srinivas
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171370#comment-13171370 ]
Hudson commented on HDFS-2687:
------------------------------
Integrated in Hadoop-Common-trunk-Commit #1447 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1447/])
HDFS-2687. Tests failing with ClassCastException post protobuf RPC changes. Contributed by Suresh Srinivas.
suresh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1215366
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelper.java
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Updated] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Tsz Wo (Nicholas), SZE (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo (Nicholas), SZE updated HDFS-2687:
-----------------------------------------
Component/s: test
Fix Version/s: 0.23.3
0.24.0
I have merged this to 0.23.
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: test
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Fix For: 0.24.0, 0.23.3
>
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Updated] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Suresh Srinivas (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas updated HDFS-2687:
----------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
I committed the patch.
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Updated] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Suresh Srinivas (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas updated HDFS-2687:
----------------------------------
Status: Patch Available (was: Open)
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Uma Maheswara Rao G (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170318#comment-13170318 ]
Uma Maheswara Rao G commented on HDFS-2687:
-------------------------------------------
I just debugged the failure
*Following is the initial analysis:*
Previous behaviour of getListing in ClientNamenodeProtocolTranslatorR23 is
It will pass needLocation flag as true and server side will be packed empty LocatedBlocks with HdfsLocatedFileStatus object if getBlocations are null and needLocation flag is true. So, cleint will reconstruct the HdfsLocatedFileStatus directly if HdfsfileStatus is instanceOf HdfsLocatedFileStatus.
But with new implementation of protocolBuffers, It is just ignoring the LocatedBlocks are server side if the getBlocklocations are null. At client side, to reconstruct the HDFSFileStatus object, it is depending on locations field. Since there is no locations field here, it is considering HDFSFileStatus as just HDFSFileStatus.
Here test assumes that HDFSFileStatus obj will be type of HdfsLocatedFileStatus and trying cast. This is failing here.
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Updated] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Suresh Srinivas (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas updated HDFS-2687:
----------------------------------
Attachment: HDFS-2687.txt
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171374#comment-13171374 ]
Hudson commented on HDFS-2687:
------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #1520 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/1520/])
HDFS-2687. Tests failing with ClassCastException post protobuf RPC changes. Contributed by Suresh Srinivas.
suresh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1215366
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelper.java
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Suresh Srinivas (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171194#comment-13171194 ]
Suresh Srinivas commented on HDFS-2687:
---------------------------------------
TestLeaseReocver2, TestBlockTokenWithDFS, TestBlocksWithNotEnoughRacks are passing for me. TestDatanodeMultipleRegistrations seems like a real problem, but unrelated to this patch.
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Jitendra Nath Pandey (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171335#comment-13171335 ]
Jitendra Nath Pandey commented on HDFS-2687:
--------------------------------------------
+1. lgtm
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Suresh Srinivas (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13171195#comment-13171195 ]
Suresh Srinivas commented on HDFS-2687:
---------------------------------------
I am committing this patch without +1 because these are minor changes. If there are any comments in the future, I will fix it in another jira.
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Assignee: Suresh Srinivas
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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
[jira] [Commented] (HDFS-2687) Tests are failing with
ClassCastException, due to new protocol changes
Posted by "Suresh Srinivas (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170399#comment-13170399 ]
Suresh Srinivas commented on HDFS-2687:
---------------------------------------
Attached patch fixes some conversion functions. This fixes three tests TestListCorruptFileBlocks, TestListFilesInDFS and TestListFilesInFileContext
> Tests are failing with ClassCastException, due to new protocol changes
> -----------------------------------------------------------------------
>
> Key: HDFS-2687
> URL: https://issues.apache.org/jira/browse/HDFS-2687
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Uma Maheswara Rao G
> Attachments: HDFS-2687.txt
>
>
> https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
> java.lang.ClassCastException: org.apache.hadoop.hdfs.protocol.HdfsFileStatus cannot be cast to org.apache.hadoop.hdfs.protocol.HdfsLocatedFileStatus
> at org.apache.hadoop.hdfs.DistributedFileSystem$1.hasNext(DistributedFileSystem.java:452)
> at org.apache.hadoop.fs.FileSystem$5.hasNext(FileSystem.java:1551)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1581)
> at org.apache.hadoop.fs.FileSystem$5.next(FileSystem.java:1541)
> at org.apache.hadoop.fs.TestListFiles.testDirectory(TestListFiles.java:146)
--
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