]
ehsavoie Hugonnet commented on WFCORE-510:
------------------------------------------
Since the Query op was not defined as read-only then a 2 steps operation was run against
the domain thus using the coordinator's result instead of the local ones which made
the post filtering not working.
Setting the Query operation as read-only fixed it.
Fix filtering in domain mode
----------------------------
Key: WFCORE-510
URL:
https://issues.jboss.org/browse/WFCORE-510
Project: WildFly Core
Issue Type: Sub-task
Components: Domain Management
Reporter: Harald Pehl
Assignee: ehsavoie Hugonnet
Fix For: 1.0.0.Beta1
The overall result for query operations in domain mode does not filter undefined results.
Executing the following operation, will yield three results. However the last result needs
to be filtered:
{code}
[domain@localhost:9990 /] /host=master/server-config=*:query(select=[name, status,
auto-start], where={auto-start=>true})
{
"outcome" => "success",
"result" => [
{
"address" => [
("host" => "master"),
("server-config" => "server-one")
],
"outcome" => undefined,
"result" => {
"name" => "server-one",
"status" => "STARTED",
"auto-start" => true
}
},
{
"address" => [
("host" => "master"),
("server-config" => "server-two")
],
"outcome" => undefined,
"result" => {
"name" => "server-two",
"status" => "STARTED",
"auto-start" => true
}
},
{
"address" => [
("host" => "master"),
("server-config" => "server-three")
],
"outcome" => undefined,
"result" => undefined
}
],
"server-groups" => undefined
}
{code}