-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create fate table in upgrade code #4692
Comments
There seems to be some existing code that creates the fate table in upgrade. However it does not seem to do everything the init code does like set some initial table properties. |
The following is some code that I found that init runs, but could not find upgrade running. Possible I missed something. accumulo/server/base/src/main/java/org/apache/accumulo/server/init/FileSystemInitializer.java Line 179 in 46d8c0b
|
Besides setting properties there seems to be a couple more things that would need to be done during upgrade that FileSystemInitializer is handling for a new system. All of it is driven by the FileSystemInitializer initialize() method:
@keith-turner - I am not sure if I am missing anything else or if that is it. I am thinking we might need to do some refactoring with the initializer so that the upgrade code can also use it. Because the new Scan ref table is used in both 3.1 and elasticity maybe that should be done first in #4652 and include some refactoring, and then we can update elasticity upgrade to use it for Fate as well. It might be tricky to do both tables together in the same commit with Fate only applying to elasticity. |
@cshannon The last piece you need is the table node creation in ZK. If this isn't called then the I agree that the init code needs to be refactored so both upgrade and init can use it. |
The fate table needs to be created in the upgrade process. It should be created exactly the same way as the init code creates the table. Ideally upgrade and init would share code.
The text was updated successfully, but these errors were encountered: