Skip to content

Preserve working log devices when reopen fails - #173

Open
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/transactional-reopen
Open

Preserve working log devices when reopen fails#173
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/transactional-reopen

Conversation

@OskarEichler

Copy link
Copy Markdown

LogDevice#reopen closes the active Logger-owned file and mutates configuration before the replacement is known to be usable. Open and configure the replacement transactionally, switching state only on success and preserving the working device and settings on failure. Explicitly supplied IO ownership remains unchanged. Current suites pass 64 tests / 323 assertions on Ruby 4.0.6 and 3.2.11; focused reopen failure/success models pass. No repository tests were changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant