hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-1809) NPE thrown in BoundedRangeFileInputStream
Date Fri, 25 Sep 2009 19:27:16 GMT

    [ https://issues.apache.org/jira/browse/HBASE-1809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759715#action_12759715
] 

stack commented on HBASE-1809:
------------------------------

I just ran into this on an 0.20.0RC2 hbase:

{code}
2009-09-24 23:14:45,578 DEBUG org.apache.hadoop.hbase.regionserver.Store: Completed compaction
of info; new storefile is hdfs://XX.XX.XX.XX:10000/hbase/coral_hbase/.META./1028785192/info/1652111193973935565;
store size is 752.9k
2009-09-24 23:14:45,581 INFO org.apache.hadoop.hbase.regionserver.HRegion: compaction completed
on region .META.,,1 in 0sec
2009-09-24 23:14:45,607 ERROR org.apache.hadoop.hbase.regionserver.HRegionServer: 
java.lang.NullPointerException
        at org.apache.hadoop.hbase.io.hfile.BoundedRangeFileInputStream.read(BoundedRangeFileInputStream.java:97)
        at org.apache.hadoop.io.IOUtils.readFully(IOUtils.java:100)
        at org.apache.hadoop.hbase.io.hfile.HFile$Reader.decompress(HFile.java:979)
        at org.apache.hadoop.hbase.io.hfile.HFile$Reader.readBlock(HFile.java:936)
        at org.apache.hadoop.hbase.io.hfile.HFile$Reader$Scanner.loadBlock(HFile.java:1258)
        at org.apache.hadoop.hbase.io.hfile.HFile$Reader$Scanner.seekTo(HFile.java:1141)
        at org.apache.hadoop.hbase.regionserver.StoreFileGetScan.getStoreFile(StoreFileGetScan.java:80)
        at org.apache.hadoop.hbase.regionserver.StoreFileGetScan.get(StoreFileGetScan.java:65)
        at org.apache.hadoop.hbase.regionserver.Store.get(Store.java:1442)
        at org.apache.hadoop.hbase.regionserver.HRegion.getClosestRowBefore(HRegion.java:1043)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.getClosestRowBefore(HRegionServer.java:1755)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:650)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
2009-09-24 23:14:45,607 ERROR org.apache.hadoop.hbase.regionserver.HRegionServer: 
java.io.IOException: Stream closed
        at org.apache.hadoop.hdfs.DFSClient$DFSInputStream.read(DFSClient.java:1705)
        at java.io.DataInputStream.read(Unknown Source)
        at org.apache.hadoop.hbase.io.hfile.BoundedRangeFileInputStream.read(BoundedRangeFileInputStream.java:99)
        at org.apache.hadoop.io.IOUtils.readFully(IOUtils.java:100)
        at org.apache.hadoop.hbase.io.hfile.HFile$Reader.decompress(HFile.java:979)
        at org.apache.hadoop.hbase.io.hfile.HFile$Reader.readBlock(HFile.java:936)
        at org.apache.hadoop.hbase.io.hfile.HFile$Reader$Scanner.loadBlock(HFile.java:1258)
        at org.apache.hadoop.hbase.io.hfile.HFile$Reader$Scanner.seekTo(HFile.java:1141)
        at org.apache.hadoop.hbase.regionserver.StoreFileGetScan.getStoreFile(StoreFileGetScan.java:80)
        at org.apache.hadoop.hbase.regionserver.StoreFileGetScan.get(StoreFileGetScan.java:65)
        at org.apache.hadoop.hbase.regionserver.Store.get(Store.java:1442)
        at org.apache.hadoop.hbase.regionserver.HRegion.getClosestRowBefore(HRegion.java:1043)
        at org.apache.hadoop.hbase.regionserver.HRegionServer.getClosestRowBefore(HRegionServer.java:1755)
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:650)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
{code}

So a compaction completion and then just after -- about 30ms -- a read comes in and gets NPE
I guess because its going against a closed storefile.

> NPE thrown in BoundedRangeFileInputStream
> -----------------------------------------
>
>                 Key: HBASE-1809
>                 URL: https://issues.apache.org/jira/browse/HBASE-1809
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: io
>         Environment: All
>            Reporter: Mathias Herberts
>            Assignee: stack
>            Priority: Critical
>             Fix For: 0.20.1
>
>         Attachments: 1809-v2.patch, 1809.patch, HFile-returnDecompressor.patch
>
>
> NPE is thrown in BoundedRangeFileInputStream.read when attempting to synchronize on 'in'
(line 97).
> This probably means the BRFIS was created with a null FSDIS.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message