You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Eric Tschetter (JIRA)" <ji...@apache.org> on 2009/09/24 23:04:16 UTC
[jira] Created: (HBASE-1865) 0.20.0 TableInputFormatBase NPE
0.20.0 TableInputFormatBase NPE
-------------------------------
Key: HBASE-1865
URL: https://issues.apache.org/jira/browse/HBASE-1865
Project: Hadoop HBase
Issue Type: Bug
Affects Versions: 0.20.0
Reporter: Eric Tschetter
Spot the bug in this code:
public List<InputSplit> getSplits(JobContext context) throws IOException {
byte [][] startKeys = table.getStartKeys();
if (startKeys == null || startKeys.length == 0) {
throw new IOException("Expecting at least one region.");
}
if (table == null) {
throw new IOException("No table was provided.");
}
...
}
Should check if the table is null before calling a method on it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1865) 0.20.0 TableInputFormatBase NPE
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-1865:
-------------------------
Attachment: 1865.patch
Thanks Eric. Would this fix it?
> 0.20.0 TableInputFormatBase NPE
> -------------------------------
>
> Key: HBASE-1865
> URL: https://issues.apache.org/jira/browse/HBASE-1865
> Project: Hadoop HBase
> Issue Type: Bug
> Affects Versions: 0.20.0
> Reporter: Eric Tschetter
> Attachments: 1865.patch
>
>
> Spot the bug in this code:
> public List<InputSplit> getSplits(JobContext context) throws IOException {
> byte [][] startKeys = table.getStartKeys();
> if (startKeys == null || startKeys.length == 0) {
> throw new IOException("Expecting at least one region.");
> }
> if (table == null) {
> throw new IOException("No table was provided.");
> }
> ...
> }
> Should check if the table is null before calling a method on it.
> Admittedly, this isn't the worst bug in the world, it's really just more of a nuisance in that the "No table was provided" message becomes an NPE
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1865) 0.20.0 TableInputFormatBase NPE
Posted by "Eric Tschetter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Tschetter updated HBASE-1865:
----------------------------------
Description:
Spot the bug in this code:
public List<InputSplit> getSplits(JobContext context) throws IOException {
byte [][] startKeys = table.getStartKeys();
if (startKeys == null || startKeys.length == 0) {
throw new IOException("Expecting at least one region.");
}
if (table == null) {
throw new IOException("No table was provided.");
}
...
}
Should check if the table is null before calling a method on it.
Admittedly, this isn't the worst bug in the world, it's really just more of a nuisance in that the "No table was provided" message becomes an NPE
was:
Spot the bug in this code:
public List<InputSplit> getSplits(JobContext context) throws IOException {
byte [][] startKeys = table.getStartKeys();
if (startKeys == null || startKeys.length == 0) {
throw new IOException("Expecting at least one region.");
}
if (table == null) {
throw new IOException("No table was provided.");
}
...
}
Should check if the table is null before calling a method on it.
> 0.20.0 TableInputFormatBase NPE
> -------------------------------
>
> Key: HBASE-1865
> URL: https://issues.apache.org/jira/browse/HBASE-1865
> Project: Hadoop HBase
> Issue Type: Bug
> Affects Versions: 0.20.0
> Reporter: Eric Tschetter
>
> Spot the bug in this code:
> public List<InputSplit> getSplits(JobContext context) throws IOException {
> byte [][] startKeys = table.getStartKeys();
> if (startKeys == null || startKeys.length == 0) {
> throw new IOException("Expecting at least one region.");
> }
> if (table == null) {
> throw new IOException("No table was provided.");
> }
> ...
> }
> Should check if the table is null before calling a method on it.
> Admittedly, this isn't the worst bug in the world, it's really just more of a nuisance in that the "No table was provided" message becomes an NPE
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1865) 0.20.0 TableInputFormatBase NPE
Posted by "Eric Tschetter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Tschetter updated HBASE-1865:
----------------------------------
Description:
Spot the bug in this code:
public List<InputSplit> getSplits(JobContext context) throws IOException {
byte [][] startKeys = table.getStartKeys();
if (startKeys == null || startKeys.length == 0) {
throw new IOException("Expecting at least one region.");
}
if (table == null) {
throw new IOException("No table was provided.");
}
...
}
Should check if the table is null before calling a method on it.
Admittedly, this isn't the worst bug in the world, it's really just more of a nuisance in that the "No table was provided" message becomes an NPE
This bug is in both
org.apache.hadoop.hbase.mapred.TableInputFormatBase
org.apache.hadoop.hbase.mapreduce.TableInputFormatBase
was:
Spot the bug in this code:
public List<InputSplit> getSplits(JobContext context) throws IOException {
byte [][] startKeys = table.getStartKeys();
if (startKeys == null || startKeys.length == 0) {
throw new IOException("Expecting at least one region.");
}
if (table == null) {
throw new IOException("No table was provided.");
}
...
}
Should check if the table is null before calling a method on it.
Admittedly, this isn't the worst bug in the world, it's really just more of a nuisance in that the "No table was provided" message becomes an NPE
> 0.20.0 TableInputFormatBase NPE
> -------------------------------
>
> Key: HBASE-1865
> URL: https://issues.apache.org/jira/browse/HBASE-1865
> Project: Hadoop HBase
> Issue Type: Bug
> Affects Versions: 0.20.0
> Reporter: Eric Tschetter
> Attachments: 1865.patch
>
>
> Spot the bug in this code:
> public List<InputSplit> getSplits(JobContext context) throws IOException {
> byte [][] startKeys = table.getStartKeys();
> if (startKeys == null || startKeys.length == 0) {
> throw new IOException("Expecting at least one region.");
> }
> if (table == null) {
> throw new IOException("No table was provided.");
> }
> ...
> }
> Should check if the table is null before calling a method on it.
> Admittedly, this isn't the worst bug in the world, it's really just more of a nuisance in that the "No table was provided" message becomes an NPE
> This bug is in both
> org.apache.hadoop.hbase.mapred.TableInputFormatBase
> org.apache.hadoop.hbase.mapreduce.TableInputFormatBase
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HBASE-1865) 0.20.0 TableInputFormatBase NPE
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack resolved HBASE-1865.
--------------------------
Resolution: Fixed
Fix Version/s: 0.21.0
0.20.1
Assignee: stack
Applied branch and trunk (Thanks Eric).
> 0.20.0 TableInputFormatBase NPE
> -------------------------------
>
> Key: HBASE-1865
> URL: https://issues.apache.org/jira/browse/HBASE-1865
> Project: Hadoop HBase
> Issue Type: Bug
> Affects Versions: 0.20.0
> Reporter: Eric Tschetter
> Assignee: stack
> Fix For: 0.20.1, 0.21.0
>
> Attachments: 1865.patch
>
>
> Spot the bug in this code:
> public List<InputSplit> getSplits(JobContext context) throws IOException {
> byte [][] startKeys = table.getStartKeys();
> if (startKeys == null || startKeys.length == 0) {
> throw new IOException("Expecting at least one region.");
> }
> if (table == null) {
> throw new IOException("No table was provided.");
> }
> ...
> }
> Should check if the table is null before calling a method on it.
> Admittedly, this isn't the worst bug in the world, it's really just more of a nuisance in that the "No table was provided" message becomes an NPE
> This bug is in both
> org.apache.hadoop.hbase.mapred.TableInputFormatBase
> org.apache.hadoop.hbase.mapreduce.TableInputFormatBase
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1865) 0.20.0 TableInputFormatBase NPE
Posted by "Eric Tschetter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759302#action_12759302 ]
Eric Tschetter commented on HBASE-1865:
---------------------------------------
It actually exists in both the mapreduce package and the mapred package. But yes, that would fix it :).
> 0.20.0 TableInputFormatBase NPE
> -------------------------------
>
> Key: HBASE-1865
> URL: https://issues.apache.org/jira/browse/HBASE-1865
> Project: Hadoop HBase
> Issue Type: Bug
> Affects Versions: 0.20.0
> Reporter: Eric Tschetter
> Attachments: 1865.patch
>
>
> Spot the bug in this code:
> public List<InputSplit> getSplits(JobContext context) throws IOException {
> byte [][] startKeys = table.getStartKeys();
> if (startKeys == null || startKeys.length == 0) {
> throw new IOException("Expecting at least one region.");
> }
> if (table == null) {
> throw new IOException("No table was provided.");
> }
> ...
> }
> Should check if the table is null before calling a method on it.
> Admittedly, this isn't the worst bug in the world, it's really just more of a nuisance in that the "No table was provided" message becomes an NPE
> This bug is in both
> org.apache.hadoop.hbase.mapred.TableInputFormatBase
> org.apache.hadoop.hbase.mapreduce.TableInputFormatBase
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.