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

Upgrading Joda version #3935

Merged
merged 3 commits into from
Jul 20, 2022

Conversation

saratvemulapalli
Copy link
Member

@saratvemulapalli saratvemulapalli commented Jul 18, 2022

Signed-off-by: Sarat Vemulapalli vemulapallisarat@gmail.com

Description

Joda was a standard implementation for versions < Java 8.
Since Java 8, we use Java.time but we still use Joda for BWC to talk to old nodes.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
@saratvemulapalli saratvemulapalli requested review from a team and reta as code owners July 18, 2022 17:37
Copy link
Member

@kartg kartg left a comment

Choose a reason for hiding this comment

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

Looks straightforward 😄 You're good to go once Gradle check passes

@saratvemulapalli
Copy link
Member Author

saratvemulapalli commented Jul 18, 2022

@reta you've made a PR to remove deprecated methods. [1]
I see we introduced Joda for BWC, but its been a while since we've supported Java 8.

Is it safe to remove this compatibility wrapper since we are with JDK 17 on 3.0 which at the most should be compatible with OpenSearch 2.0 ? Are there any reasons why we shouldn't?

[1] #3346

@saratvemulapalli saratvemulapalli added >upgrade Label used when upgrading library dependencies (e.g., Lucene) dependencies Pull requests that update a dependency file v3.0.0 Issues and PRs related to version 3.0.0 v2.2.0 labels Jul 18, 2022
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@saratvemulapalli
Copy link
Member Author

Tests with failures:
 - org.opensearch.common.time.DateUtilsTests.testTimezoneIds

Looks very related. Will take a look.

Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
Signed-off-by: Sarat Vemulapalli <vemulapallisarat@gmail.com>
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@saratvemulapalli saratvemulapalli merged commit 29adf2a into opensearch-project:main Jul 20, 2022
@saratvemulapalli saratvemulapalli deleted the joda-main branch July 20, 2022 23:02
@reta
Copy link
Collaborator

reta commented Jul 24, 2022

@reta you've made a PR to remove deprecated methods. [1] I see we introduced Joda for BWC, but its been a while since we've supported Java 8.

Is it safe to remove this compatibility wrapper since we are with JDK 17 on 3.0 which at the most should be compatible with OpenSearch 2.0 ? Are there any reasons why we shouldn't?

[1] #3346

@saratvemulapalli apologies for the delay (was off this week), I think we could consider removing Joda compatibility wrapper. I don't see any reasons to keep it.

@saratvemulapalli
Copy link
Member Author

saratvemulapalli commented Jul 25, 2022

@reta you've made a PR to remove deprecated methods. [1] I see we introduced Joda for BWC, but its been a while since we've supported Java 8.
Is it safe to remove this compatibility wrapper since we are with JDK 17 on 3.0 which at the most should be compatible with OpenSearch 2.0 ? Are there any reasons why we shouldn't?
[1] #3346

@saratvemulapalli apologies for the delay (was off this week), I think we could consider removing Joda compatibility wrapper. I don't see any reasons to keep it.

No worries. Thanks @reta. I would like to pick this up.
I'll open an issue. #3995

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file >upgrade Label used when upgrading library dependencies (e.g., Lucene) v2.2.0 v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants