Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-953

withQueueWatermarks always throws exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: Engine
    • Labels:
      None

      Description

      Following code snippet:
      {{
      int lower = 10;
      int upper = 20;
      return SocketAcceptor.newBuilder()
      .withQueueWatermarks(lower, upper)
      .build();
      }}

      always ends up with exception:

      {{
      11:15:17 Caused by: quickfix.ConfigError: invalid queue watermarks, required: 0 <= lower watermark < upper watermark
      11:15:17 at quickfix.AbstractSessionConnectorBuilder.withQueueWatermarks(AbstractSessionConnectorBuilder.java:58)
      }}}

      Method withQueueWatermarks should verify parameters instead of class fields.

        Attachments

          Activity

            People

            • Assignee:
              balawama Mariusz B
              Reporter:
              balawama Mariusz B
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: