You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a Dynamic config, the Tsa.licenseAll() method (which updates the Tsa ports with proxied ports in case of a using a disruption controller) is never called.
Therefore the Tsa is not updated with proxied ports, and the disruption controller instance gives a NPE
See this failing test:
I used to call tsa.updateToProxiedPorts explicitly in test and use those ports to change public host ports to test client to server disruption in Dynamic cluster. Something like -
Tsa tsa = factory.tsa().startAll().activateAll();
Map<ServerSymbolicName, Integer> proxyTsaPorts = tsa.updateToProxiedPorts();
TerracottaServer terracottaServer = tsa.getActive();
int proxyPort = proxyTsaPorts.get(terracottaServer.getServerSymbolicName());
ConfigToolExecutionResult result = tsa.configTool(terracottaServer).executeCommand("set", "-s", "localhost:" + terracottaServer.getTsaPort(),
"-c", "stripe.1.node.1.node-public-hostname=localhost", "-c", "stripe.1.node.1.node-public-port=" + proxyPort);
When using a Dynamic config, the Tsa.licenseAll() method (which updates the Tsa ports with proxied ports in case of a using a disruption controller) is never called.
Therefore the Tsa is not updated with proxied ports, and the disruption controller instance gives a NPE
See this failing test:
The text was updated successfully, but these errors were encountered: