[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2013-05-19 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-6588:
-

   Resolution: Later
Fix Version/s: (was: 0.94.8)
   Status: Resolved  (was: Patch Available)

Change state to Later. Removing from 0.94.

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
Assignee: Zhou wenjian
 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch, HBASE-6588-trunk-v6.patch, 
 HBASE-6588-trunk-v6.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2013-04-11 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-6588:
-

Fix Version/s: (was: 0.94.7)
   0.94.8

We're probably not getting table locking 0.94.
Should do this one then? In any case, moving to 0.94.8.

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
Assignee: Zhou wenjian
 Fix For: 0.94.8

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch, HBASE-6588-trunk-v6.patch, 
 HBASE-6588-trunk-v6.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2013-02-28 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-6588:
-

Fix Version/s: (was: 0.94.6)
   0.94.7

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
Assignee: Zhou wenjian
 Fix For: 0.94.7

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch, HBASE-6588-trunk-v6.patch, 
 HBASE-6588-trunk-v6.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2013-02-01 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-6588:
-

Fix Version/s: (was: 0.94.5)
   0.94.6

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
Assignee: Zhou wenjian
 Fix For: 0.94.6

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch, HBASE-6588-trunk-v6.patch, 
 HBASE-6588-trunk-v6.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-12-19 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-6588:
-

Fix Version/s: (was: 0.94.4)
   0.94.5

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
Assignee: Zhou wenjian
 Fix For: 0.94.5

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch, HBASE-6588-trunk-v6.patch, 
 HBASE-6588-trunk-v6.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-11-03 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-6588:
-

Fix Version/s: (was: 0.94.3)
   0.94.4

Looks like this got abandoned. Moving to 0.94.4.

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
Assignee: Zhou wenjian
 Fix For: 0.94.4

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch, HBASE-6588-trunk-v6.patch, 
 HBASE-6588-trunk-v6.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-30 Thread Lars Hofhansl (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Hofhansl updated HBASE-6588:
-

Fix Version/s: (was: 0.94.2)
   0.94.3

New test still failing moving into 0.94.3

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
Assignee: Zhou wenjian
 Fix For: 0.94.3

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch, HBASE-6588-trunk-v6.patch, 
 HBASE-6588-trunk-v6.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-20 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Attachment: HBASE-6588-trunk-v6.patch

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
Assignee: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch, HBASE-6588-trunk-v6.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-19 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Attachment: HBASE-6588-trunk-v5.patch

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch, HBASE-6588-trunk-v4.patch, 
 HBASE-6588-trunk-v5.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-17 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Attachment: HBASE-6588-trunk-v3.patch

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch, 
 HBASE-6588-trunk-v3.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-16 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Attachment: HBASE-6588-trunk-v2.patch
HBASE-6588-trunk-v2.patch

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-16 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Attachment: (was: HBASE-6588-trunk-v2.patch)

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-16 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Attachment: (was: HBASE-6588-trunk-v2.patch)

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-16 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Attachment: HBASE-6588-trunk-v2.patch

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch, HBASE-6588-trunk-v2.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-15 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Attachment: HBASE-6588-trunk.patch

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Updated] (HBASE-6588) enable table throws npe and leaves trash in zk in competition with delete table

2012-08-15 Thread Zhou wenjian (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-6588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhou wenjian updated HBASE-6588:


Status: Patch Available  (was: Open)

 enable table throws npe and leaves trash in zk in competition with delete 
 table
 ---

 Key: HBASE-6588
 URL: https://issues.apache.org/jira/browse/HBASE-6588
 Project: HBase
  Issue Type: Bug
Affects Versions: 0.94.0
Reporter: Zhou wenjian
 Fix For: 0.94.2

 Attachments: HBASE-6588-trunk.patch


 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:23:36,178 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key ''
 2012-08-15 19:24:09,180 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at ''
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:24:09,183 DEBUG org.apache.hadoop.hbase.master.CatalogJanitor: 
 Scanned 2 catalog row(s) and gc'd 0 unreferenced parent region(s)
 2012-08-15 19:25:12,260 DEBUG 
 org.apache.hadoop.hbase.master.handler.DeleteTableHandler: Deleting region 
 test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META and FS
 2012-08-15 19:25:12,263 INFO org.apache.hadoop.hbase.catalog.MetaEditor: 
 Deleted region test,,1345029764571.d1e24b251ca6286c840a9a5f571b7db1. from META
 2012-08-15 19:25:12,265 INFO 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler: Attemping to 
 enable the table test
 2012-08-15 19:25:12,265 WARN org.apache.hadoop.hbase.zookeeper.ZKTable: 
 Moving table test state to enabling but was not first in disabled state: null
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Creating scanner over .META. starting at key 'test,,'
 2012-08-15 19:25:12,267 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Advancing internal scanner to startKey at 'test,,'
 2012-08-15 19:25:12,270 DEBUG org.apache.hadoop.hbase.client.ClientScanner: 
 Finished with scanning at {NAME = '.META.,,1', STARTKEY = '', ENDKEY = '', 
 ENCODED = 1028785192,}
 2012-08-15 19:25:12,270 ERROR org.apache.hadoop.hbase.executor.EventHandler: 
 Caught throwable while processing event C_M_ENABLE_TABLE
 java.lang.NullPointerException
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.handleEnableTable(EnableTableHandler.java:116)
 at 
 org.apache.hadoop.hbase.master.handler.EnableTableHandler.process(EnableTableHandler.java:97)
 at 
 org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:169)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 table is disabled now, then we enable and delete the table at the same time. 
 Since the thread num of MASTER_TABLE_OPERATIONS is 1 by default. The two 
 operations are serial in master.Before deletetable deletes all the regions in 
 meta, CreateTableHandler ships the check of tableExists,then it will block 
 until deletetable finishs, then CreateTableHandler will set zk enabling, and 
 find no data in meta:
  regionsInMeta = MetaReader.getTableRegions(this.ct, tableName, true);
  int countOfRegionsInTable = regionsInMeta.size();
 npe will be throwed here. And we could not create the same table anymore.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira