You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ch...@apache.org on 2019/03/18 20:44:22 UTC
[mesos] 01/02: Fixed an agent crash bug when SLRP recovers dropped
operations.
This is an automated email from the ASF dual-hosted git repository.
chhsiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 75ce143ada048b3cce75e470fdda3207d8e48957
Author: Chun-Hung Hsiao <ch...@mesosphere.io>
AuthorDate: Mon Mar 18 11:14:36 2019 -0700
Fixed an agent crash bug when SLRP recovers dropped operations.
Review: https://reviews.apache.org/r/70232
---
src/resource_provider/storage/provider.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/resource_provider/storage/provider.cpp b/src/resource_provider/storage/provider.cpp
index fea623c..2711503 100644
--- a/src/resource_provider/storage/provider.cpp
+++ b/src/resource_provider/storage/provider.cpp
@@ -1273,9 +1273,11 @@ StorageLocalResourceProviderProcess::reconcileOperationStatuses()
case OPERATION_FAILED:
++metrics.operations_failed.at(operation.info().type());
break;
+ case OPERATION_DROPPED:
+ ++metrics.operations_dropped.at(operation.info().type());
+ break;
case OPERATION_UNSUPPORTED:
case OPERATION_ERROR:
- case OPERATION_DROPPED:
case OPERATION_UNREACHABLE:
case OPERATION_GONE_BY_OPERATOR:
case OPERATION_RECOVERING: