[
https://issues.apache.org/jira/browse/GEODE-7477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16979526#comment-16979526
]
ASF subversion and git services commented on GEODE-7477:
--------------------------------------------------------
Commit 2e04da382682162da4622b3af5d2847094e541aa in geode's branch
refs/heads/develop from Eric Shu
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=2e04da3 ]
GEODE-7477: Allow tests to test different client/server settings. (#4352)
* Currently only proxy session region is being tested. We should be able to
test caching proxy as well for Tomcat as caching proxy is the default
setting.
> In Geode session management for Tomcat module, the default setting of
> enableLocalCache for client/server is true -- but current tests can only test
> when the setting is false case
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: GEODE-7477
> URL: https://issues.apache.org/jira/browse/GEODE-7477
> Project: Geode
> Issue Type: Bug
> Components: http session
> Reporter: Eric Shu
> Assignee: Eric Shu
> Priority: Major
> Labels: GeodeCommons
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Here is the documentation on enableLocalCache (Changing the Default Geode
> Configuration in the Tomcat Module)
> enableLocalCache
> Whether a local cache is enabled. If this parameter is set to true, the app
> server load balancer should be configured for sticky session mode.
> Default: false for peer-to-peer, true for client/server
> However, current geode implementation always default to false for both
> peer-to-peer and client/sever cache.
> {code}
> public TomcatContainer(TomcatInstall install, File containerConfigHome,
> String containerDescriptors, IntSupplier portSupplier) throws
> IOException {
> super(install, containerConfigHome, containerDescriptors, portSupplier);
> // Setup container specific XML files
> contextXMLFile = new File(cargoLogDir.getAbsolutePath() + "/context.xml");
> serverXMLFile = new File(DEFAULT_CONF_DIR + "server.xml");
> // Copy the default container context XML file from the install to the
> specified path
> FileUtils.copyFile(new File(DEFAULT_CONF_DIR + "context.xml"),
> contextXMLFile);
> // Set the container context XML file to the new location copied to above
> setConfigFile(contextXMLFile.getAbsolutePath(),
> DEFAULT_TOMCAT_XML_REPLACEMENT_DIR,
> DEFAULT_TOMCAT_CONTEXT_XML_REPLACEMENT_NAME);
> // Default properties
> --> setCacheProperty("enableLocalCache", "false");
> setCacheProperty("className", install.getContextSessionManagerClass());
> // Deploy war file to container configuration
> deployWar();
> // Setup the default installations locators
> setLocator(install.getDefaultLocatorAddress(),
> install.getDefaultLocatorPort());
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)