[
https://issues.apache.org/jira/browse/HADOOP-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack updated HADOOP-1574:
--------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
Committed with below message.
HADOOP-1574 Concurrent creates of a table named 'X' all succeed
M src/contrib/hbase/src/test/org/apache/hadoop/hbase/TestTable.java
(testTable): Add checking of actual exceptions thrown and
assertions that we are getting right behavior. Add a test
that has ten clients concurrently trying to create same table.
M src/contrib/hbase/src/java/org/apache/hadoop/hbase/HClient.java
javadoc edit. Fix debug message that could give impression
table was found when it wasn't.
M src/contrib/hbase/src/java/org/apache/hadoop/hbase/HTableDescriptor.java
Added comment on table nameing.
M src/contrib/hbase/src/java/org/apache/hadoop/hbase/HMaster.java
(createTable): Refactored. Bulk moved to a private override.
Changed how check for existance is done.
M rc/contrib/hbase/src/java/org/apache/hadoop/hbase/HRegionInfo.java
(getTableNameFromRegionName): Utility method added.
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-v3.patch, duptable.patch,
> hadoop-1574-v4.patch, hadoop-1574-v5.patch, hadoop-1574-v7.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.