Apache S4
  1. Apache S4
  2. S4-14

Listener.recv() behavior when interrupted

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Labels:
      None

      Description

      Currently, different listeners behave differently on receiving an InterruptedException while blocking on recv(). Some return null, while some throw a RuntimeException.

      I feel returning a null makes more sense - (1) There might be cases requiring a subsequent call to recv(), (2) Easier to understand/analyze for the application-programmer.

      Comments?

        Activity

        Karthik Kambatla created issue -
        Matthieu Morel made changes -
        Field Original Value New Value
        Fix Version/s 0.5 [ 12318653 ]
        Affects Version/s 0.5 [ 12318653 ]
        Hide
        Karthik Kambatla added a comment -

        Modified UDP and Netty Listners to return null, and also added documentation to the Listener interace.

        Show
        Karthik Kambatla added a comment - Modified UDP and Netty Listners to return null, and also added documentation to the Listener interace.
        Karthik Kambatla made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Tony Stevenson made changes -
        Workflow jira [ 12638651 ] no-reopen-closed, patch-avail [ 12711315 ]

          People

          • Assignee:
            Karthik Kambatla
            Reporter:
            Karthik Kambatla
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development