Skip to content
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

Merged

Conversation

tveasey
Copy link
Contributor

@tveasey tveasey commented Jul 4, 2018

This also corrects upgrading the trend component model. The current behaviour could result in large prediction errors immediately after upgrading.

Closes #141.

Copy link
Contributor

@droberts195 droberts195 left a 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()) {
Copy link
Contributor

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.

Copy link

@hendrikmuhs hendrikmuhs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants