Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete file used for database import #1627

Open
dijef opened this issue Jun 6, 2024 · 0 comments
Open

Cannot delete file used for database import #1627

dijef opened this issue Jun 6, 2024 · 0 comments

Comments

@dijef
Copy link

dijef commented Jun 6, 2024

ArcadeDB Version:

24.5.1, embedded installation (I believe it applies to server too)

OS and JDK Version:

Windows 11, Adoptium 21.0.1+12

Expected behavior

After import from file completes, I expect process to close file streams so I can delete it.

Actual behavior

After import from file completes, file is in use and cannot be deleted. It may apply to other formats than 'graphson' also.

Steps to reproduce

Import attached file:
db_20240606t103727.gz

Must rename the file from db_20240606t103727.gz to db_20240606t103727.graphson (it does not detect format correctly otherwise) after download.

Use code written below:

Database db = null; // define local database here
Path path = Paths.get(path_to_file);
db.begin();
new com.arcadedb.integration.importer.Importer(db, path.toString()).load();

I reach same behaviour when using SQL IMPORT and EXPORT statement, however I use direct Java API as I need control over the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant