[jira] [Updated] (AVRO-1577) TestSpecificCompiler is not closing resources
[ https://issues.apache.org/jira/browse/AVRO-1577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp updated AVRO-1577: -- Resolution: Fixed Assignee: Daniel Kulp Status: Resolved (was: Patch Available) Most of this was done already when we moved to Java 8 and switched to try-with-resources. A few methods were missed which I just updated. > TestSpecificCompiler is not closing resources > - > > Key: AVRO-1577 > URL: https://issues.apache.org/jira/browse/AVRO-1577 > Project: Apache Avro > Issue Type: Bug > Components: java >Affects Versions: 1.7.7 > Environment: Windows >Reporter: Stevo Slavic >Assignee: Daniel Kulp >Priority: Major > Fix For: 1.9.0 > > Attachments: AVRO-1577.patch > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (AVRO-1577) TestSpecificCompiler is not closing resources
[ https://issues.apache.org/jira/browse/AVRO-1577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stevo Slavic updated AVRO-1577: --- Status: Patch Available (was: Open) > TestSpecificCompiler is not closing resources > - > > Key: AVRO-1577 > URL: https://issues.apache.org/jira/browse/AVRO-1577 > Project: Avro > Issue Type: Bug > Components: java >Affects Versions: 1.7.7 > Environment: Windows >Reporter: Stevo Slavic > Fix For: 1.8.0 > > Attachments: AVRO-1577.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (AVRO-1577) TestSpecificCompiler is not closing resources
[ https://issues.apache.org/jira/browse/AVRO-1577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stevo Slavic updated AVRO-1577: --- Attachment: AVRO-1577.patch Attached [^AVRO-1577.patch] > TestSpecificCompiler is not closing resources > - > > Key: AVRO-1577 > URL: https://issues.apache.org/jira/browse/AVRO-1577 > Project: Avro > Issue Type: Bug > Components: java >Affects Versions: 1.7.7 > Environment: Windows >Reporter: Stevo Slavic > Fix For: 1.8.0 > > Attachments: AVRO-1577.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)