-
Notifications
You must be signed in to change notification settings - Fork 332
Add $PWD/config/application.properties configuration in the distribution
#1032
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
Conversation
|
FYI, an external What is the use case for yet another external configuration file? |
|
@adutra I was hesitating by using Thanks ! |
|
I think using the default external location is more prudent indeed, we don't need to get into the business of deciding what to do if two external files are present :-) |
Yeah, agree. My bad 😄 |
fe4dd8a to
849a7ea
Compare
$PWD/config/application.properties configuration in the distribution
|
@adutra I updated the PR according to your PR. |
...kus/service/src/main/java/org/apache/polaris/service/quarkus/config/PolarisConfigSource.java
Outdated
Show resolved
Hide resolved
… to be "visible" to end user in the distribution
849a7ea to
bc58d74
Compare
| # under the License. | ||
| # | ||
|
|
||
| io.smallrye.config.LoggingConfigSourceInterceptor No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not have been deleted, only reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, let me fix that.
| # under the License. | ||
| # | ||
|
|
||
| # This is the main and classic Apache Polaris configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this file is loaded related to the current directory in runtime, not relative to the location of the jar... So it is fine to include it in the distribution, but I believe there may still be odd cases when users start Polaris from some arbitrary location and this file is not found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. For now I deal only about distribution. Majority of users will user docker or distribution.
|
@dennishuo @eric-maynard @adutra @dimas-b what do you think about this PR ? Do you think it could be helpful for our users (to easily find and see all classic configuration properties) ? Thoughts ? |
|
I'm a bit confused --
|
|
Could we just allow for a top level (i.e. |
|
@eric-maynard I like your idea of having a Let me update this PR this way. About |
|
From my POV, I'd prefer educating users on how to benefit from the multitude of ways to configure Polaris (which come from the Quarkus infra). I believe it will be an advantage to all users in the long run, even though there is a learning curve. I personally think that combining multiple config sources at build time will complicate the build unnecessarily. This looks similar to users (currently) having to provide extra build parameters for PostgreSQL, which makes every build different at the binary level. Ideally, I think no rebuild should be necessary to switch between database backends or for any other runtime config changes (only a restart with different config values should do it). A few properties that do require re-compilation are very low-level and changing them is something that normally needs a PR, IMHO :) |
|
Fair enough, thanks everyone for your feedback. |
In order to give a better "visibility" about Polaris configuration properties to end user, this PR add
$PWD/config/application.propertiesto the Polaris server distribution.@dennishuo it was my proposal when you said you are struggling to find "configuration".