Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1577

TestSpecificCompiler is not closing resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.7
    • 1.9.0
    • java
    • None
    • Windows

    Description

      Test methods in TestSpecificCompiler are opening various Closable resources, but they are not closing them. Because of this, file deletion in tearDown silently fails (on platforms like Windows which are locking files that are being used). This causes few test methods to fail since they are using same temp file as output file - they generate new file content but only if file is not already present, and then assertions comparing actual and expected output content fail.

      Attachments

        1. AVRO-1577.patch
          9 kB
          Stevo Slavić

        Activity

          People

            dkulp Daniel Kulp
            sslavic Stevo Slavić
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: