[
https://issues.apache.org/jira/browse/HADOOP-2579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559000#action_12559000
]
Hadoop QA commented on HADOOP-2579:
-----------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12373119/2579.patch
against trunk revision r612025.
@author +1. The patch does not contain any @author tags.
javadoc +1. The javadoc tool did not generate any warning messages.
javac +1. The applied patch does not generate any new compiler warnings.
findbugs +1. The patch does not introduce any new Findbugs warnings.
core tests +1. The patch passed core unit tests.
contrib tests +1. The patch passed contrib unit tests.
Test results:
http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1591/testReport/
Findbugs warnings:
http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1591/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results:
http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1591/artifact/trunk/build/test/checkstyle-errors.html
Console output:
http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1591/console
This message is automatically generated.
> initializing a new HTable object against a nonexistent table throws a
> NoServerForRegionException instead of a TableNotFoundException when a
> different table has been created previously
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-2579
> URL: https://issues.apache.org/jira/browse/HADOOP-2579
> Project: Hadoop
> Issue Type: Bug
> Components: contrib/hbase
> Reporter: Peter Dolan
> Attachments: 2579.patch
>
>
> When a table has been created, initializing a new HTable object for that
> table works properly, as expected, but initializing a new HTable against a
> nonexistent table in the same context (a table exists), a
> NoServerForRegionException is thrown instead of TableNotFoundException, as
> would be expected.
> If there haven't been any tables created, initializing a new HTable object
> against 'nosuchTable' throws TableNotFoundException, as expected.
> Running the following TestCase exposes the issue on my machine.
> {code:title=TestHTable.java|borderStyle=solid}
> package org.apache.hadoop.hbase;
> import java.io.IOException;
> import org.apache.hadoop.io.Text;
> /**
> * Tests HTable
> */
> public class TestHTable extends HBaseClusterTestCase implements HConstants {
> public void testTableNotFoundExceptionWithoutAnyTables() {
> try {
> new HTable(conf, new Text("notATable"));
> fail("Should have thrown a TableNotFoundException");
> } catch (TableNotFoundException e) {
> // expected
> } catch (IOException e) {
> e.printStackTrace();
> fail("Should have thrown a TableNotFoundException instead of a " +
> e.getClass());
> }
> }
>
> public void testTableNotFoundExceptionWithATable() {
> try {
> HColumnDescriptor column =
> new HColumnDescriptor(COLUMN_FAMILY.toString());
> HBaseAdmin admin = new HBaseAdmin(conf);
> HTableDescriptor testTableADesc =
> new HTableDescriptor("table");
> testTableADesc.addFamily(column);
> admin.createTable(testTableADesc);
> // This should throw a TableNotFoundException, it has not been created
> new HTable(conf, new Text("notATable"));
>
> fail("Should have thrown a TableNotFoundException");
> } catch (TableNotFoundException e) {
> // expected
> } catch (IOException e) {
> e.printStackTrace();
> fail("Should have thrown a TableNotFoundException instead of a " +
> e.getClass());
> }
> }
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.