Added slave active field in state.json.

Review: https://reviews.apache.org/r/28260
Removed trailing diff/ from review line in commit message.

Review: https://reviews.apache.org/r/28205