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

libhdfs should never exit on its own but rather return errors to the calling application

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.19.0
    • None
    • None
    • Incompatible change, Reviewed
    • Hide
      Modified libhdfs to return NULL or error code when unrecoverable error occurs rather than exiting itself.
      Show
      Modified libhdfs to return NULL or error code when unrecoverable error occurs rather than exiting itself.

    Description

      A a library, libhdfs would be better to return errors rather than directly exiting. This way the calling application can determine what to do on error. And it is more unix library like to handle errors this way.

      Some applications like fuse-dfs need to handle the exit themselves after emitting an appropriate error message to its log.

      Attachments

        1. patch0.txt
          11 kB
          Pete Wyckoff
        2. patch1.txt
          7 kB
          Pete Wyckoff

        Issue Links

          Activity

            People

              wyckoff Pete Wyckoff
              wyckoff Pete Wyckoff
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: