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 Improvement
    • Status: Closed
    • Priority: Minor 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.

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

        Issue Links

          Activity

          Pete Wyckoff created issue -
          Pete Wyckoff made changes -
          Field Original Value New Value
          Attachment patch0.txt [ 12388337 ]
          Pete Wyckoff made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Pete Wyckoff made changes -
          Assignee Pete Wyckoff [ wyckoff ]
          Owen O'Malley made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Pete Wyckoff made changes -
          Link This issue is blocked by HADOOP-3968 [ HADOOP-3968 ]
          Pete Wyckoff made changes -
          Attachment patch1.txt [ 12389619 ]
          Pete Wyckoff made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Pete Wyckoff made changes -
          Fix Version/s 0.19.0 [ 12313211 ]
          dhruba borthakur made changes -
          Hadoop Flags [Incompatible change] [Incompatible change, Reviewed]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Robert Chansler made changes -
          Release Note libhdfs modified to return NULL or error code when unrecoverable error occurs rather than exiting itself.
          Modified libhdfs to return NULL or error code when unrecoverable error occurs rather than exiting itself.
          Hadoop Flags [Reviewed, Incompatible change] [Incompatible change, Reviewed]
          Nigel Daley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Owen O'Malley made changes -
          Component/s libhdfs [ 12311345 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development