[JBoss JIRA] (JGRP-2166) Attributes should also be set via environment variables
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-2166?page=com.atlassian.jira.plugin.... ]
Bela Ban resolved JGRP-2166.
----------------------------
Resolution: Done
> Attributes should also be set via environment variables
> -------------------------------------------------------
>
> Key: JGRP-2166
> URL: https://issues.jboss.org/browse/JGRP-2166
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 4.0.2
>
>
> Currently, an attribute such as {{mcast_port=$\{my.mcast_port:7500\}}} is set to 7500 by default. If there is a system property {{my.mcast_port}}, it will override the port.
> We should also look for environment values; the precedence would be
> * If there is a system property, use it
> * If not, if there is an environment variable, use it // this is new
> * Else use the configured value (e.g. 7500)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (JGRP-2166) Attributes should also be set via environment variables
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-2166?page=com.atlassian.jira.plugin.... ]
Bela Ban commented on JGRP-2166:
--------------------------------
Here's how {{mcast_port=$\{my.mcast_port,MCAST_PORT:7500\}}} will get substituted:
* If neither {{my.mcast_port}} system property nor {{MCAST_PORT}} environment variable are set, {{mcast_port}} will be 7500
* If system property {{my.mcast_port}} is set to P, {{mcast_port}} will be P
* If system property {{my.mcast_port}} is not set, but env var {{MCAST_PORT}} is set to M, {{mcast_port}} will be M
> Attributes should also be set via environment variables
> -------------------------------------------------------
>
> Key: JGRP-2166
> URL: https://issues.jboss.org/browse/JGRP-2166
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 4.0.2
>
>
> Currently, an attribute such as {{mcast_port=$\{my.mcast_port:7500\}}} is set to 7500 by default. If there is a system property {{my.mcast_port}}, it will override the port.
> We should also look for environment values; the precedence would be
> * If there is a system property, use it
> * If not, if there is an environment variable, use it // this is new
> * Else use the configured value (e.g. 7500)
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (DROOLS-1532) Regression in incremental compilation
by Mario Fusco (JIRA)
Mario Fusco created DROOLS-1532:
-----------------------------------
Summary: Regression in incremental compilation
Key: DROOLS-1532
URL: https://issues.jboss.org/browse/DROOLS-1532
Project: Drools
Issue Type: Bug
Components: core engine
Reporter: Mario Fusco
Assignee: Mario Fusco
The introduction of the parallel engine has caused a regression in the incremental compilation as evidenced by the org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testOr2 turtle test
{code}
java.lang.AssertionError: Expected results are different than actual after operations:
1. CREATE_SESSION: [ package com.rules;
global java.util.List list
rule R1
when
Integer()
then
list.add('R1');
end, package com.rules;
global java.util.List list
rule R2
when
$k: Integer()
( Integer(this != 1) or Integer(this == 1) )
then
list.add('R2');
end]
2. INSERT_FACTS: [1]
3. FIRE_RULES
4. CHECK_RESULTS: [R1, R2]
5. REMOVE_RULES: [R2]
6. FIRE_RULES
7. CHECK_RESULTS: []
8. REMOVE_RULES: [R1]
9. FIRE_RULES
10. CHECK_RESULTS: []
11. ADD_RULES: [ package com.rules;
global java.util.List list
rule R2
when
$k: Integer()
( Integer(this != 1) or Integer(this == 1) )
then
list.add('R2');
end]
12. FIRE_RULES
Expected results:
[R2 ]
Actual results:
[]
at org.junit.Assert.fail(Assert.java:88)
at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.checkResults(TestContext.java:210)
at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.executeTestOperation(TestContext.java:108)
at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.executeTestOperations(TestContext.java:72)
at org.drools.compiler.integrationtests.incrementalcompilation.AbstractAddRemoveRulesTest.runAddRemoveTest(AbstractAddRemoveRulesTest.java:110)
at org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testOr2(AddRemoveRulesTest.java:2332)
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years