[BUG]: Got error while calculating total size of directory:
Author: AbhishekRamamurthyCreated Sep 27, 2024Updated Jun 22, 2026
Labelskind/bugStale
What version of Badger are you using?
github.com/dgraph-io/badger/v4 v4.3.0
What version of Go are you using?
go 1.23.1
Have you tried reproducing the issue with the latest release?
None
What is the hardware spec (RAM, CPU, OS)?
x86_64
What steps will reproduce the bug?
k8s with rook-ceph-block volume mount.
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: labels: spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi storageClassName: rook-ceph-block
and badger is using the mount volume to save the record.
2024-09-27T00:37:48.502Z DEBUG badger/zap_logger.go:27 Got error while calculating total size of directory: /cache_db
2024-09-27T00:38:48.502Z DEBUG badger/zap_logger.go:27 Got error while calculating total size of directory: /cache_dbExpected behavior and actual result.
shouldn't see the error
Additional information
go application running in k8s cluster with rook-ceph-block volume mount PVC, this is used as badger scratch space.
Source: dgraph-io/badger