Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13985

Clearer error message for ReplicaNotFoundException

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: hdfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The issue is that we came across a ReplicaNotFoundException in a bug report, the most informative thing we could get is "Replica not found for [ExtendedBlock]". If someone tries to investigate cases including ReplicaNotFoundExceptions should review diagnostic bundles, dig through logs, but as a starting point enhancing the exception message would boost this process, and be beneficial in the long run.

      More concretely, it would be helpful if any of the following information was displayed along with the exception: file's name, replication factor or block location.

        Attachments

        1. HDFS-13985.003.patch
          2 kB
          Adam Antal
        2. HDFS-13985.002.patch
          2 kB
          Adam Antal
        3. HDFS-13985.002.patch
          2 kB
          Adam Antal
        4. HDFS-13985.001.patch
          2 kB
          Adam Antal

          Activity

            People

            • Assignee:
              adam.antal Adam Antal
              Reporter:
              adam.antal Adam Antal
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: