[JBoss JIRA] (DROOLS-2440) API gap: KieBase.getGlobalType(String identifier) which returns the class of the global field
by Geoffrey De Smet (JIRA)
Geoffrey De Smet created DROOLS-2440:
----------------------------------------
Summary: API gap: KieBase.getGlobalType(String identifier) which returns the class of the global field
Key: DROOLS-2440
URL: https://issues.jboss.org/browse/DROOLS-2440
Project: Drools
Issue Type: Enhancement
Components: core engine
Affects Versions: 7.6.0.Final
Reporter: Geoffrey De Smet
Assignee: Mario Fusco
…
[View More]
This is needed to avoid try-catching kieSession.setGlobal(...) in for example optaplanner.
This code
{code}
kieSession.setGlobal("scoreHolder", workingScoreHolder);
{code}
throws
{code}
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Illegal class for global. Expected [org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScoreHolder], found [org.optaplanner.core.api.score.buildin.hardsoftlong.HardSoftLongScoreHolder].
at org.drools.core.impl.StatefulKnowledgeSessionImpl.setGlobal(StatefulKnowledgeSessionImpl.java:1189)
at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.resetKieSession(DroolsScoreDirector.java:79)
at org.optaplanner.core.impl.score.director.drools.DroolsScoreDirector.setWorkingSolution(DroolsScoreDirector.java:69)
{code}
because the user didn't align his global field ScoreHolder type with his domain classes score type.
Instead they should get
{code}
IllegalStateException: your global field ScoreHolder type (...) does not align with your domain classes score type (...).
{code}
To do this, we need to have KieBase.getGlobalType("scoreHolder") return HardSoftScoreHolder.class, so I can check it's not equal HardSoftLongScoreHolder.class, during bootstrap, instead of try-catching every setGlobal() call.
Furthermore, I believe this should be added in the public api - it is clearly an api gap. But I can work with adding this in the internal api too.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
[View Less]
6 years, 11 months
[JBoss JIRA] (WFLY-10150) EJB race condition can cause client to be in awaitResponse while server is done
by Lin Gao (JIRA)
[ https://issues.jboss.org/browse/WFLY-10150?page=com.atlassian.jira.plugin... ]
Lin Gao moved JBEAP-14527 to WFLY-10150:
----------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-10150 (was: JBEAP-14527)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: EJB
(was: EJB)
Affects Version/s: (was: 7.1.1.GA)
…
[View More]Fix Version/s: (was: 7.1.3.GA)
> EJB race condition can cause client to be in awaitResponse while server is done
> -------------------------------------------------------------------------------
>
> Key: WFLY-10150
> URL: https://issues.jboss.org/browse/WFLY-10150
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Reporter: Lin Gao
> Assignee: JBoss SET
>
> With a client jboss server1 that has a client servlet that invokes a remote EJB on jboss server2 configured using server to server config in the standalone.xml/domain.xml outbound remoting connection, the client side can get stuck in awaitResponse while the server side has finished processing.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
[View Less]
6 years, 11 months
[JBoss JIRA] (SWSQE-109) Allocate OpenShift and Jenkins resources for Jaeger performance testing
by Kevin Earls (JIRA)
Kevin Earls created SWSQE-109:
---------------------------------
Summary: Allocate OpenShift and Jenkins resources for Jaeger performance testing
Key: SWSQE-109
URL: https://issues.jboss.org/browse/SWSQE-109
Project: Kiali QE
Issue Type: QE Task
Reporter: Kevin Earls
Assignee: Michael Foley
This JIRA is to track what I've mentioned in a few of the Infrastructure team meetings, the need for OpenShift …
[View More]and Jenkins resources to run Jaeger performance tests.
Initial requirements for this are for something similar to what we've been using on the CNCF CI OpenShift, which is an "Intel E3-1240 v3" with 32g of memory and 250g of ssd. Longer term this will need to grow, although I don't really have any idea at this point what requirements will be. Perhaps Jaeger testing and Kiali/Istio testing can use the same resources.
As this is required for performance testing whatever resources we use will need to be isolated from other OpenShift users so that test results are repeatable.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
[View Less]
6 years, 11 months