This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure the HistoryActor only stores task failures once.
Summary: With introducing the instance abstraction, the HistoryActor started to handle both InstanceChanged events and MesosStatusUpdateEvents for storing TaskFailures. This leads to failures being stored twice if both events are translated to a TaskFailure (the second write overwrites the first because we only keep the latest TaskFailure). Mid-term, handling the MesosStatusUpdateEvent should be removed in favor of InstanceChanged, but the current implementation re provided data is not sufficient to do so and requires more changes. This patch prevents the actor from storing the failure twice by going back to handling MesosStatusUpdateEvent onl< for the time being. Related to #4792 Test Plan: sbt test Reviewers: timcharper, aquamatthias, jasongilanfarr Reviewed By: aquamatthias, jasongilanfarr Subscribers: jenkins, marathon-team Differential Revision: https://phabricator.mesosphere.com/D411
- Loading branch information
1 parent
40d19f4
commit bd1c69a
Showing
2 changed files
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters