🔎 Open source distributed and RESTful search engine.
Go to file
Andrew Ross 96d55966a2
Use try-with-resources with MockLogAppender (#1595)
I previously added a helper that started a MockLogAppender to ensure it
was never added to a Logger before it was started. I subsequently found
the opposite case in RolloverIT.java where the appender was stopped
before it was closed, therefore creating a race where a concurrently
running test in the same JVM could cause a logging failure. This seems
like a really easy mistake to make when writing a test or introduce when
refactoring a test. I've made a change to use try-with-resources to
ensure that proper setup and teardown is done. This should make it much
harder to introduce this particular test bug in the future.
Unfortunately, it did involve touching a lot of files. The changes here
are purely structural to leverage try-with-resources; no testing logic
has been changed.

Signed-off-by: Andrew Ross <andrross@amazon.com>
2021-12-21 15:00:55 -06:00
.ci Add version 1.2.3. (#1760) 2021-12-17 09:14:37 -08:00
.github link checker fix - only run on opensearch-project/OpenSearch (#1719) 2021-12-13 15:20:00 -08:00
.idea [Rename] Replace more instances of Elasticsearch with OpenSearch. (#432) 2021-03-21 20:56:34 -05:00
benchmarks Make allocation decisions at node level first for pending task optimi… (#534) 2021-05-19 19:09:30 -07:00
buildSrc Ignore file order in test assertion (#1755) 2021-12-20 13:58:05 -05:00
client Adding a cancelled field to tell if a cancellable task is cancelled (#1732) 2021-12-16 09:49:49 -05:00
dev-tools Add script to perform signoff check between commits (#152) 2021-03-13 10:36:15 -06:00
distribution Gradle clean failing after a failed gradle check, folders created by Docker under 'root' user (#1726) 2021-12-18 10:57:04 -05:00
doc-tools Fixing .gitattributes for binary content, removing *.class files (#1717) 2021-12-13 15:02:42 -08:00
gradle Support Gradle 7 (#1609) 2021-11-29 14:34:06 -05:00
libs Fix JavaDoc typo in XContentBuilder (#1739) 2021-12-16 09:57:38 -05:00
licenses Remove the Elastic license file, all checks for this license and the license REST APIs. (#12) 2021-03-13 10:36:07 -06:00
modules Use try-with-resources with MockLogAppender (#1595) 2021-12-21 15:00:55 -06:00
plugins Use try-with-resources with MockLogAppender (#1595) 2021-12-21 15:00:55 -06:00
qa Gradle clean failing after a failed gradle check, folders created by Docker under 'root' user (#1726) 2021-12-18 10:57:04 -05:00
release-notes Adding release notes for 1.2.2 (#1730) 2021-12-15 09:18:13 -08:00
rest-api-spec Avoid logging duplicate deprecation warnings multiple times (#1660) 2021-12-15 15:26:44 -08:00
sandbox Enable adding experimental features through sandbox modules (#691) 2021-06-22 11:45:18 -05:00
server Use try-with-resources with MockLogAppender (#1595) 2021-12-21 15:00:55 -06:00
test Use try-with-resources with MockLogAppender (#1595) 2021-12-21 15:00:55 -06:00
.dir-locals.el
.editorconfig Remove default indent from .editorconfig (#49183) 2019-11-18 08:05:53 +00:00
.gitattributes Updating .gitattributes for additional file types (#1727) 2021-12-17 16:09:34 -05:00
.gitignore [Rename] Replace more instances of Elasticsearch with OpenSearch. (#432) 2021-03-21 20:56:34 -05:00
.lycheeexclude Exclude failing links from plugins/modules (#1223) 2021-09-08 13:39:53 +05:30
.whitesource Add a whitesource unified agent file and update the config (#1540) 2021-11-17 14:57:15 -08:00
ADMINS.md Updated READMEs on releasing, maintaining, admins and security. (#853) 2021-06-17 18:03:11 -04:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2021-03-13 10:36:16 -06:00
CONTRIBUTING.md changed work-in-progress language (#1275) 2021-10-26 10:39:25 -07:00
DEVELOPER_GUIDE.md Updating auto backport documentation (#1620) 2021-12-01 20:07:43 -05:00
LICENSE.txt Update LICENSE.txt 2021-03-22 09:25:46 -05:00
MAINTAINERS.md Updated links for linkchecker (#1539) 2021-11-11 18:24:26 -05:00
NOTICE.txt Fixed copyright to OpenSearch (#1175) 2021-08-31 12:55:28 -04:00
README.md Adding Security Reporting Instructions in README.md file Signed-off-by: Rishikesh Reddy Pasham rishireddy1159@gmail.com (#1326) 2021-10-02 10:41:30 -04:00
RELEASING.md Updated READMEs on releasing, maintaining, admins and security. (#853) 2021-06-17 18:03:11 -04:00
SECURITY.md Updated READMEs on releasing, maintaining, admins and security. (#853) 2021-06-17 18:03:11 -04:00
TESTING.md Add guide for generating code coverage report in TESTING.md (#1264) 2021-09-21 19:44:08 -04:00
Vagrantfile [TEST] Fix failing distro tests for linux packages (#569) 2021-05-15 21:45:48 -07:00
build.gradle Better JDK-18 EA (and beyond) support of SecurityManager (#1750) 2021-12-16 17:57:22 -05:00
gradle.properties Better JDK-18 EA (and beyond) support of SecurityManager (#1750) 2021-12-16 17:57:22 -05:00
gradlew Update gradle wrapper to 6.6 (#59909) (#60949) 2020-08-11 11:03:19 +02:00
gradlew.bat Update gradle wrapper to 6.6 (#59909) (#60949) 2020-08-11 11:03:19 +02:00
settings.gradle Allow building on FreeBSD (#1091) 2021-10-14 14:42:28 -04:00
whitesource.config Add a whitesource unified agent file and update the config (#1540) 2021-11-17 14:57:15 -08:00

README.md

Welcome!

OpenSearch is a community-driven, open source fork of Elasticsearch and Kibana following the licence change in early 2021. We're looking to sustain (and evolve!) a search and analytics suite for the multitude of businesses who are dependent on the rights granted by the original, Apache v2.0 License.

Project Resources

Code of Conduct

This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ, or contact opensource-codeofconduct@amazon.com with any additional questions or comments.

Security

If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

License

This project is licensed under the Apache v2.0 License.

Copyright OpenSearch Contributors. See NOTICE for details.