You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Chen Luo (JIRA)" <ji...@apache.org> on 2018/10/14 19:48:00 UTC

[jira] [Comment Edited] (ASTERIXDB-2464) createFile() followed by deleteFile() will not unregister the file

    [ https://issues.apache.org/jira/browse/ASTERIXDB-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649510#comment-16649510 ] 

Chen Luo edited comment on ASTERIXDB-2464 at 10/14/18 7:47 PM:
---------------------------------------------------------------

-Why this would cause problems? Line 1026 is mainly for concurrency control to prevent a file being deleted concurrently multiple times.-

I see! If a file is created but never opened, then it won't be deleted...


was (Author: luochen01):
Why this would cause problems? Line 1026 is mainly for concurrency control to prevent a file being deleted concurrently multiple times.

> createFile() followed by deleteFile() will not unregister the file
> ------------------------------------------------------------------
>
>                 Key: ASTERIXDB-2464
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2464
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: HYR - Hyracks, STO - Storage
>            Reporter: Wail Alkowaileet
>            Assignee: Wail Alkowaileet
>            Priority: Major
>
> In [BufferCache.java#L817|https://github.com/apache/asterixdb/blob/adfb63361a1808aadb1782aee03acc4d9af8eb0c/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/BufferCache.java#L817], we create the file and register it. However, it does not belong to a FileHandle.
> In [BufferCache.java#L1026|https://github.com/apache/asterixdb/blob/adfb63361a1808aadb1782aee03acc4d9af8eb0c/hyracks-fullstack/hyracks/hyracks-storage-common/src/main/java/org/apache/hyracks/storage/common/buffercache/BufferCache.java#L1026], the BufferCache will not unregister the file as it's not in the fileInfoMap.
> This probably the reason for the sporadic _the file is already mapped_ issue?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)