]
Radoslav Husar updated MODCLUSTER-585:
--------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
mod_cluster excluded-contexts doesn't exclude slash prefixed
/contexts; should perform normalization
----------------------------------------------------------------------------------------------------
Key: MODCLUSTER-585
URL:
https://issues.jboss.org/browse/MODCLUSTER-585
Project: mod_cluster
Issue Type: Bug
Components: Core & Container Integration (Java)
Affects Versions: 2.0.0.Alpha1, 1.3.6.Final
Reporter: Radoslav Husar
Assignee: Radoslav Husar
Test instructions for WildFly:
{noformat}
[rhusar@syrah wildfly-11.0.0.Beta1-SNAPSHOT]$ ./bin/jboss-cli.sh -c
[standalone@localhost:9990 /]
/subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:/clusterbench"
{"outcome" => "success"}
[standalone@localhost:9990 /] :reload
{
"outcome" => "success",
"result" => undefined
}
[standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
{
"outcome" => "success",
"result" => [
"localhost:9090",
"Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port:
8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read:
0,Transfered: 0,Connected: 0,Load: 73
Vhost: [1:1:1], Alias: localhost
Vhost: [1:1:2], Alias: default-host
Context: [1:1:1], Context: /wildfly-services, Status: ENABLED
Context: [1:1:2], Context: /clusterbench-passivating, Status: ENABLED
Context: [1:1:3], Context: /tmp, Status: ENABLED
Context: [1:1:4], Context: /, Status: ENABLED
Context: [1:1:5], Context: /clusterbench, Status: ENABLED
"
]
}
[standalone@localhost:9990 /]
/subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=excluded-contexts,value="default-host:clusterbench"
{
"outcome" => "success",
"response-headers" => {
"operation-requires-reload" => true,
"process-state" => "reload-required"
}
}
[standalone@localhost:9990 /] :reload
{
"outcome" => "success",
"result" => undefined
}
[standalone@localhost:9990 /] /subsystem=modcluster/:read-proxies-info
{
"outcome" => "success",
"result" => [
"localhost:9090",
"Node: [1],Name: node1,Balancer: mycluster,LBGroup: ,Host: 127.0.0.1,Port:
8009,Type: ajp,Flushpackets: Off,Flushwait: 10,Ping: 10,Smax: 26,Ttl: 60,Elected: 0,Read:
0,Transfered: 0,Connected: 0,Load: 69
Vhost: [1:1:1], Alias: localhost
Vhost: [1:1:2], Alias: default-host
Context: [1:1:2], Context: /tmp, Status: ENABLED
Context: [1:1:3], Context: /clusterbench-passivating, Status: ENABLED
Context: [1:1:4], Context: /wildfly-services, Status: ENABLED
Context: [1:1:5], Context: /, Status: ENABLED
"
]
}
{noformat}