kevinrr888 opened a new pull request, #4165:
URL: https://github.com/apache/accumulo/pull/4165

   Closes #4132
   
   Prior to these changes, users were able to manually transition a table from 
the NEW state to another state. More specifically, calls to 
TableOperations.online() and TableOperations.offline() when the table was in 
the NEW state were acceptable. Users should not be able to transition a table 
from the NEW state as this should only be done by the system upon successfully 
creating/cloning/importing the table.
   
   Changes:
   - Added new param expectedCurrStates to TableManager.transitionTableState()
   - Users can now only manually change a table from 
[ONLINE/OFFLINE]->[ONLINE/OFFLINE] (FateServiceHandler)
   - Added field expectedCurrStates to ChangeTableState
   - Table clones, creations, and imports now explicitly expect the current 
state before completion to be NEW (FinishCloneTable, FinishCreateTable, 
FinishImportTable)
   - Table deletions now explicitly expect the current state before deletion to 
be only ONLINE or OFFLINE (DeleteTable)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to