mirror of https://github.com/apache/activemq.git
Fix for https://issues.apache.org/jira/browse/AMQ-4309 Add usage limit check when limit for destinations is present
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1445474 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2a64e88bd0
commit
2c3d947b69
|
@ -295,6 +295,10 @@ public abstract class Usage<T extends Usage> implements Service {
|
||||||
if (started.compareAndSet(false, true)){
|
if (started.compareAndSet(false, true)){
|
||||||
if (parent != null) {
|
if (parent != null) {
|
||||||
parent.addChild(this);
|
parent.addChild(this);
|
||||||
|
if(getLimit() > parent.getLimit()) {
|
||||||
|
LOG.info("Usage({}) limit={} should be smaller than its parent limit={}",
|
||||||
|
new Object[]{getName(), getLimit(), parent.getLimit()});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (T t:children) {
|
for (T t:children) {
|
||||||
t.start();
|
t.start();
|
||||||
|
|
Loading…
Reference in New Issue