Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

remove_node command check system databases #10

@vitovitolo

Description

@vitovitolo

Problem

In CouchDB system dbs and docs starts with an underscore (eg: _id, _rev, _global_changes, _replicator, _users, etc).

The command remove_node retrieves all databases in a CouchDB custer in order to check it's shards.

For some reason the command couldn't finish properly throwing an error

# couchdb-admin --server node1.example.com --admin user --password xxxx remove_node --node node1.example.com
2018/01/10 15:36:43  info Removing node...          node=node1.example.com
2018/01/10 15:36:43  info Checking that node does not own any shard... [email protected]
2018/01/10 15:36:43 error Couldn't remove node!     error=Could not access the _global_changes database node=node1.example.com

The user has admin privileges in CouchDB.

Proposals

  • Filter system databases when retrieve /_all_dbs endpoint before checking it's shard.
  • Delete shard checking when deleting a node: sometimes it's don't necessary remove all it's shards first

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions