You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Tian Hong Wang (JIRA)" <ji...@apache.org> on 2013/04/10 09:38:17 UTC

[jira] [Created] (HDFS-4681) TestBlocksWithNotEnoughRacks#testCorruptBlockRereplicatedAcrossRacks fails using IBM java

Tian Hong Wang created HDFS-4681:
------------------------------------

             Summary: TestBlocksWithNotEnoughRacks#testCorruptBlockRereplicatedAcrossRacks fails using IBM java
                 Key: HDFS-4681
                 URL: https://issues.apache.org/jira/browse/HDFS-4681
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: test
            Reporter: Tian Hong Wang
             Fix For: 2.0.3-alpha


TestBlocksWithNotEnoughRacks unit test fails with the following error message:
--------------------------------------------------------------------------------------------
testCorruptBlockRereplicatedAcrossRacks(org.apache.hadoop.hdfs.server.blockmanagement.TestBlocksWithNotEnoughRacks)  Time elapsed: 8997 sec  <<< FAILURE!
org.junit.ComparisonFailure: Corrupt replica expected:<...��^EI�u�[�{���[$�\hF�[�R{O�L^S��g�#�O��׼��Wv��6u4Hd)FaŔ��^W�0��H/�^ZU^@�6�<02>���":)$�{|�^@�-���|GvW��7g �/M��[U!eF�>^N^?�4pR�d��|��Ŵ7j^O^Sh�^@�nu�(�^C^Y�;I�Q�K^O����"c���   oKtE�*�����^\3u��]Ē:mŭ^^y�����^H��_^T�^Z����S����4�7�C�^G�_���\|^W�vo���zgU�lmJ)_vq~�+^Mo^G^O�W}�.�4����        ��6b�S�&G�^?��m4FW#^@����
D5��}�^Z�^]���mfR^G#T-�N��̋�p���`�~��`�^F;�^C]> but was:<...��^EI�u�[�{���[$�\hF�[R{O�L^S��g�#�O��׼��Wv��6u4Hd)FaŔ��^W�0��H/�^ZU^@�6�<02>�":)$�{|�^@�-���|GvW��7g �/M�[U!eF�>^N^?�4pR�d��|��Ŵ7j^O^Sh�^@�nu�(�^C^Y�;I�Q�K^O����"c���      oKtE�*�����^\3u��]Ē:mŭ^^y���^H��_^T�^Z����S���4�7�C�^G�_���\|^W�vo���zgU�lmJ)_vq~�+^Mo^G^O�W}�.�4����   ��6b�S�&G�^?��m4FW#^@����
D5��}�^Z�^]���mfR^G#T-�N�̋�p���`�~��`�^F;�]>
        at org.junit.Assert.assertEquals(Assert.java:123)
        at org.apache.hadoop.hdfs.server.blockmanagement.TestBlocksWithNotEnoughRacks.testCorruptBlockRereplicatedAcrossRacks(TestBlocksWithNotEnoughRacks.java:229)


The root cause is that the unit test code uses in.read() method to read the block content char by char., which will abandon the LF. So the best way is to use buffer to read the block content.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira