[
https://issues.apache.org/jira/browse/HADOOP-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack updated HADOOP-1574:
--------------------------
Attachment: duptable-v2.patch
Version 2. Adds throwing new TableExistsException if attempt at creating an
existing table:
[hbase] Concurrent creates of a table named 'X' all succeed
Make createTable synchronized. Fix test for table 'already-exists'.
M src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestTable.java
Refactor. Add assertions we're getting back right exceptions.
M src/contrib/hbase/src/java/org/apache/hadoop/hbase/HClient.java
Javadoc edits.
(createTable,createTableAsync): Add mention of new TableExistsException.
M src/contrib/hbase/src/java/org/apache/hadoop/hbase/HMaster.java
(createTable): Fix test for existing table. Throw new TableExistsException.
(deleteTable, shutdown, disableTable, enableTable): Make synchronized.
A src/contrib/hbase/src/java/org/apache/hadoop/hbase/TableExistsException.java
Added.
> [hbase] Concurrent creates of a table named 'X' all succeed
> -----------------------------------------------------------
>
> Key: HADOOP-1574
> URL: https://issues.apache.org/jira/browse/HADOOP-1574
> Project: Hadoop
> Issue Type: Bug
> Components: contrib/hbase
> Reporter: stack
> Assignee: stack
> Priority: Minor
> Attachments: duptable-v2.patch, duptable.patch
>
>
> If multiple threads all try to create a table of a particular, all succeed.
> It makes for a mess.
> Create table needs to be synchronized so only one thread creates a table and
> subsequent threads fail with 'table already exits'. The test for
> pre-existence also needs fixing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.