You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2008/04/14 20:03:04 UTC
[jira] Commented: (HBASE-577) NPE getting scanner
[ https://issues.apache.org/jira/browse/HBASE-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588664#action_12588664 ]
stack commented on HBASE-577:
-----------------------------
Could have been stacktrace from patched 0.16.0. If so, here is the code that was running with line numbers:
{code}
1186 public HScannerInterface getScanner(Text[] cols, Text firstRow,
1187 long timestamp, RowFilterInterface filter) throws IOException {
1188 lock.readLock().lock();
1189 try {
1190 if (this.closed.get()) {
1191 throw new IOException("Region " + this.getRegionName().toString() +
1192 " closed");
1193 }
1194 TreeSet<Text> families = new TreeSet<Text>();
1195 for(int i = 0; i < cols.length; i++) {
1196 families.add(HStoreKey.extractFamily(cols[i]));
1197 }
1198 List<HStore> storelist = new ArrayList<HStore>();
1199 for (Text family: families) {
1200 HStore s = stores.get(family);
1201 if (s == null) {
1202 continue;
1203 }
1204 storelist.add(stores.get(family));
1205
1206 }
1207 return new HScanner(cols, firstRow, timestamp,
1208 storelist.toArray(new HStore [storelist.size()]), filter);
1209 } finally {
1210 lock.readLock().unlock();
1211 }
1212 }
{code}
> NPE getting scanner
> -------------------
>
> Key: HBASE-577
> URL: https://issues.apache.org/jira/browse/HBASE-577
> Project: Hadoop HBase
> Issue Type: Bug
> Affects Versions: 0.1.2
> Reporter: stack
> Assignee: Jim Kellerman
> Priority: Blocker
> Fix For: 0.1.2
>
>
> Saw following in a 0.1.1 install:
> {code}
> 2008-04-11 16:59:09,820 INFO org.apache.hadoop.ipc.Server: IPC Server handler 3 on 60020, call openScanner(enwiki_test10k,,1197341035929, null, k4xE4Y6SK4dq7I2F2uhRn-==, 9223372036854775807, null) from 208.76.44.136:39230: error: java.io.IOException: java.lang.NullPointerException
> java.io.IOException: java.lang.NullPointerException
> at org.apache.hadoop.hbase.HRegion.getScanner(HRegion.java:1195)
> at org.apache.hadoop.hbase.HRegionServer.openScanner(HRegionServer.java:1449)
> at sun.reflect.GeneratedMethodAccessor9.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:413)
> at org.apache.hadoop.ipc.Server$Handler.run(Server.java:910)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.