Skip to content

Support environment properties that would have worked in 1.5 #10873

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

Closed
philwebb opened this issue Nov 1, 2017 · 5 comments
Closed

Support environment properties that would have worked in 1.5 #10873

philwebb opened this issue Nov 1, 2017 · 5 comments
Labels
type: enhancement A general enhancement
Milestone

Comments

@philwebb
Copy link
Member

philwebb commented Nov 1, 2017

The stricter environment variable property rules in 2.0 might catch people out and it would be really nice if we could warn users that a property that previously worked now will not.

One example of this is in Spring Cloud stream. They previously would set the varaible SPRING_CLOUD_STREAM_KAFKA_BINDER_ZK_NODES. In 2.0 this needs to be SPRING_CLOUD_STREAM_KAFKA_BINDER_ZKNODES.

@philwebb
Copy link
Member Author

philwebb commented Nov 1, 2017

I've absolutely no idea how we can do this. Perhaps we can update ConfigurationPropertySource so that if it gets called with getConfigurationProperty("zknodes") it checks to see if there are any matches excluding underscores and issues a warning.

@snicoll
Copy link
Member

snicoll commented Nov 2, 2017

You mean SPRING_CLOUD_STREAM_KAFKA_BINDER_ZKNODES right?

@philwebb
Copy link
Member Author

philwebb commented Nov 2, 2017

Edited 🤦‍♂️

@philwebb philwebb changed the title See if we can warn if properties that would have worked in 1.5 won't in 2.0 Support environment properties that would have worked in 1.5 Nov 6, 2017
@philwebb philwebb added this to the 2.0.0.RC1 milestone Nov 6, 2017
@philwebb
Copy link
Member Author

philwebb commented Nov 6, 2017

Thinking some more about this I think it should be possible to support the SPRING_CLOUD_STREAM_KAFKA_BINDER_ZK_NODES style in addition to SPRING_CLOUD_STREAM_KAFKA_BINDER_ZKNODES. I think we should still promote the first style in documentation etc.

@philwebb
Copy link
Member Author

philwebb commented Nov 6, 2017

/cc @dsyer @markfisher

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

No branches or pull requests

2 participants