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

Ozone: Fix swallow exceptions which makes hard to debug failures

    XMLWordPrintableJSON

Details

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

    Description

      There are some places that swallow exceptions that makes client hard to debug the failure. For example, if we get xceiver client from xceiver client manager error, client only gets the error info like this:

      org.apache.hadoop.ozone.web.exceptions.OzoneException: Exception getting XceiverClient.
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:119)
      	at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createUsingDefault(StdValueInstantiator.java:243)
      

      The error exception stack is missing. We should print the error log as well.

      Attachments

        1. HDFS-12583-HDFS-7240.004.patch
          7 kB
          Yiqun Lin
        2. HDFS-12583-HDFS-7240.003.patch
          4 kB
          Yiqun Lin
        3. HDFS-12583-HDFS-7240.002.patch
          3 kB
          Yiqun Lin
        4. HDFS-12583-HDFS-7240.001.patch
          5 kB
          Yiqun Lin

        Activity

          People

            linyiqun Yiqun Lin
            linyiqun Yiqun Lin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: