Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1443

TestFileCorruption fails with ArrayIndexOutOfBoundsException

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.14.0
    • None
    • None

    Description

      org.apache.hadoop.dfs.TestFileCorruption.testFileCorruption failed once on Windows with this exception:

      org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.lang.ArrayIndexOutOfBoundsException: 1
      at org.apache.hadoop.dfs.FSNamesystem.getBlockLocations(FSNamesystem.java:472)
      at org.apache.hadoop.dfs.FSNamesystem.getBlockLocations(FSNamesystem.java:436)
      at org.apache.hadoop.dfs.NameNode.getBlockLocations(NameNode.java:272)
      at org.apache.hadoop.dfs.NameNode.open(NameNode.java:259)
      at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:341)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:567)

      at org.apache.hadoop.ipc.Client.call(Client.java:471)
      at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:165)
      at org.apache.hadoop.dfs.$Proxy0.open(Unknown Source)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
      at org.apache.hadoop.dfs.$Proxy0.open(Unknown Source)
      at org.apache.hadoop.dfs.DFSClient$DFSInputStream.openInfo(DFSClient.java:590)
      at org.apache.hadoop.dfs.DFSClient$DFSInputStream.<init>(DFSClient.java:582)
      at org.apache.hadoop.dfs.DFSClient.open(DFSClient.java:273)
      at org.apache.hadoop.dfs.DistributedFileSystem$RawDistributedFileSystem.open(DistributedFileSystem.java:136)
      at org.apache.hadoop.fs.ChecksumFileSystem$FSInputChecker.<init>(ChecksumFileSystem.java:114)
      at org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:340)
      at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:234)
      at org.apache.hadoop.dfs.DFSTestUtil.checkFiles(DFSTestUtil.java:132)
      at org.apache.hadoop.dfs.TestFileCorruption.testFileCorruption(TestFileCorruption.java:66)

      Attachments

        1. 1443.patch
          0.5 kB
          Dhruba Borthakur
        2. EmptyFile.patch
          5 kB
          Konstantin Shvachko

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shv Konstantin Shvachko
            nidaley Nigel Daley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment