-
Notifications
You must be signed in to change notification settings - Fork 131
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
v0.24.0 Space Migration doesn't work with custom data directory #1773
Comments
Since its possible that the data location for a space is not zqdroot/sp_<space_id>, use SpaceRow.DataURI. Closes brimdata/zui#1773
Since its possible that the data location for a space is not zqdroot/sp_<space_id>, use SpaceRow.DataURI. Closes brimdata/zui#1773
Since its possible that the data location for a space is not zqdroot/sp_<space_id>, use SpaceRow.DataURI. Closes brimdata/zui#1773
In preparation to verify the fix, here's a detailed repro. As shown in the attached video, I start from a Import.mp4As noted above, at this point if I upgrade to a release that lacks the Brimcap with the fix in the linked PR (such as Brim commit 7b0b6df, using artifact https://storage.googleapis.com/brimsec-releases/brim/v0.25.0-prerelease-7b0b6df7.0/macos/Brim-0.25.0-prerelease-7b0b6df7.0.dmg) and allow the Space migration to proceed, we see the expected "Some spaces were not migrated" error. The data that I'd imported to the default Data Directory got migrated ok, but for the data I'd imported after changing to the custom Data Directory remained behind in that directory. A Pool is seen as created in anticipation of its migrated data, but it's empty. Repro.mp4 |
Verified with a test artifact https://storage.googleapis.com/brimsec-releases/brim/v0.25.0-prerelease-24bfd33b.0/macos/Brim-0.25.0-prerelease-24bfd33b.0.dmg which is based on Brim commit b174140 but pointed at Brimcap commit As shown in the attached video, having started from the same Verify.mp4While verifying this, I realized that the Data Directory setting may no longer have a purpose, so I've opened separate issue #1788 to pursue that. Thanks @mattnibs! |
To reproduce, open version 24, change the data directory in the preferences, import a file, then checkout the main branch and start the app. You'll see these error messages.
And in the console:
Is it possible to migrate the data when some spaces are in one data directory, while others are elsewhere? I did an experiment where one space was in the default data dir while another space was in a custom data dir. The first space got migrated to a pool, while the second one threw the error above.
The text was updated successfully, but these errors were encountered: