Skip to content

Added new Locked state#6210

Draft
ArbaazKhan1 wants to merge 1 commit intoapache:mainfrom
ArbaazKhan1:accumulo-6151
Draft

Added new Locked state#6210
ArbaazKhan1 wants to merge 1 commit intoapache:mainfrom
ArbaazKhan1:accumulo-6151

Conversation

@ArbaazKhan1
Copy link
Contributor

closes issue #6151

Added a new Enum LOCKED to TableState and InitialTableState and deprecated OFFLINE. I have so far only added in the new usage of LOCKED into the basic functionality, I still need to update all the test for the new state. But I figured to make the draft now so to get feedback on its direction. I have also left in the usage of OFFLINE state to not break anything just yet, but have had to add in a couple supresswarnings to ensure it builds. I did not do anything with upgrade behavior to support transition from OFFLINE to LOCKED and I also left OfflineIterator alone for the most part, but I'm not entirely sure how I should handle them going forward.

The new LOCKED state blocks all operations, except delete, on a table. It does allow for table export (to replace OFFLINE) and dose NOT unhost tablets (stay in their current hosting state). The thought was that LOCKED is a "frozen" state and not a "shutdown" state. If you need tablets to be unhosted, you can use TabletAvailability settings in combination with lock(). The new state slow is as follows:

NEW -> (ONLINE | OFFLINE | LOCKED) <--> DELETING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove offline status for a table

1 participant