You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org> on 2011/07/11 15:26:00 UTC

[jira] [Created] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

If Enable table is not completed and is partial, then scanning of the table is not working 
-------------------------------------------------------------------------------------------

                 Key: HBASE-4083
                 URL: https://issues.apache.org/jira/browse/HBASE-4083
             Project: HBase
          Issue Type: Bug
            Reporter: ramkrishna.s.vasudevan



Consider the following scenario
Start the Master, Backup master and RegionServer.
Create a table which in turn creates a region.
Disable the table.
Enable the table again. 
Kill the Active master exactly at the point before the actual region assignment is started.
Restart or switch master.
Scan the table.
NotServingRegionExcepiton is thrown.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

    Attachment: HBASE-4083-1.patch

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-4083-1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

    Fix Version/s:     (was: 0.90.6)
                   0.92.0
                   0.90.7

Not fixed in 0.90.  Hence not resolving the issue.  But committed in trunk and 0.92

                
> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.7, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_0.90_1.patch, HBASE-4083_trunk.patch, HBASE-4083_trunk_1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
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] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067693#comment-13067693 ] 

ramkrishna.s.vasudevan commented on HBASE-4083:
-----------------------------------------------

I am not able to write the testcase to cover the scenarios as it involves killing the master when the table state in zookeeper is changed to ENABLING.

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

    Attachment: HBASE-4083_0.90.patch

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

    Attachment: HBASE-4083_0.90_1.patch

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_0.90_1.patch, HBASE-4083_trunk.patch, HBASE-4083_trunk_1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-4083:
-------------------------

      Description: 
Consider the following scenario
Start the Master, Backup master and RegionServer.
Create a table which in turn creates a region.
Disable the table.
Enable the table again. 
Kill the Active master exactly at the point before the actual region assignment is started.
Restart or switch master.
Scan the table.
NotServingRegionExcepiton is thrown.


  was:

Consider the following scenario
Start the Master, Backup master and RegionServer.
Create a table which in turn creates a region.
Disable the table.
Enable the table again. 
Kill the Active master exactly at the point before the actual region assignment is started.
Restart or switch master.
Scan the table.
NotServingRegionExcepiton is thrown.


    Fix Version/s:     (was: 0.94.0)
                   0.90.5

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.5
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_0.90_1.patch, HBASE-4083_trunk.patch, HBASE-4083_trunk_1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

        Fix Version/s: 0.92.0
                       0.90.4
    Affects Version/s: 0.90.3
               Status: Patch Available  (was: Open)

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "Jonathan Hsieh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Hsieh updated HBASE-4083:
----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.90.7)
                   0.94.0
           Status: Resolved  (was: Patch Available)

Removed from 0.90, was committed to trunk/0.94.0 back in July 2011..  Please file new issue if you want to get it into 0.90.
                
> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.94.0, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_0.90_1.patch, HBASE-4083_trunk.patch, HBASE-4083_trunk_1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
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] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068442#comment-13068442 ] 

stack commented on HBASE-4083:
------------------------------

bq. The return type RegionOpeningStates has to be added in the map in HbaseObjectWritable otherwise IPC error is thrown saying unexpected code.

Good.  You tested this distributed.  Funny how distributed turns up issues.  Thanks for doing this.

Don't change the ipc version.  This will for sure break rolling restarts.

Sounds like you did sufficient testing.  I'll test rolling restart when we cut a 0.90.4.  If its broken, will back out this patch in 0.90 and cut a new release candidate.  I'm willing to do this given the testing you did above Ram.  Thanks.



> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063330#comment-13063330 ] 

ramkrishna.s.vasudevan commented on HBASE-4083:
-----------------------------------------------

This issue is similar to HBASE-4052 (improper disabling of table).
Following scenarios needs to be considered.
If a table T1 has three regions R1, R2 and R3 
The table T1 is disabled successfully.
We now issue an enable command for T1
Scenario 1:
===========
All the regions R1, R2 and R3 are onlined and the state in zookeeper for the table is ENABLING and then the Active master went down,
R1- online
R2- online			T1-ENABLING
R3-online
	Here the scan will work properly but the table state will be ENABLING.(This is not a problem in the user perspective when he tries to scan but as per the state of the system this is a serious concern).
Scenario:2
==========
None of the regions R1, R2 and R3 are onlined but the Active Master went down when the zookeeper state for the table was in ENABLING.
R1- Offlined
R2- Offlined			T1-ENABLING
R3-Offlined
Here the scan operation performed on the table will throw NotServingRegionException.
Scenario:3
========
The regions R1, R2  are onlined and R3 are not yet onlined and the Active Master went down when the zookeeper state was ENABLING.
R1- online
R2- online		T1-ENABLING
R3-offlined

Here the offlined regions cannot be scanning and NotServingRegionException will be thrown. 


> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

    Status: Open  (was: Patch Available)

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

    Attachment: HBASE-4083_trunk.patch

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067732#comment-13067732 ] 

stack commented on HBASE-4083:
------------------------------

If you do, then I think you need to prove that a client that doesn't have this patch can talk to a server that does have it (We can't break rolling upgrades)

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063794#comment-13063794 ] 

ramkrishna.s.vasudevan commented on HBASE-4083:
-----------------------------------------------

The soln can be similar as that of HBASE-4052.
Here we have to make following changes

=> if the table state is in ENABLING state do not populate in the regions map.
=> Recover by calling EnableProcessHandler.  this will try to enable the table by
onlining the regions.
Case 1:
======
If the regions were not onlined.
=> The enable handler will online all the regions and make the table state to 
ENABLED
=> Scanning will work fine

Case 2 :
========
If the regions were not onlined
=> There is a check in the OpenRegionHandler to see if the region is already onlined
=> Move the check to HRegionServer openRegion() api.
=> Create a new exception class AlreadyOnlinedException and throw it from RS.
=> In the assign() api in AssignmentManager catch this exception and add those
regions to the regions map.
=> This will ensure that the table is moved to ENABLED state.
Note:
=====
Here instead of throwing an exception we can add a return type to openRegion() in the HRegionInterface.  Both involves an interface change.
Can we proceed like this or is there any other better way?


> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

    Status: Patch Available  (was: Open)

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_0.90_1.patch, HBASE-4083_trunk.patch, HBASE-4083_trunk_1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067729#comment-13067729 ] 

stack commented on HBASE-4083:
------------------------------

We can't do this for 0.90:

{code}
-  public void openRegion(final HRegionInfo region) throws IOException;
+  public RegionOpeningState openRegion(final HRegionInfo region) throws IOException;
{code}

Doesn't it change the interface?  I'm afraid this will break our ability to do a rolling restart between point releases on 0.90 (It might just work but unless you have tried it...)

I like this moving the check of whether region is online or not up into RegionServer and out of the handler.

This patch looks great otherwise.  I like whats going on in here.  Thanks for doing the work Ram.

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066924#comment-13066924 ] 

Ted Yu commented on HBASE-4083:
-------------------------------

Shall we create an enum and use that as return type for:
{code}
+  public boolean openRegion(final HRegionInfo region) throws IOException;
{code}
so that future addition for the above method has room for manipulation without changing RPC again.

When deleting the node, I think we should take care of the following case of KeeperException and not abort server:
{code}
    } catch (KeeperException.NoNodeException nne) {
{code}

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-4083-1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071532#comment-13071532 ] 

stack commented on HBASE-4083:
------------------------------

Applied to TRUNK.  Thanks Ram.

(i swapped order under openRegion so we check if in transition first and THEN check if its open rather than other way round).

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.5
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_0.90_1.patch, HBASE-4083_trunk.patch, HBASE-4083_trunk_1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan updated HBASE-4083:
------------------------------------------

    Attachment: HBASE-4083_trunk_1.patch

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_0.90_1.patch, HBASE-4083_trunk.patch, HBASE-4083_trunk_1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068276#comment-13068276 ] 

ramkrishna.s.vasudevan commented on HBASE-4083:
-----------------------------------------------

@Stack,
I found one problem with the patch
The return type RegionOpeningStates has to be added in the map in HbaseObjectWritable otherwise IPC error is thrown saying unexpected code.

Is there any where else we need to change. Because i found a comment in the HRegionInterface saying that
any change done here we need to change the HBaseRPCProtocolVersion.java.
Do i need to change the version ?

One more thing is I tested the scenario that you had mentioned,
The Master had the patch whereas the RS did not have the patch. So whenever a region is opened it return a null value in the master side.  
So there is no compatability problem but the scenario of partial enabling may not work. 
Is it fine Stack? Do i need to verify any other thing? 
I will resubmit the patch shortly.



> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066787#comment-13066787 ] 

ramkrishna.s.vasudevan commented on HBASE-4083:
-----------------------------------------------

@Ted, thanks for the review.
We need to delete the node in zookeeper which is in offline state.  Because as part of recovery when we try to enable the table , the regions of the table  may be already onlined so we just try to delete the node created for that region.
If we dont delete the node, scans can be performed but if we try to disable the table it may not work as already the node is created in zookeeper.
So thats why any failure while deleting the node i thouhgt of aborting the master which is the way we have handled in 
public void offlineDisabledRegion(HRegionInfo regionInfo) and in 
OpenedRegionHandler.process() api.
Please provide your comments.

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-4083-1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ramkrishna.s.vasudevan reassigned HBASE-4083:
---------------------------------------------

    Assignee: ramkrishna.s.vasudevan

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065812#comment-13065812 ] 

ramkrishna.s.vasudevan commented on HBASE-4083:
-----------------------------------------------

The patch attached is for review.(not the formal patch).
As there are changes in AssignmentManager.java unless HBASE-4052 gets committed I cannot create the actual patch.
This patch is from 0.90 branch.  Includes changes for both HBASE-4052 and HBASE-4083.
Once HBASE-4052 is committed will submit the patch for trunk also as similar changes needs to be done. 


> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-4083-1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063876#comment-13063876 ] 

Ted Yu commented on HBASE-4083:
-------------------------------

I don't see EnableProcessHandler class. Did you mean EnableTableHandler ?

For case 2, since OpenRegionHandler.process() doesn't throw exception for online region, I think we should let openRegion() return boolean:
{code}
  public boolean openRegion(HRegionInfo region)
{code}

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071591#comment-13071591 ] 

Hudson commented on HBASE-4083:
-------------------------------

Integrated in HBase-TRUNK #2055 (See [https://builds.apache.org/job/HBase-TRUNK/2055/])
    HBASE-4083 If Enable table is not completed and is partial, then scanning of the table is not working

stack : 
Files : 
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/ipc/HRegionInterface.java
* /hbase/trunk/CHANGES.txt
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/handler/OpenRegionHandler.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/RegionOpeningState.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java


> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.5
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_0.90_1.patch, HBASE-4083_trunk.patch, HBASE-4083_trunk_1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067750#comment-13067750 ] 

ramkrishna.s.vasudevan commented on HBASE-4083:
-----------------------------------------------

@Stack, yes it is an interface change. Thought a while before doing it.
The rolling restart behaviour with and without patch of 0.90 releases i will check it.


> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067731#comment-13067731 ] 

stack commented on HBASE-4083:
------------------------------

TRUNK patch looks  good to me.  Do you need this fix in 0.90 Ram?

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.3
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>             Fix For: 0.90.4, 0.92.0
>
>         Attachments: HBASE-4083-1.patch, HBASE-4083_0.90.patch, HBASE-4083_trunk.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066348#comment-13066348 ] 

Ted Yu commented on HBASE-4083:
-------------------------------

Please generate new patch now that HBASE-4052 is resolved.
{code}
+          } catch (KeeperException e) {
+            master.abort(
+                "Error deleting OFFLINED node in ZK for transition ZK node ("
{code}
Can we deal with the error in a better way ?

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-4083-1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066986#comment-13066986 ] 

ramkrishna.s.vasudevan commented on HBASE-4083:
-----------------------------------------------

So if the node is not present, then we have no problems we can just log it.
If we are not able to delete the node then? so subsequent disable may cause issue right ?



> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-4083-1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4083) If Enable table is not completed and is partial, then scanning of the table is not working

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066996#comment-13066996 ] 

Ted Yu commented on HBASE-4083:
-------------------------------

If we are unable to delete the node, we can stop the server. 

> If Enable table is not completed and is partial, then scanning of the table is not working 
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-4083
>                 URL: https://issues.apache.org/jira/browse/HBASE-4083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-4083-1.patch
>
>
> Consider the following scenario
> Start the Master, Backup master and RegionServer.
> Create a table which in turn creates a region.
> Disable the table.
> Enable the table again. 
> Kill the Active master exactly at the point before the actual region assignment is started.
> Restart or switch master.
> Scan the table.
> NotServingRegionExcepiton is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira