Closed ghouscht closed 2 weeks ago
/assign
Will take care of this.
Apparently if everything works as expected the temp file is closed:
tmpdb.Close
(*bbolt.DB) is called here: https://github.com/etcd-io/etcd/blob/7b70b5f6aebe5be44691b605d5b0d179c106cbc0/server/storage/backend/backend.go#L532 (which also closes the file descriptor of the db file)tmpdb.Close
also closes the temp
file descriptorProbably in one of the error cases this doesn't happen. Need to check.
This is done. All PRs, including the ones for the backports to 3.4 and 3.5 have been merged.
Bug report criteria
What happened?
Some temp file(s) (https://github.com/etcd-io/etcd/blob/bd8896364a1d9adb554b538232004e5b2d6c850a/server/storage/backend/backend.go#L487) might not be closed during defrag. See discussion https://github.com/etcd-io/etcd/pull/18822#discussion_r1830692111 for more details.