OpenSearch/modules
Tianli Feng 110cef7882
Fix resource leak issues suggested by Amazon CodeGuru (#816)
* Address a kind of issue suggested by Amazon CodeGuru Reviewer:

* Add try-with-resources block to automatically close the resources after using to avoid resource leak, in `SymbolicLinkPreservingTarIT`, `LicenseAnalyzer`, `SymbolicLinkPreservingUntarTransform`, `ConcurrentSeqNoVersioningIT` in `VersionProperties`, `GeoFilterIT`, `XContentHelper`,  `Json` and `IndexShard` class

* Add try-finally block to close the resources after using to avoid resource leak, in `ServerChannelContext` class.

* Add try-catch block to close the resources when exception occurs in `FsBlobContainer` class (when XContentFactory.xContentType throws an exception).

* Close resources when assertion error occurs, in `ServerChannelContext` class.
2021-06-15 09:31:36 -07:00
..
aggs-matrix-stats [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
analysis-common [Versioning] Rebase to OpenSearch version 1.0.0 (#555) 2021-04-15 17:06:47 -05:00
geo [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
ingest-common [Versioning] Rebase to OpenSearch version 1.0.0 (#555) 2021-04-15 17:06:47 -05:00
ingest-geoip [CVE] Upgrade dependencies to mitigate CVEs (#657) 2021-05-18 11:37:24 -07:00
ingest-user-agent Renaming CPU architecture to have consistent naming (#612) 2021-04-26 09:40:09 -07:00
lang-expression Update lucene version to 8.8.2 (#557) 2021-04-23 09:48:41 -05:00
lang-mustache [Versioning] Rebase to OpenSearch version 1.0.0 (#555) 2021-04-15 17:06:47 -05:00
lang-painless Fix resource leak issues suggested by Amazon CodeGuru (#816) 2021-06-15 09:31:36 -07:00
mapper-extras [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
opensearch-dashboards [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
parent-join [Versioning] Rebase to OpenSearch version 1.0.0 (#555) 2021-04-15 17:06:47 -05:00
percolator [Versioning] Rebase to OpenSearch version 1.0.0 (#555) 2021-04-15 17:06:47 -05:00
rank-eval [Versioning] Rebase to OpenSearch version 1.0.0 (#555) 2021-04-15 17:06:47 -05:00
reindex [BWC] fix mixedCluster and rolling upgrades (#775) 2021-05-28 00:42:57 -05:00
repository-url [License] Add SPDX License Header to security policies (#531) 2021-04-12 22:59:36 -05:00
systemd [License] Add SPDX License Header to security policies (#531) 2021-04-12 22:59:36 -05:00
transport-netty4 [CVE] Upgrade dependencies to mitigate CVEs (#657) 2021-05-18 11:37:24 -07:00
build.gradle [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00