cfcollection delete is leaving locked files on windows

Description

[java] [script] Errored: testCreateIndexQuery --> Can't delete file [C:\work\Lucee\test\tags\_index\CFduplicates0\custom_1_spell\_0.cfs] [java] [script] at [java] [script] C:\work\Lucee\test\tags\Index.cfc:79 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\BaseSpec.cfc:701 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\runners\UnitRunner.cfc:186 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\runners\UnitRunner.cfc:71 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:369 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:170 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:98 [java] [script] [java] [script] Errored: testCreateIndexFileHTML --> Can't delete file [C:\work\Lucee\test\tags\_index2\CFfilex0\file-bv2esor4s63e_1_spell\_0.cfs] [java] [script] at [java] [script] C:\work\Lucee\test\tags\Index.cfc:133 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\BaseSpec.cfc:701 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\runners\UnitRunner.cfc:186 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\runners\UnitRunner.cfc:71 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:369 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:170 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:98 [java] [script] [java] [script] Errored: testCreateIndexCustom --> Can't delete file [C:\work\Lucee\test\tags\_index3\CFcustomx0\custom_1_spell\_0.cfs] [java] [script] at [java] [script] C:\work\Lucee\test\tags\Index.cfc:204 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\BaseSpec.cfc:701 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\runners\UnitRunner.cfc:186 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\runners\UnitRunner.cfc:71 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:369 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:170 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:98 [java] [script] [java] [script] Errored: testCreateIndexFilePDF --> Can't delete file [C:\work\Lucee\test\tags\_index4\CFfilex0\file-50norr3kwlud_1_spell\_0.cfs] [java] [script] at [java] [script] C:\work\Lucee\test\tags\Index.cfc:255 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\BaseSpec.cfc:701 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\runners\UnitRunner.cfc:186 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\runners\UnitRunner.cfc:71 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:369 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:170 [java] [script] C:\work\Lucee\temp\testbox\testbox\system\TestBox.cfc:98

https://github.com/lucee/Lucee/blob/6.0/test/tags/Index.cfc

it's leaving behind the following files

Environment

None

Attachments

1
  • 26 Feb 2021, 11:35 am

Activity

Show:

Pothys - MitrahSoft 1 March 2021 at 10:22

I've checked this ticket confirmed the issue happened on lucee latest version 5.3.8.149-SNAPSHOT also. The lock files are created while using cfindex. So cfcollection action = delete can't delete all files and leaves some files. After closing tomcat the lock was released.

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 26 February 2021 at 11:38
Updated 16 December 2022 at 19:13