Skip to content

etcdutl hash command hangs indefinitely if db is locked #20276

@jmhbnz

Description

@jmhbnz

Bug report criteria

What happened?

Run etcdutl hash <dbfile> on a file that is in use by an etcd process.

Command hangs indefinitely.

What did you expect to happen?

Either command completes or an error is returned after a default timeout period advising file is locked by another process.

How can we reproduce it (as minimally and precisely as possible)?

  1. Compile etcdutl on main.

  2. Run compiled bin/etcd

  3. Run bin/etcdutl hash <dbfilepath> on a db file that is in use by the etcd process.

  4. Observe command hanging indefinitely.

Anything else we need to know?

No response

Etcd version (please run commands below)

main, i.e. 3.7 alpha.

Etcd configuration (command line flags or environment variables)

No response

Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)

No response

Relevant log output

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions