Fix the import org.opensearch.core.common.Strings; and import org.opensearch.core.common.logging.LoggerMessageFormat;#2781
Conversation
Signed-off-by: Ryan Liang <jiallian@amazon.com>
| public String toString() { | ||
| try { | ||
| return Strings.toString(JsonXContent.contentBuilder().map(getAsMap())); | ||
| return org.opensearch.common.Strings.toString(JsonXContent.contentBuilder().map(getAsMap())); |
There was a problem hiding this comment.
NOTE: this line and L474 are temporarily changed into this since the original toString() function is undefined in org.opensearch.core.common.Strings. I will create an issue to track that.
Codecov Report
@@ Coverage Diff @@
## main #2781 +/- ##
============================================
- Coverage 61.48% 61.47% -0.02%
+ Complexity 3402 3401 -1
============================================
Files 266 266
Lines 18865 18865
Branches 3302 3302
============================================
- Hits 11600 11597 -3
- Misses 5669 5671 +2
- Partials 1596 1597 +1
|
|
Plugin-install CI task will pass once |
|
Checking up the errors in plugin-install |
import org.opensearch.core.common.Strings;import org.opensearch.core.common.Strings; and import org.opensearch.core.common.logging.LoggerMessageFormat;
|
@opensearch-project/engineering-effectiveness can a build be triggered to produce new artifacts for |
I have triggered one with just OpenSearch common-utils. |
Hi @prudhvigodithi, thank you for the follow-up! However, the new build seems failed (https://build.ci.opensearch.org/job/distribution-build-opensearch/7870/console) :/ |
Ya, I have just noticed it failed with OpenSearch :( and did not even reach common-utils, there is already an open issue opensearch-project/OpenSearch#7590 in OpenSearch repo. |
|
@prudhvigodithi got it, thanks! I will keep tracking that. |
…ect#2781) Signed-off-by: Ryan Liang <jiallian@amazon.com> Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
…ect#2781) Signed-off-by: Ryan Liang <jiallian@amazon.com> Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
…ect#2781) Signed-off-by: Ryan Liang <jiallian@amazon.com>
…ect#2781) Signed-off-by: Ryan Liang <jiallian@amazon.com> Signed-off-by: Sam <samuel.costa@eliatra.com>
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-2781-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 33aebb96781a4988ae14fab2a5e53b17bb99ecf6
# Push it to GitHub
git push --set-upstream origin backport/backport-2781-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.xThen, create a pull request where the |
|
Creating a manual backport now |
|
Manual backport created: #2953 |
… import org.opensearch.core.common.logging.LoggerMessageFormat; (#2953) * Use version of httpclient 4 from core's buildSrc/version.properties Signed-off-by: Craig Perkins <cwperx@amazon.com> * Fix the `import org.opensearch.core.common.Strings;` (#2781) Signed-off-by: Ryan Liang <jiallian@amazon.com> (cherry picked from commit 33aebb9) * Run spotlessApply Signed-off-by: Craig Perkins <cwperx@amazon.com> * Set common-utils-version to 2.9.0.0-SNAPSHOT Signed-off-by: Craig Perkins <cwperx@amazon.com> --------- Signed-off-by: Craig Perkins <cwperx@amazon.com> Co-authored-by: Ryan Liang <109499885+RyanL1997@users.noreply.github.com>
Description
Fix the
import org.opensearch.core.common.Strings;andimport org.opensearch.core.common.logging.LoggerMessageFormat;to adapt the breaking change in core: opensearch-project/OpenSearch#7508Refactoring
Issues Resolved
Check List
New functionality includes testingNew functionality has been documentedBy 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.