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

TestFileCorruption fails with ArrayIndexOutOfBoundsException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: