Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-8161

Incorrect validation for page-limit settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None

      From the user's mailing list...

      We started using <page-limit-bytes> starting 2.28.0 version however there seems to be some mismatch as to what is in docs and the max value expected for this.

      ...

      From the docs, the example snippet has <page-limit-bytes>10G</page-limit-bytes>, however when we tried to set 2G it fails with error.

      Integer.MAX_VALUE can only support < 2G

      so is this an issue with validation alone?

      java.lang.IllegalArgumentException: AMQ229227: page-limit-bytes  must be equals to -1 or greater than 0 and less than or equal to Integer.MAX_VALUE (actual value: 2147483648)
      at org.apache.activemq.artemis.core.config.impl.Validators$11.validate(Validators.java:159)
      ~[artemis-server-2.28.0.jar:2.28.0]

              rhn-support-jbertram Justin Bertram
              rh-messaging-ci Messaging CI
              Samuel Gajdos Samuel Gajdos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: