Repository navigation
Conversation
… logs by session The operator topic's `Node` now carries the host's open sessions: ID, session type, destination key, open claims and phase. The topic counts open claims per session from the feed's changes instead of scanning every claim, and reads session phases from JVM reports whenever a commit or health pass recomputes it. JVM output written in a session's context starts with `[session:<id>] `: the runtime binds the session around its handler callbacks, multistom around its tick work, scheduler and event listeners, and the Kotlin adapter around every coroutine resumption. Untagged output stays at the node level. The JVM tab nests sessions under their node, filters the log to the selected session, shows its details and session counts in the header, and colors nodes and sessions in interleaved lines. Closes #140
…wnership as before Session output is buffered per thread and written one tagged line at a time under a lock shared by System.out and System.err, so concurrent lines no longer interleave or lose their tag, and it is encoded as UTF-8 whatever the target's charset. The session's event node is attached to the process again, with its ownership predicate binding the session itself. Its priority and ownership filtering match the unwrapped node, and direct dispatch to it binds the session too. Refs #140
…ts the same bound or not Partial and over-long lines are now written as complete tagged lines so another writer's output can't land inside them, the line cap bounds each write, and checkError reports target failures. Session events are always re-dispatched once through the node, so a failing session listener never stops global listeners. Refs #140
…apped log lines on character boundaries Refs #140
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #140. Once a JVM hosts a lobby and a couple of arenas,
chunk devcan't pick out one session: the JVM tab lists nodes only, and a node's sessions all share one log stream. Now each node's open sessions are listed under it. Selecting one filters the log to that session, the way selecting a node already does.Node.sessionsgives each open session's ID, session type, destination key, player count and phase.playerstopic, so an update doesn't scan every claim.[session:<id>]. This covers session handler callbacks, ticks, the scheduler and Kotlin coroutines (through aThreadContextElement), plus the session's event listeners.System.outandSystem.errare wrapped to add the tag. Each written line is complete and carries one writer's tag, even when stdout and stderr share a file. That covers slf4j-simple and JUL's console handler.Behaviour changes and limits
flush().-Xlog) writes straight to the file descriptor, so it stays untagged at node level.Checks
cargo test -p chunk-environment operator(6),cargo test -p chunk-cli local(22), and clippy and fmt on chunk-control, chunk-environment and chunk-cli../gradlew :jvm:runtime:test :jvm:multistom:test :jvm:multistom-kotlin:test, plus google-java-format and ktlint on the touched files.buf lintandbuf format.🤖 Generated with Claude Code