Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-8896

Wrong javadoc for TcpCommunicationSpi.setSlowClientQueueLimit()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.5
    • 2.8
    • None

    Description

      Javadoc for TcpCommunicationSpi.setSlowClientQueueLimit() says that is should be set to value equal to TcpCommunicationSpi.getMessageQueueLimit().

      But this is wrong, because first checks back pressure limit and sender thread will be blocked before slow client check. Also, warning checks the value correctly, but message should be "...greater or equal...":

      if (slowClientQueueLimit > 0 && msgQueueLimit > 0 && slowClientQueueLimit >= msgQueueLimit) {
                  U.quietAndWarn(log, "Slow client queue limit is set to a value greater than message queue limit " +
                      "(slow client queue limit will have no effect) [msgQueueLimit=" + msgQueueLimit +
                      ", slowClientQueueLimit=" + slowClientQueueLimit + ']');
              }
      

      Attachments

        Activity

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

          People

            RodionVl Rodion
            dkarachentsev Dmitry Karachentsev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment