HomeMesosphereNo notifications. 4 unresolved issues.

Rename unreachable strategy parameters to avoid API stutter.
ClosedAll Users

Authored by jeschkies on Dec 8 2016, 2:23 PM.

Details

Summary

This renames unreachableInactiveAfter and
unreachbleExpungeAfter to inactiveAfter and expungeAfter to avoid
API stutter such as unreachableStrategy.unreachableInactiveAfter.

Closes #4794.

Test Plan

unit-test

Diff Detail

Repository
rMARATHON marathon
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Changes from before your most recent comment are hidden. Show Older Changes

@janisz could you try an sbt clean before.

janisz added a comment.Dec 8 2016, 3:41 PM

My bad. sbt clean resolved the issue.

janisz added a comment.Dec 8 2016, 4:34 PM

Can't run Marathon with this commit due to flood of following exception:

Caused by: play.api.libs.json.JsResultException: JsResultException(errors:List((/unreachableStrategy/inactiveAfter,List(ValidationError(List(error.path.missing),WrappedArray()))), (/unreachableStrategy/expungeAfter,List(ValidationError(List(error.path.missing),WrappedArray())))))

@janisz Your marathon state seems to contain instances with an unreachableStrategy including the previous Json representation (different property names). Instances are serialized to JSON and stored as a byte string; Unfortunately, we do not have a migration from snapshot to snapshot in place so a state that was created with a snapshot previous to this one cannot be used :|