Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnableClusterConfiguration annotation attributes are silently ignored [DATAGEODE-51] #102

Closed
spring-projects-issues opened this issue Oct 17, 2017 · 0 comments
Assignees
Labels
in: configuration type: bug

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Oct 17, 2017

John Blum opened DATAGEODE-51 and commented

All @EnableClusterConfiguration annotation attributes are ignored by SDG when configured by the user and their settings have no effect on the application.

This is easy enough to workaround by setting the corresponding configuration property.

For example, if a user wanted to push the Cluster Configuration from his/her Spring Boot, Apache Geode client cache application to a Geode cluster using HTTP, the user would do the following:

@SpringBootApplication
@ClientCacheApplication
@EnableClusterConfiguration(useHttp = true)
class MySpringBootGeodeCacheClientApplication {
  ...
}

NOTE: the default value for the useHttp attribute is false.

However, the value of useHttp when set using the annotation attribute is ignored by SDG. So the user must set the corresponding configuration property instead, in the Spring Boot application.properties file as so...

spring.data.gemfire.management.use-http=true

Using the corresponding configuration property works around the bug


Affects: 2.0 GA (Kay)

Backported to: 2.0.1 (Kay SR1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: configuration type: bug
Projects
None yet
Development

No branches or pull requests

2 participants