You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was some discussion (below) about investigating if there should be more strict checks in regards to table state when using tableOperations().online(). Not sure the extent of the current checks, but it at least allows a table to be onlined when it is in a NEW table state which is questionable.
Does the following sound correct? Want to make sure I understand these changes.
Without these changes the table would be in the new state, so client.tableOperations().isOnline(destTable) would have returned false.
The call to client.tableOperations().online(destTable, true) just kinda fix things for the rest of the test.
If that is true, it makes me wonder if the call client.tableOperations().online(destTable, true) should be a bit more strict about what table states it will transition.
Closesapache#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)
There was some discussion (below) about investigating if there should be more strict checks in regards to table state when using
tableOperations().online()
. Not sure the extent of the current checks, but it at least allows a table to be onlined when it is in aNEW
table state which is questionable.Originally posted by @keith-turner in #4115 (comment)
The text was updated successfully, but these errors were encountered: