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

RPC server should log exceptions that are not sent to client.

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • ipc
    • None

    Description

      RPC server logs and sends the exceptions that occur inside the call. But if there is an exception during construction of objects, the exception is not logged. Clients just see EOF because server closes the connection.

      I got bitten by this since couple of my objects did not have default constructors (and same case if readFields() throws an NPE). This is a silly mistake on my part but I think it is easy to make the mistake but hard to see where the problem is.

      Server can still close the connection but should log it at the server.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            rangadi Raghu Angadi

            Dates

              Created:
              Updated:

              Slack

                Issue deployment