[
https://issues.apache.org/jira/browse/NUTCH-3200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18101933#comment-18101933
]
ASF GitHub Bot commented on NUTCH-3200:
---------------------------------------
sonarqubecloud[bot] commented on PR #948:
URL: https://github.com/apache/nutch/pull/948#issuecomment-5187334623
## [](https://sonarcloud.io/dashboard?id=apache_nutch&pullRequest=948)
**Quality Gate passed**
Issues
 [0 New
issues](https://sonarcloud.io/project/issues?id=apache_nutch&pullRequest=948&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted
issues](https://sonarcloud.io/project/issues?id=apache_nutch&pullRequest=948&issueStatuses=ACCEPTED)
Measures
 [0 Security
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_nutch&pullRequest=948&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [58.5% Coverage on New
Code](https://sonarcloud.io/component_measures?id=apache_nutch&pullRequest=948&metric=new_coverage&view=list)
 [1.5% Duplication on New
Code](https://sonarcloud.io/component_measures?id=apache_nutch&pullRequest=948&metric=new_duplicated_lines_density&view=list)
<!
> Close Closeable resources flagged by Sonar java:S2095
> -----------------------------------------------------
>
> Key: NUTCH-3200
> URL: https://issues.apache.org/jira/browse/NUTCH-3200
> Project: Nutch
> Issue Type: Bug
> Affects Versions: 1.23
> Reporter: Lewis John McGibbney
> Assignee: Lewis John McGibbney
> Priority: Critical
> Fix For: 1.24
>
>
> SonarCloud reports 24 open BLOCKER Reliability issues on apache_nutch for
> rule java:S2095 ("Resources should be closed" / try-with-resources).
>
> {*}Plan{*}:
> # Fix real local-ownership leaks by converting to try-with-resources (or
> equivalent correct close) in the affected core and plugin classes (~19 issues
> across 17 files), including cases such as LinkDbReader never closed in
> CommonCrawlDataDumper and incomplete close of wrapped streams in LinkRank.
> # Do not change Hadoop RecordWriter/RecordReader deferred-close sites or the
> FTP Client data Socket return path (FetcherOutputFormat, ParseOutputFormat,
> SegmentReader, SegmentMerger, protocol-ftp Client). Those are ownership
> transfer; mark the corresponding Sonar issues as False Positive once this
> issue has a PR, citing this Jira key and the PR URL.
>
> This is a Bug (resource leaks / Sonar S2095 BUG), not a feature.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)