ActiveMQ
  1. ActiveMQ
  2. AMQ-4309

Add usage limit check when limit for destinations is present

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.x
    • Fix Version/s: 5.9.0
    • Component/s: Broker
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Since the usage limit is hierarchical so usage children should respect the parent usage limit.
      When usage limit value is greater than its parent,uses shoud be aware of the improper configuration.
      For example when I specify the usage limit for destinations and their value are all greater than the parent limit(here is broker's limit), the broker starts up silently and I do not know the improper configuration at all.

      A simple patch is provided that will check its limit and its parent limit and logs complaint when usage is started.

        Activity

        SuoNayi created issue -
        SuoNayi made changes -
        Field Original Value New Value
        Attachment Usage.java.patch [ 12568925 ]
        SuoNayi made changes -
        Description Since the usage limit is hierarchical so usage children should respect the parent usage limit.
        When usage limit value is greater than its parent,uses shoud be aware for the improper configuration.
        For example when I specify the usage limit for destinations and their value are all greater than the parent limit(here is broker's limit), the broker starts up silently and I do not know the improper configuration at all.

        A simple patch is provided that will check its limit and its parent limit and logs complaint when usage is started.
        Since the usage limit is hierarchical so usage children should respect the parent usage limit.
        When usage limit value is greater than its parent,uses shoud be aware of the improper configuration.
        For example when I specify the usage limit for destinations and their value are all greater than the parent limit(here is broker's limit), the broker starts up silently and I do not know the improper configuration at all.

        A simple patch is provided that will check its limit and its parent limit and logs complaint when usage is started.
        Hide
        Christian Posta added a comment -

        Fix with r1445474, thanks for the patch!

        Show
        Christian Posta added a comment - Fix with r1445474, thanks for the patch!
        Christian Posta made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 1h 15m 1 Christian Posta 13/Feb/13 05:19

          People

          • Assignee:
            Unassigned
            Reporter:
            SuoNayi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development