Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12489

Ozone: OzoneRestClientException swallows exceptions which makes client hard to debug failures

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • HDFS-7240
    • ozone
    • Reviewed

    Description

      There are multiple try-catch places swallow exceptions when transforming some other exception to OzoneRestClientException. As a result, when client runs into such code paths, they lose track of what was going on which makes the debug extremely difficult. See below example

      bin/hdfs oz -listBucket  http://15oz1.fyre.ibm.com:9864/vol-0-84022 -user wwei
      Command Failed : {"httpCode":0,"shortMessage":"Read timed out","resource":null,"message":"Read timed out","requestID":null,"hostName":null}
      

      the returned message doesn't help much on debugging where and how it reads timed out.

      Attachments

        1. HDFS-12489-HDFS-7240.001.patch
          14 kB
          Weiwei Yang
        2. HDFS-12489-HDFS-7240.002.patch
          14 kB
          Weiwei Yang

        Activity

          People

            cheersyang Weiwei Yang
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: