Skip to content

Tomcat Redis Session Replication#104

Closed
cgfrost wants to merge 1 commit intocloudfoundry:masterfrom
cgfrost:80362118-session-replication
Closed

Tomcat Redis Session Replication#104
cgfrost wants to merge 1 commit intocloudfoundry:masterfrom
cgfrost:80362118-session-replication

Conversation

@cgfrost
Copy link
Copy Markdown
Contributor

@cgfrost cgfrost commented Oct 14, 2014

When the Tomcat Redis sub-component detects a service with a name, label, or
tag that has session-replication as a substring but both 'host' and
'hostname' as credentials it will fail to use the service. This commit changes
the service detection logic to require at least one credential from a group
instead of exactly one credential from a group. It is up to the individual
containers to handle the credentials provided. In the case of the Tomcat Redis
sub-component 'hostname' will win but this is not documented and users should
not rely on that behaviour in the instances where both 'host' and 'hostname'
are provided with different values.

[#80362118]

@cf-gitbot
Copy link
Copy Markdown

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/80663976.

@nebhale
Copy link
Copy Markdown
Contributor

nebhale commented Oct 15, 2014

@cgfrost Can you please add a test that demonstrates the changed behavior?

When the Tomcat Redis sub-component detects a service with a name, label, or
tag that has `session-replication` as a substring but both 'host' and
'hostname' as credentials it will fail to use the service. This commit changes
the service detection logic to require at least one credential from a group
instead of exactly one credential from a group. It is up to the individual
containers to handle the credentials provided. In the case of the Tomcat Redis
sub-component 'hostname' will win but this is not documented and users should
not rely on that behaviour in the instances where both 'host' and 'hostname'
are provided with different values.

[#80362118]
@nebhale nebhale closed this in a2161cf Oct 16, 2014
@cgfrost cgfrost deleted the 80362118-session-replication branch October 21, 2014 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants