Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-738

Using IoEventQueueThrottler with a WriteRequestFilter can lead to hangs

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0-M6
    • None
    • Filter
    • None

    Description

      The javadoc for WriteRequestFilter shows an example using IoEventQueueThrottler to throttle writes. First issue is that IoEventQueueThrottler is not well documented, I'd assumed it was throttling number of messages, instead its threshold is number of bytes. Second issue is that if a message estimated length is less than the threshold then the write hangs, even with an async executor in the chain.

      Emmanuel Lécharny also wrote:
      FYI, the counter (threshold) is never decreased.

      To be frank, this is not a piece of code I know, but from what I see, it's extremely dubious that it does something useful, and most likely to block forever.

      I would suggest not to use this

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            djd Daniel John Debrunner

            Dates

              Created:
              Updated:

              Slack

                Issue deployment