Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14434

ant eclipse-warnings failing on trunk

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Severity:
      Low

      Description

      ant eclipse-warnings is been failing on last few builds

      e.g.

      https://builds.apache.org/view/A-D/view/Cassandra/job/Cassandra-trunk-test-all/569/console

      eclipse-warnings:
      [mkdir] Created dir: /home/jenkins/jenkins-slave/workspace/Cassandra-trunk-test-all/build/ecj
      [echo] Running Eclipse Code Analysis. Output logged to /home/jenkins/jenkins-slave/workspace/Cassandra-trunk-test-all/build/ecj/eclipse_compiler_checks.txt
      [java] ----------
      [java] 1. ERROR in /home/jenkins/jenkins-slave/workspace/Cassandra-trunk-test-all/src/java/org/apache/cassandra/net/MessageIn.java (at line 120)
      [java] builder.put(type, type.serializer.deserialize(new DataInputBuffer(value), version));
      [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^
      [java] Potential resource leak: '<unassigned Closeable value>' may not be closed
      [java] ----------
      [java] ----------
      [java] 2. ERROR in /home/jenkins/jenkins-slave/workspace/Cassandra-trunk-test-all/src/java/org/apache/cassandra/net/async/MessageInHandler.java (at line 216)
      [java] parameters.put(parameterType, parameterType.serializer.deserialize(new DataInputBuffer(value), messagingVersion));
      [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^
      [java] Potential resource leak: '<unassigned Closeable value>' may not be closed
      [java] ----------
      [java] ----------
      [java] 3. ERROR in /home/jenkins/jenkins-slave/workspace/Cassandra-trunk-test-all/src/java/org/apache/cassandra/db/CassandraKeyspaceWriteHandler.java (at line 42)
      [java] group = Keyspace.writeOrder.start();
      [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [java] Resource 'group' should be managed by try-with-resource
      [java] ----------
      [java] 4. ERROR in /home/jenkins/jenkins-slave/workspace/Cassandra-trunk-test-all/src/java/org/apache/cassandra/db/CassandraKeyspaceWriteHandler.java (at line 68)
      [java] group = Keyspace.writeOrder.start();
      [java] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [java] Resource 'group' should be managed by try-with-resource
      [java] ----------
      [java] ----------
      [java] 5. ERROR in /home/jenkins/jenkins-slave/workspace/Cassandra-trunk-test-all/src/java/org/apache/cassandra/db/streaming/CassandraStreamReader.java (at line 159)
      [java] return writer;
      [java] ^^^^^^^^^^^^^^
      [java] Potential resource leak: 'txn' may not be closed at this location
      [java] ----------
      [java] ----------
      [java] 6. ERROR in /home/jenkins/jenkins-slave/workspace/Cassandra-trunk-test-all/src/java/org/apache/cassandra/db/streaming/CassandraStreamReceiver.java (at line 106)
      [java] SSTableMultiWriter sstable = file.getSSTable();
      [java] ^^^^^^^
      [java] Potential resource leak: 'sstable' may not be closed
      [java] ----------
      [java] 6 problems (6 errors)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chovatia.jaydeep@gmail.com Jaydeepkumar Chovatia
                Reporter:
                chovatia.jaydeep@gmail.com Jaydeepkumar Chovatia
                Authors:
                Jaydeepkumar Chovatia
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: