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

Clearer error message for ReplicaNotFoundException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • hdfs
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: