-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add SPI jvm option to SystemJvmOptions #50916
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
39379e4
Add SPI jvm option to SystemJvmOptions
pgomulka 53acc74
change the way locale providers flag is set
pgomulka 77b0b7a
make verion based chocie in system jvm options
pgomulka 154c8ab
use features to skip a test on jdk8
pgomulka b3d3f9b
cleanup
pgomulka 305c215
Merge branch '7.x' into fix/spi_provider_jvm_option
elasticmachine 76877ba
change assertion on locale.provider setting as it will be different i…
pgomulka c606038
Merge branch 'fix/spi_provider_jvm_option' of github.com:pgomulka/ela…
pgomulka 8423ee0
Update rest-api-spec/src/main/resources/rest-api-spec/test/search.agg…
pgomulka 5f872ae
rename
pgomulka 5afbafa
add more javadoc
pgomulka a43d97a
cross ref
pgomulka 724302b
link fix
pgomulka 457c5cc
Merge branch '7.x' into fix/spi_provider_jvm_option
pgomulka f4cf3d8
remove empty lines
pgomulka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...src/main/resources/rest-api-spec/test/search.aggregation/310_date_agg_per_day_of_week.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
|
|
||
| setup: | ||
| - skip: | ||
| version: " - 7.5.99" | ||
| reason: "Start of the week Monday was backported to 7.6" | ||
| features: "spi_on_classpath_jdk9" | ||
|
|
||
| - do: | ||
| indices.create: | ||
| index: test | ||
| body: | ||
| mappings: | ||
| properties: | ||
| date: | ||
| type: date | ||
| - do: | ||
| index: | ||
| index: test | ||
| id: 1 | ||
| body: { "date": "2009-11-15T14:12:12" } | ||
| - do: | ||
| indices.refresh: | ||
| index: [test] | ||
| --- | ||
| # The inserted document has a field date=2009-11-15T14:12:12 which is Sunday. | ||
| # When aggregating per day of the week this should be considered as last day of the week (7) | ||
| # and this value should be used in 'key_as_string' | ||
| "Date aggregation per day of week": | ||
| - do: | ||
| search: | ||
| rest_total_hits_as_int: true | ||
| index: test | ||
| body: | ||
| aggregations: | ||
| test: | ||
| "date_histogram": { | ||
| "field": "date", | ||
| "calendar_interval": "day", | ||
| "format": "e", | ||
| "offset": 0 | ||
| } | ||
| - match: {hits.total: 1} | ||
| - length: { aggregations.test.buckets: 1 } | ||
| - match: { aggregations.test.buckets.0.key_as_string: "7" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why can't we keep this in system jvm options? Shouldn't this be something a user doesn't need to think about?
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.
you are right, it is better to stay in
SystemJvmOptions. We can always check the version running withJavaVersion.majorVersion(JavaVersion.CURRENT) == 8to choose the right settings