Logging in the legacy protocol is blocking on the sender of the logs #935
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#935
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
This is unlikely to get fixed any time soon for like, several reasons (synchronization of the things happening on the daemon socket being chief among them), but it must be noted that the legacy protocol has a blocking logger, and the replacement protocol will not do this obviously. It's as yet unclear to me whether logging in general should have backpressure or lose events (probably the former is preferable, but with a buffer).
This issue is thus unlikely to be actionable; it's just a note that it's a known problem.
Emilazy says on matrix that the correct solution doesn't involve losing logs, so some backpressure is thus likely necessary.
backpressure is absolutely mandatory or we're going to kill perf. synchronization at the end of each operation is thus also mandatory or we may hold log items of operations not behaving quite as they should back for very long, eg during IFD store operations. (recall that printError is a thing that's used liberally for error reporting)