[JBoss JIRA] (JGRP-1734) Probe: restrict requests to certain clusters and/or nodes
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1734?page=com.atlassian.jira.plugin.... ]
Bela Ban commented on JGRP-1734:
--------------------------------
Probe requests are actually dropped *at the server side* if the cluster name doesn't match
> Probe: restrict requests to certain clusters and/or nodes
> ---------------------------------------------------------
>
> Key: JGRP-1734
> URL: https://issues.jboss.org/browse/JGRP-1734
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Optional
> Fix For: 3.4.1, 3.5
>
>
> Probe.sh broadcasts requests to all reachable nodes in any cluster. The only way to restrict the reach of a probe request is to pass a time-to-live to it, but that's (a) too coarse-grained and (b) doesn't work for TCP.
> We should therefore be able to define a list of clusters and a list of nodes to which we want to restrict the request. Both clusters and nodes should be simple regexps.
> The filter is sent with the probe request. Nodes which don't pass the filter simply discard the request.
> Example:
> {noformat}
> probe.sh -cluster DrawCluster,cluster-*{noformat}
> This restricts the request to the {{DrawCluster}} and any cluster starting with {{cluster-}}.
> {noformat}
> probe.sh -nodes cluster-*
> {noformat}
> Sends the request only to nodes with a name starting with {{cluster}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (DROOLS-460) Eval does not behave as intended
by Fabian Meyer (JIRA)
[ https://issues.jboss.org/browse/DROOLS-460?page=com.atlassian.jira.plugin... ]
Fabian Meyer updated DROOLS-460:
--------------------------------
Steps to Reproduce:
package org.example;
import java.util.Date;
declare Thing
end
declare IDProperty
subject : Thing
object : int
end
declare StatusEvent
@role(event)
@timestamp(timestamp)
thingId : int
timestamp : Date
end
rule init
when
then
Thing t = new Thing();
insert (t);
insert (new IDProperty(t, 1));
insert (new StatusEvent(1, new Date(0)));
insert (new StatusEvent(1, new Date(1)));
end
rule notLast1
when
$t : Thing()
IDProperty(subject == $t, $id : object)
// Constraint
$ev : StatusEvent(thingId == $id)
exists(
// Constraint
StatusEvent(this after $ev, $id == thingId)
)
then
System.out.println("(1) not last " + $ev);
end
rule notLast2
when
$t : Thing()
IDProperty(subject == $t, $id : object)
// Constraint
$ev : StatusEvent(thingId == $id)
exists(
// Eval
StatusEvent(this after $ev, $evId : thingId)
and
eval($evId == $id)
)
then
System.out.println("(2) not last " + $ev);
end
rule notLast3
when
$t : Thing()
IDProperty(subject == $t, $id : object)
// Eval
$ev : StatusEvent()
eval($ev.getThingId() == $id)
exists(
// Constraint
StatusEvent(this after $ev, $id == thingId)
)
then
System.out.println("(3) not last " + $ev);
end
rule notLast4
when
$t : Thing()
IDProperty(subject == $t, $id : object)
// Eval
$ev : StatusEvent()
eval($ev.getThingId() == $id)
exists(
// Eval
StatusEvent(this after $ev, $evId : thingId)
and
eval($evId == $id)
)
then
System.out.println("(4) not last " + $ev);
end
Output:
(1) not last StatusEvent( thingId=1, timestamp=Thu Jan 01 01:00:00 CET 1970 )
(2) not last StatusEvent( thingId=1, timestamp=Thu Jan 01 01:00:00 CET 1970 )
(3) not last StatusEvent( thingId=1, timestamp=Thu Jan 01 01:00:00 CET 1970 )
Rule "notLast4" doesn't fire
was:
package org.example;
import java.util.Date;
declare Thing
end
declare IDProperty
subject : Thing
object : int
end
declare StatusEvent
@role(event)
@timestamp(timestamp)
thingId : int
timestamp : Date
end
rule init
when
then
Thing t = new Thing();
insert (t);
insert (new IDProperty(t, 1));
insert (new StatusEvent(1, new Date(0)));
insert (new StatusEvent(1, new Date(1)));
end
rule notLast1
when
$t : Thing()
IDProperty(subject == $t, $id : object)
// Constraint
$ev : StatusEvent(thingId == $id)
exists(
// Constraint
StatusEvent(this after $ev, $id == thingId)
)
then
System.out.println("(1) not last " + $ev);
end
rule notLast2
when
$t : Thing()
IDProperty(subject == $t, $id : object)
// Constraint
$ev : StatusEvent(thingId == $id)
exists(
// Eval
StatusEvent(this after $ev, $evId : thingId)
and
eval($evId == $id)
)
then
System.out.println("(2) not last " + $ev);
end
rule notLast3
when
$t : Thing()
IDProperty(subject == $t, $id : object)
// Eval
$ev : StatusEvent()
eval($ev.getThingId() == $id)
exists(
// Constraint
StatusEvent(this after $ev, $id == thingId)
)
then
System.out.println("(3) not last " + $ev);
end
rule notLast4
when
$t : Thing()
IDProperty(subject == $t, $id : object)
// Eval
$ev : StatusEvent()
eval($ev.getThingId() == $id)
exists(
// Eval
StatusEvent(this after $ev, $evId : thingId)
and
eval($evId == $id)
)
then
System.out.println("(4) not last " + $ev);
end
Output:
(1) not last StatusEvent( thingId=1, timestamp=Thu Jan 01 01:00:00 CET 1970 )
(2) not last StatusEvent( thingId=1, timestamp=Thu Jan 01 01:00:00 CET 1970 )
(3) not last StatusEvent( thingId=1, timestamp=Thu Jan 01 01:00:00 CET 1970 )
Rule "notLast4" doesn't fire
> Eval does not behave as intended
> --------------------------------
>
> Key: DROOLS-460
> URL: https://issues.jboss.org/browse/DROOLS-460
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 6.1.0.Final
> Reporter: Fabian Meyer
> Assignee: Mark Proctor
>
> Under certain conditions, eval does not behave as intended, when nested in a sub-network.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (DROOLS-460) Eval does not behave as intended
by Fabian Meyer (JIRA)
Fabian Meyer created DROOLS-460:
-----------------------------------
Summary: Eval does not behave as intended
Key: DROOLS-460
URL: https://issues.jboss.org/browse/DROOLS-460
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 6.1.0.Final
Reporter: Fabian Meyer
Assignee: Mark Proctor
Under certain conditions, eval does not behave as intended, when nested in a sub-network.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (WFLY-3196) Confusing IllegalStateException: WELD-000340: A request must be associated with the context when mixing JSF/CDI
by Stuart Douglas (JIRA)
[ https://issues.jboss.org/browse/WFLY-3196?page=com.atlassian.jira.plugin.... ]
Stuart Douglas reassigned WFLY-3196:
------------------------------------
Assignee: Jozef Hartinger (was: Stuart Douglas)
> Confusing IllegalStateException: WELD-000340: A request must be associated with the context when mixing JSF/CDI
> ---------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-3196
> URL: https://issues.jboss.org/browse/WFLY-3196
> Project: WildFly
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: CDI / Weld, JSF
> Affects Versions: 8.0.0.Final
> Environment: [clock-jsf-test 846]$ uname -a
> Darwin scotts-imac 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
> [clock-jsf-test 847]$ java -version
> java version "1.8.0"
> Java(TM) SE Runtime Environment (build 1.8.0-b132)
> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
> Also seen with:
> java version "1.7.0_45"
> Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
> Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
> Reporter: Scott Stark
> Assignee: Jozef Hartinger
>
> I have a simple web app doing injection into a JSF managed bean using @EJB. When the managed bean lifecycle and duration is described using the JSF @ManagedBean and @ApplicationScoped I get a "IllegalStateException: WELD-000340 ..." error when loading the welcome page. The only workaround I have seen is to disable implicit CDI usage, but the web app is using CDI, so that is not appropriate.
> The problem seems to be a lack of understanding what is going on between the weld and jsf containers. I understand that the JSF @ManagedBean is deprecated in favor of CDI @Named, but it would be nice if we can provide better feedback when @ManagedBean is used along with CDI.
> The following git repo provides a complete test application along with the steps to cause the error as well as how to fix it by only using CDI annotations.
> https://github.com/starksm64/clock-jsf-test
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months
[JBoss JIRA] (WFLY-3196) Confusing IllegalStateException: WELD-000340: A request must be associated with the context when mixing JSF/CDI
by Scott Stark (JIRA)
Scott Stark created WFLY-3196:
---------------------------------
Summary: Confusing IllegalStateException: WELD-000340: A request must be associated with the context when mixing JSF/CDI
Key: WFLY-3196
URL: https://issues.jboss.org/browse/WFLY-3196
Project: WildFly
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: CDI / Weld, JSF
Affects Versions: 8.0.0.Final
Environment: [clock-jsf-test 846]$ uname -a
Darwin scotts-imac 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
[clock-jsf-test 847]$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
Also seen with:
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
Reporter: Scott Stark
Assignee: Stuart Douglas
I have a simple web app doing injection into a JSF managed bean using @EJB. When the managed bean lifecycle and duration is described using the JSF @ManagedBean and @ApplicationScoped I get a "IllegalStateException: WELD-000340 ..." error when loading the welcome page. The only workaround I have seen is to disable implicit CDI usage, but the web app is using CDI, so that is not appropriate.
The problem seems to be a lack of understanding what is going on between the weld and jsf containers. I understand that the JSF @ManagedBean is deprecated in favor of CDI @Named, but it would be nice if we can provide better feedback when @ManagedBean is used along with CDI.
The following git repo provides a complete test application along with the steps to cause the error as well as how to fix it by only using CDI annotations.
https://github.com/starksm64/clock-jsf-test
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 10 months