[ https://issues.apache.org/jira/browse/ASTERIXDB-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wail Alkowaileet updated ASTERIXDB-2464: ---------------------------------------- Description: 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? was: 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 issue of the file is already mapped issue? > 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 > 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)