Michael Shuler created CASSANDRA-13190:
------------------------------------------
Summary: Fix eclipse-warnings from CASSANDRA-9143
Key: CASSANDRA-13190
URL: https://issues.apache.org/jira/browse/CASSANDRA-13190
Project: Cassandra
Issue Type: Sub-task
Components: Testing
Reporter: Michael Shuler
Assignee: Blake Eggleston
Fix For: 4.x
CASSANDRA-9143 introduced an error from eclipse-warnings:
{noformat}
# 2/7/17 5:50:30 AM UTC
# Eclipse Compiler for Java(TM) v20150120-1634, 3.10.2, Copyright IBM Corp
2000, 2013. All rights reserved.
----------
1. ERROR in
/var/lib/jenkins/jobs/trunk_eclipse-warnings/workspace/src/java/org/apache/cassandra/repair/consistent/PendingAntiCompaction.java
(at line 103)
return new AcquireResult(cfs, Refs.ref(sstables), txn);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Potential resource leak: 'txn' may not be closed at this location
----------
----------
2. ERROR in
/var/lib/jenkins/jobs/trunk_eclipse-warnings/workspace/src/java/org/apache/cassandra/db/compaction/PendingRepairManager.java
(at line 236)
return txn == null ? null : new RepairFinishedCompactionTask(cfs, txn,
sessionID, repairedAt);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Potential resource leak: 'txn' may not be closed at this location
----------
2 problems (2 errors)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)