You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2023/03/21 19:38:14 UTC
[couchdb] 01/01: catch and log any error from mem3:local_shards
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch couch_index_crashes
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 207b0d511526ba0292daf8673bcf8f0f232097a8
Author: Robert Newson <Ro...@ibm.com>
AuthorDate: Tue Mar 21 19:37:51 2023 +0000
catch and log any error from mem3:local_shards
---
src/couch_index/src/couch_index_server.erl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/couch_index/src/couch_index_server.erl b/src/couch_index/src/couch_index_server.erl
index 2e368bfc2..e3182eae4 100644
--- a/src/couch_index/src/couch_index_server.erl
+++ b/src/couch_index/src/couch_index_server.erl
@@ -312,7 +312,9 @@ handle_db_event(<<"shards/", _/binary>> = DbName, {ddoc_updated, DDocId}, St) ->
try
mem3:local_shards(mem3:dbname(DbName))
catch
- error:database_does_not_exist ->
+ Class:Msg ->
+ couch_log:notice("~p got ~p:~p when fetching local shards for ~p",
+ [?MODULE, Class, Msg, DbName]),
[]
end,
DbShards = [mem3:name(Sh) || Sh <- LocalShards],