Skip to content

Upgraded to OpenSearch 1.2.3.#16

Merged
dblock merged 5 commits intoopensearch-project:mainfrom
dblock:upgrade-1.2.1
Dec 27, 2021
Merged

Upgraded to OpenSearch 1.2.3.#16
dblock merged 5 commits intoopensearch-project:mainfrom
dblock:upgrade-1.2.1

Conversation

@dblock
Copy link
Copy Markdown
Member

@dblock dblock commented Dec 14, 2021

Signed-off-by: dblock dblock@amazon.com

Description

  • Upgraded to OpenSearch 1.2.3
  • Expanded build matrix to MacOS
  • Added bin to .gitignore

Check List

  • 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.

@dblock dblock force-pushed the upgrade-1.2.1 branch 2 times, most recently from cc2c01f to 7a4374c Compare December 14, 2021 18:10
Signed-off-by: dblock <dblock@amazon.com>
@dblock
Copy link
Copy Markdown
Member Author

dblock commented Dec 14, 2021

I don't get how I'm supposed to fix this or why this happens. Adding import de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin doesn't seem to do anything?

* What went wrong:
A problem occurred evaluating root project 'plugin-template'.
> Failed to apply plugin class 'de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin'.
   > Could not create plugin of type 'ForbiddenApisPlugin'.
      > Could not initialize class de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin

@saratvemulapalli
Copy link
Copy Markdown
Member

I don't get how I'm supposed to fix this or why this happens. Adding import de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin doesn't seem to do anything?

* What went wrong:
A problem occurred evaluating root project 'plugin-template'.
> Failed to apply plugin class 'de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin'.
   > Could not create plugin of type 'ForbiddenApisPlugin'.
      > Could not initialize class de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin

Interesting..do you who is pulling ForbiddenApisPlugin?
From build.gradle I dont see anything.

@saratvemulapalli
Copy link
Copy Markdown
Member

Looks like OpenSearch is doing it via gradle.
https://github.com/opensearch-project/OpenSearch/search?q=ForbiddenApisPlugin

Signed-off-by: dblock <dblock@dblock.org>
@dblock dblock changed the title Upgraded to OpenSearch 1.2.1. Upgraded to OpenSearch 1.2.3. Dec 23, 2021
Signed-off-by: dblock <dblock@dblock.org>
@dblock
Copy link
Copy Markdown
Member Author

dblock commented Dec 23, 2021

With 1.2.3 the new error is

> Task :yamlRestTest

org.opensearch.path.to.plugin.RenameClientYamlTestSuiteIT > initializationError FAILED
    java.lang.NoClassDefFoundError: org/apache/logging/log4j/core/Layout

I don't get why this is happening.

@reta maybe you will have some ideas?

@dblock
Copy link
Copy Markdown
Member Author

dblock commented Dec 23, 2021

@AmiStrn any ideas how to fix this?

@reta
Copy link
Copy Markdown
Collaborator

reta commented Dec 23, 2021

@dblock oh I know what this is about, gimme please 10 mins

@AmiStrn
Copy link
Copy Markdown
Collaborator

AmiStrn commented Dec 23, 2021

Its gotta be something in the build.gradle file. It is pretty late on this side of the globe. I can take a look later on friday unless @reta has it pin pointed already:)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
@reta
Copy link
Copy Markdown
Collaborator

reta commented Dec 23, 2021

@dblock I created this pull request to fix the issue dblock#1

@reta
Copy link
Copy Markdown
Collaborator

reta commented Dec 23, 2021

Its gotta be something in the build.gradle file. It is pretty late on this side of the globe. I can take a look later on friday unless @reta has it pin pointed already:)

It is a bit more tricker, it is optional dependencies, which seems to be treated differently when api "org.opensearch:opensearch:${opensearch_version}" vs api project(':server') :(

Fixing RestIntegTestTask runtime configuration
@dblock
Copy link
Copy Markdown
Member Author

dblock commented Dec 23, 2021

🤯 @reta I don't know why or how you knew how to fix this one but hat tip

@dblock dblock requested a review from AmiStrn December 23, 2021 22:28
@reta
Copy link
Copy Markdown
Collaborator

reta commented Dec 23, 2021

exploding_head @reta I don't know why or how you knew how to fix this one but hat tip

It happens I run into that a few days ago while working on POC to move out the repository plugins 😄

Copy link
Copy Markdown
Collaborator

@AmiStrn AmiStrn left a comment

Choose a reason for hiding this comment

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

Thank you @reta for your valuable insight on this issue!

@dblock
Copy link
Copy Markdown
Member Author

dblock commented Dec 25, 2021

@CEHENKLE Can you please help with permissions here? We have a 2 people approvals required by the org, and there's not 2 people maintaining this repo.

@dblock
Copy link
Copy Markdown
Member Author

dblock commented Dec 27, 2021

@AmiStrn cool if I add @saratvemulapalli to PR reviewers to this project?

Maybe @reta is also interested?

Comment on lines +97 to +99
tasks.withType(RestIntegTestTask)*.configure {
classpath += files(project.configurations.runtimeClasspath.findAll { it.name.contains("log4j-core") })
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is log4j-core special?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@saratvemulapalli see please #16 (comment), it is need but is optional

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @reta , I did read through the comments on dblock#1.
I still dont understand why :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is something coming from the plugin apparently, I will create an issue shortly to figure out exactly what is going on, will ping you there, thanks!

@reta
Copy link
Copy Markdown
Collaborator

reta commented Dec 27, 2021

@AmiStrn cool if I add @saratvemulapalli to PR reviewers to this project?

Maybe @reta is also interested?

@dblock I am certainly in, thank you

@dblock
Copy link
Copy Markdown
Member Author

dblock commented Dec 27, 2021

@AmiStrn cool if I add @saratvemulapalli to PR reviewers to this project?
Maybe @reta is also interested?

@dblock I am certainly in, thank you

Thanks. @AmiStrn LMK if it's ok to add these two with write permissions?

@AmiStrn
Copy link
Copy Markdown
Collaborator

AmiStrn commented Dec 27, 2021

Thanks. @AmiStrn LMK if it's ok to add these two with write permissions?

@saratvemulapalli and @reta are more than welcome:)

@AmiStrn
Copy link
Copy Markdown
Collaborator

AmiStrn commented Dec 27, 2021

@dblock I added @saratvemulapalli because he is in the org it seemed to work fine. However, im gonna need help with @reta 🙏

@dblock
Copy link
Copy Markdown
Member Author

dblock commented Dec 27, 2021

@dblock I added @saratvemulapalli because he is in the org it seemed to work fine. However, im gonna need help with @reta 🙏

Exactly. I think org owners need to do something to bring in an external user for the first time. I’ll go find out how (I’m not an org owner).

@dblock
Copy link
Copy Markdown
Member Author

dblock commented Jan 3, 2022

@reta you should have received an invite to this repo, please let me know if you haven't

https://github.com/opensearch-project/opensearch-plugin-template-java/invitations

@reta
Copy link
Copy Markdown
Collaborator

reta commented Jan 3, 2022

@dblock all good, got it and accepted it, thank you! ❤️

@dblock
Copy link
Copy Markdown
Member Author

dblock commented Jan 3, 2022

@dblock all good, got it and accepted it, thank you! ❤️

Thank you for contributing!

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.

4 participants