You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Murtadha Hubail (JIRA)" <ji...@apache.org> on 2015/11/17 19:41:12 UTC

[jira] [Resolved] (ASTERIXDB-1137) Sporadic BufferCache cleaner thread NPE during test runs

     [ https://issues.apache.org/jira/browse/ASTERIXDB-1137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Murtadha Hubail resolved ASTERIXDB-1137.
----------------------------------------
    Resolution: Fixed

The issue was happening due to the following:
1. Before a page is flushed by the IOManager, it makes sure its file was not deleted.
2. If the file was not deleted, the page is given to the IOManager to be flushed.
3. Right before the page is flushed by the IOManager, another thread deletes the file.

The implemented fix should prevent this behavior.

> Sporadic BufferCache cleaner thread NPE during test runs
> --------------------------------------------------------
>
>                 Key: ASTERIXDB-1137
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1137
>             Project: Apache AsterixDB
>          Issue Type: Bug
>            Reporter: Yingyi Bu
>            Assignee: Murtadha Hubail
>            Priority: Critical
>              Labels: sporadic-error
>
> java.lang.NullPointerException
> 	at org.apache.hyracks.control.nc.io.IOManager.syncWrite(IOManager.java:93)
> 	at org.apache.hyracks.storage.common.buffercache.BufferCache.write(BufferCache.java:435)
> 	at org.apache.hyracks.storage.common.buffercache.BufferCache.access$400(BufferCache.java:46)
> 	at org.apache.hyracks.storage.common.buffercache.BufferCache$CleanerThread.cleanPage(BufferCache.java:499)
> 	at org.apache.hyracks.storage.common.buffercache.BufferCache$CleanerThread.run(BufferCache.java:533)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)