Skip to content

unknown_error : shutdown while querying a view #1706

Description

@mariocasciaro

A query to a view (GET /{db}/_design/{ddoc}/_view/{view}) randomly returned an unknown_error : shutdown. I found the following in the logs:

[error] 2018-10-30T01:55:39.748188Z couchdb@<obfuscated> <0.2708.1249> e22ce58db7 rexi_server: from: couchdb@<obfuscated>(<0.6510.1235>) mfa: fabric_rpc:map_view/5 throw:shutdown [{couch_mrview_util,get_view_index_state,5,[{file,"src/couch_mrview_util.erl"},{line,101}]},{couch_mrview_util,get_view,4,[{file,"src/couch_mrview_util.erl"},{line,45}]},{couch_mrview,query_view,6,[{file,"src/couch_mrview.erl"},{line,244}]},{rexi_server,init_p,3,[{file,"src/rexi_server.erl"},{line,139}]}]
[error] 2018-10-30T01:55:39.748746Z couchdb@<obfuscated> <0.6510.1235> e22ce58db7 req_err(4112032074) unknown_error : shutdown
    [<<"couch_mrview_util:get_view_index_state/5 L101">>,<<"couch_mrview_util:get_view/4 L45">>,<<"couch_mrview:query_view/6 L244">>,<<"rexi_server:init_p/3 L139">>]

Sorry if I can't give you more detailed info, that's all I've got at the moment.

Expected Behavior

The query should return a result not an error.

Current Behavior

The query returned - only in that one instance, for now - the following error:

{
  "error": "unknown_error",
  "reason": "shutdown",
  "ref": 4112032074,
  "name": "unknown_error",
  "status": 500,
  "message": "shutdown" 
}

Possible Solution

Steps to Reproduce (for bugs)

Cannot reproduce, the bug happened once.

Context

Your Environment

  • Version used: 2.1.2
  • Operating System and version (desktop or mobile): Ubuntu 16.04.4
  • Running a cluster with 3 nodes and no sharding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions