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

[2.x] Fixed day of year defaulting for round up parser (#4627) #4678

Merged

Conversation

Vishalks
Copy link
Contributor

@Vishalks Vishalks commented Oct 4, 2022

Signed-off-by: Vishal Sarda vsarda@amazon.com
(cherry picked from commit a17692d)

Description

This change fixes the conflict gets when trying to round up input date ranges, specifically for the format "yyyy-DDD'T'HH:mm:ss.SSS". For this input format, we default day of year to 1 else default month of year and day of month to 1

Issues Resolved

#4285

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…4627)

Signed-off-by: Vishal Sarda <vsarda@amazon.com>
(cherry picked from commit a17692d)
@Vishalks Vishalks marked this pull request as ready for review October 4, 2022 17:45
@Vishalks Vishalks requested review from a team and reta as code owners October 4, 2022 17:45
@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2022

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

codecov-commenter commented Oct 4, 2022

Codecov Report

Merging #4678 (2a2fc10) into 2.x (a90fd73) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                2.x    #4678   +/-   ##
=========================================
  Coverage     70.62%   70.63%           
+ Complexity    57126    57114   -12     
=========================================
  Files          4585     4585           
  Lines        274526   274534    +8     
  Branches      40233    40234    +1     
=========================================
+ Hits         193876   193908   +32     
+ Misses        64403    64350   -53     
- Partials      16247    16276   +29     
Impacted Files Coverage Δ
...main/java/org/opensearch/common/lucene/Lucene.java 67.94% <ø> (+2.12%) ⬆️
...index/codec/PerFieldMappingPostingFormatCodec.java 64.28% <ø> (ø)
...rg/opensearch/index/engine/TranslogLeafReader.java 40.90% <ø> (ø)
...java/org/opensearch/index/get/ShardGetService.java 60.25% <ø> (-0.65%) ⬇️
server/src/main/java/org/opensearch/Version.java 83.41% <100.00%> (ø)
...ain/java/org/opensearch/common/time/EpochTime.java 78.30% <100.00%> (ø)
.../org/opensearch/common/time/JavaDateFormatter.java 85.71% <100.00%> (+0.80%) ⬆️
.../java/org/opensearch/index/codec/CodecService.java 88.88% <100.00%> (ø)
...fieldcomparator/BytesRefFieldComparatorSource.java 88.88% <100.00%> (+0.31%) ⬆️
...search/indices/recovery/RecoveryTargetHandler.java 0.00% <0.00%> (-100.00%) ⬇️
... and 495 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

CHANGELOG.md Outdated Show resolved Hide resolved
@tlfeng tlfeng changed the title Fixed day of year defaulting for round up parser (#4627) [2.x] Fixed day of year defaulting for round up parser (#4627) Oct 4, 2022
Signed-off-by: Vishal Sarda <vsarda@amazon.com>
Comment on lines -48 to +51
- [Bug]: Fixed invalid location of JDK dependency for arm64 architecture([#4613](https://github.com/opensearch-project/OpenSearch/pull/4613))
- Updated jackson to 2.13.4 and snakeyml to 1.32 ([#4556](https://github.com/opensearch-project/OpenSearch/pull/4556))
- Fixed day of year defaulting for round up parser ([#4627](https://github.com/opensearch-project/OpenSearch/pull/4627))
- Fixed the SnapshotsInProgress error during index deletion ([#4570](https://github.com/opensearch-project/OpenSearch/pull/4570))
- [Bug]: Fixed invalid location of JDK dependency for arm64 architecture([#4613](https://github.com/opensearch-project/OpenSearch/pull/4613))
Copy link
Member

@dreamer-89 dreamer-89 Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Vishalks for this fix.

Why are we updating the unrelated changelog entries ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that's a result of resolving the conflict between main and 2.x branches.
I don't think it's a big problem here, he only added one line to this part Updated jackson to 2.13.4 and snakeyml to 1.32, which existed in this location in main branch, but existed in a below line in this file of 2.x branch.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course the changelog in 2.x branch is very confusing, anyway it will be refactored to be more clear soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to change my way of resolving merge conflicts which is leading to changing the unrelated entries.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2022

Gradle Check (Jenkins) Run Completed with:

@tlfeng tlfeng merged commit a12feea into opensearch-project:2.x Oct 5, 2022
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.

5 participants