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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.19.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      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. patch1.txt
          7 kB
          Pete Wyckoff
        2. patch0.txt
          11 kB
          Pete Wyckoff

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: