Store v1: Report writes refused because the journal can't be trimmed #181
Open
koolkhel
wants to merge 3 commits from
koolkhel/vitastor:v1-journal-full-log into master
pull from: koolkhel/vitastor:v1-journal-full-log
merge into: vitalif:master
vitalif:master
vitalif:primary-stickiness
vitalif:libvfn
vitalif:canceling
vitalif:immediate-repeering
vitalif:rdma-close-tcp
vitalif:use-degraded-writes
vitalif:fix-write-delete-flow
vitalif:openssl-3.0.12
vitalif:openssl-capture-secrets
vitalif:ignore-small-rdma-end
vitalif:encrypt-batch
vitalif:faster-peering-calc
vitalif:http-hello
vitalif:xxh3-bench
vitalif:create-user-etcd-based
vitalif:aesxts_streaming_nosupport
vitalif:refactor-heap-continue-write
vitalif:ston3lu-patch-0127
vitalif:rdma-credits
vitalif:heap-meta
vitalif:sendmsg-zc-no-more-error
vitalif:fix-clear-refs
vitalif:veeam-trick
vitalif:test-etcd-schizo
vitalif:test
vitalif:test1
vitalif:test2
vitalif:cow-meta
vitalif:kv-readahead
vitalif:qemu-fix-crash-idea
vitalif:eventloop-auto-init-trigger
vitalif:hugo-docs
vitalif:node-mutex-and-postpone
vitalif:check-writeback
vitalif:msgr-iothreads-v2
vitalif:antietcd
vitalif:rel-1.4
vitalif:test-fix-ec-unknown-state-51
vitalif:kv-update
vitalif:kv-debug
vitalif:hotfix-1.2.0
vitalif:rdma-simple-nodp
vitalif:zerocopy-tcp-send
vitalif:csi-staging
vitalif:hotfix-1.1.0
vitalif:hotfix-1.0.0
vitalif:fsync-feedback
vitalif:cached-reads
vitalif:qemu-send-loop
vitalif:test-double-alloc
vitalif:hier-failure-domains
vitalif:mon-self-restart
vitalif:epoch-deletions
vitalif:rdma-flow-control
vitalif:csi-use-vitastor-cli
vitalif:rdma-v2
vitalif:etcd-hide-base64
vitalif:lrc-matrix
vitalif:rm-left-on-dead
vitalif:nfs-proxy-old
vitalif:non-odp-rdma
vitalif:test-zctr
vitalif:separate-data-connections
vitalif:sec_osd_msgr
vitalif:test-assert
vitalif:nbd-vmsplice
vitalif:allow-etcd-address-option
vitalif:rdma-zerocopy
vitalif:rel-0.5
vitalif:openonload
vitalif:sync-io-test
vitalif:trace-sync
vitalif:trace-sqes
vitalif:test-submit-and-wait
vitalif:test-sq-poll
vitalif:blocking-uring-test
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "koolkhel/vitastor:v1-journal-full-log"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The old store refuses writes with EAGAIN when its journal is full and nothing in it can be flushed. That is by design since
c35e1013, and clients retry such writes. But the only message about it is "Ran out of journal space" with log_level > 5, so an OSD can refuse writes for hours with nothing in its log.Store v1: Report writes refused because the journal can't be trimmed. When it happens, print a line at most once in 10 seconds, at any log level. The line gives used_start/next_free, the number of objects with unstable writes, and the oldest journal entry still in use:
From
test_write_no_space_eagain:Journal is full and nothing in it can be flushed, refusing writes with EAGAIN (used_start=00001000 next_free=000f9000, 4 objects with unstable writes, oldest entry 1:0 v1 unstable)Store v1: Test a write over a deletion which is being flushed. This is a regression test for
4ee30fa7(#114), which went in without one. It holds the flusher's I/O so that a write lands on a deletion while that deletion is flushed, then writes 2000 x 4 KB to other objects through a 1 MB journal.4ee30fa7, 1867 of them fail with EAGAIN and the write over the deletion is never flushed. The new report then prints0 objects with unstable writes, oldest entry 1:0 v1 stable.Tested: test_blockstore_v1 passes.
Contributor Name
Yury Luneff (MIND Software LLC, https://mindsw.io)
CLA
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.