-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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.10.0]: unexpected "panic: runtime error: index out of range" during restart on v0.10.0 #5772
Comments
V.
Which version is it then? |
v0.10.0 - I know because I built it myself. |
@jonseymour ok, thank you for clarification. |
An example of a panic in master which causes this problem when reverting to v0.10.0 is #5773 |
Ok, looks like this was fixed with 6fb00c1 in 0.11.0. Closing for now. |
The apparent reason for the failure in this scenario is that upon migration to 0.11.0, the MetaServers property is removed from nodes.json. When reverting back to 0.10.0, this property is no longer present and this exercises a code path in the v0.10.0 which is not expecting this property to be missing or empty.
The workaround was to restore the deleted property to node.json and restart the server again. I can see this might cause issues for people migrating from 0.10.0 to 0.11.0 if they switch back to 0.10.0 for some reason - their server will no longer start and they will have to find this issue in order to discover the workaround. Left open for review by @jwilder. Feel free to close it once you have considered the issue. |
@jonseymour in that case, I'd suggest restore from backup. But perhaps it'd be worth of documenting/noting there is a breaking change between v0.10 and v0.11. |
@zstyblik, agreed. |
/cc @beckettsean @pauldix This sounds like something that should be in the docs/announcement for 0.11. I don't think downgrading was ever an officially supported, but with support for |
People do generally have the expectation that they'll be able to downgrade if for some reason the upgrade doesn't work well for them. Although maybe it'll be enough to document and tell people to fully back up if they want to be able to downgrade? |
This should be fixed via #5957. There shouldn't be an issue rolling back to 0.10 from 0.11 now. |
The panic below happens, but only when I revert the local server to one running v0.10.0 after previously running one from master and causing a crash (see #5773).
[update: the fact that master crashed is actually irrelevant - merely starting a "master" version of influx and then reverting to v0.10.0 is sufficient to cause the issue]
I have seen this condition occur 3 times, have 3 small databases which fail when running on v0.10.0 after a crash that occurred running in master.
The text was updated successfully, but these errors were encountered: