summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2020-05-29 14:17:20 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2020-05-29 14:22:58 -0400
commitb9aa2c6b1d2ded7fa1920551b747758e5eebc7bb (patch)
tree9df19b9e3e1b56ac424735be0522bf953f4d2a75
parent0152c1e428b1b0a0bebe3a3e4cba331079d99255 (diff)
downloadcouchdb-b9aa2c6b1d2ded7fa1920551b747758e5eebc7bb.tar.gz
Protect couch_jobs activity monitor against timeouts as well
-rw-r--r--src/couch_jobs/src/couch_jobs_activity_monitor.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/couch_jobs/src/couch_jobs_activity_monitor.erl b/src/couch_jobs/src/couch_jobs_activity_monitor.erl
index abb8982d9..9802f5798 100644
--- a/src/couch_jobs/src/couch_jobs_activity_monitor.erl
+++ b/src/couch_jobs/src/couch_jobs_activity_monitor.erl
@@ -68,9 +68,9 @@ handle_info(check_activity, St) ->
St1 = try
check_activity(St)
catch
- error:{erlfdb_error, 1020} ->
- LogMsg = "~p : type:~p got 1020 error, possibly from overload",
- couch_log:error(LogMsg, [?MODULE, St#st.type]),
+ error:{erlfdb_error, Err} when Err =:= 1020 orelse Err =:= 1031 ->
+ LogMsg = "~p : type:~p got ~p error, possibly from overload",
+ couch_log:error(LogMsg, [?MODULE, St#st.type, Err]),
St
end,
St2 = schedule_check(St1),