-
Notifications
You must be signed in to change notification settings - Fork 62
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
[ML] Fix bug upgrading state from 5.6 direct to 6.3 causing SIGSEGV on open job #143
[ML] Fix bug upgrading state from 5.6 direct to 6.3 causing SIGSEGV on open job #143
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I just left one suggestion about where an extra comment might help future readers.
@@ -333,7 +333,9 @@ bool CSeasonalComponentAdaptiveBucketing::acceptRestoreTraverser(core::CStateRes | |||
RESTORE(LAST_UPDATES_OLD_TAG, | |||
core::CPersistUtils::fromString(traverser.value(), lastUpdates)) | |||
} while (traverser.next()); | |||
|
|||
if (lastUpdates.empty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could add a comment to say this is needed because lastUpdates
wasn't present in 5.6.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…n open job (elastic#143) Closes elastic#141.
…n open job (elastic#143) Closes elastic#141.
This also corrects upgrading the trend component model. The current behaviour could result in large prediction errors immediately after upgrading.
Closes #141.