hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tian Hong Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-4681) TestBlocksWithNotEnoughRacks#testCorruptBlockRereplicatedAcrossRacks fails using IBM java
Date Wed, 10 Apr 2013 07:42:15 GMT

     [ https://issues.apache.org/jira/browse/HDFS-4681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tian Hong Wang updated HDFS-4681:
---------------------------------

    Description: 
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)




  was:
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.



    
> 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
>              Labels: patch
>             Fix For: 2.0.3-alpha
>
>         Attachments: HDFS-4681.patch
>
>
> 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)

--
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

Mime
View raw message