I tried to upgrade marathon from 1.4.8 to new 1.5.8.
All apps were converted to new format automatically once Marathon 1.5.8 took leadership.
App with taskKillGracePeriodSeconds set to "null" are OK.
All apps that had taskKillGracePeriodSeconds parameter set to explicit value was converted incorrectly.
I had 2 apps with taskKillGracePeriodSeconds = 3.
After I upgraded marathon the value of taskKillGracePeriodSeconds became -1294967296 and -296517632.
I reproduced it once again and got one different big negative value and one different positive value. So looks this is random.
Marathon configuration is almost the same as in
State after upgrade:
Logs during upgrade:
P. S. there is a workaround to send PATCH HTTP request to change only taskKillGracePeriodSeconds parameter