From ad274268023e37f9ca1268570ef5dbb1df484888 Mon Sep 17 00:00:00 2001 From: Xiaoxi Wang Date: Fri, 19 Aug 2022 14:48:48 -0700 Subject: [PATCH 1/2] allow rk throttle reason being UNSET --- fdbserver/RkTagThrottleCollection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdbserver/RkTagThrottleCollection.cpp b/fdbserver/RkTagThrottleCollection.cpp index 83e6c1e1eb..74f764e4ee 100644 --- a/fdbserver/RkTagThrottleCollection.cpp +++ b/fdbserver/RkTagThrottleCollection.cpp @@ -353,6 +353,7 @@ void RkTagThrottleCollection::incrementBusyTagCount(TagThrottledReason reason) { } else if (reason == TagThrottledReason::BUSY_WRITE) { ++busyWriteTagCount; } else { - ASSERT(false); + ASSERT(reason == TagThrottledReason::UNSET); + CODE_PROBE(true, "tag throttled reason is unset, probable because of upgrading"); } } From 723e5bf7f64e63c811852734cac03c79076c05c8 Mon Sep 17 00:00:00 2001 From: Trevor Clinkenbeard Date: Mon, 22 Aug 2022 13:00:29 -0700 Subject: [PATCH 2/2] Update fdbserver/RkTagThrottleCollection.cpp --- fdbserver/RkTagThrottleCollection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdbserver/RkTagThrottleCollection.cpp b/fdbserver/RkTagThrottleCollection.cpp index 74f764e4ee..a995238bd5 100644 --- a/fdbserver/RkTagThrottleCollection.cpp +++ b/fdbserver/RkTagThrottleCollection.cpp @@ -354,6 +354,6 @@ void RkTagThrottleCollection::incrementBusyTagCount(TagThrottledReason reason) { ++busyWriteTagCount; } else { ASSERT(reason == TagThrottledReason::UNSET); - CODE_PROBE(true, "tag throttled reason is unset, probable because of upgrading"); + CODE_PROBE(true, "tag throttled reason is unset, probably because of upgrading"); } }