Skip to content

Don't write a spurious SelfLog event when disposing an unused sink in durable mode#231

Merged
nblumhardt merged 1 commit intodatalust:devfrom
nblumhardt:handle-missing-buffer-on-close
Dec 1, 2024
Merged

Don't write a spurious SelfLog event when disposing an unused sink in durable mode#231
nblumhardt merged 1 commit intodatalust:devfrom
nblumhardt:handle-missing-buffer-on-close

Conversation

@nblumhardt
Copy link
Copy Markdown
Member

Fixes #198

The construction of a bookmark file normally creates one if it doesn't already exist. This PR follows the behavior of the "write" path by also attempting to create the directory if necessary (Directory.CreateDirectory() is idempotent).

Although it can't be exercised currently, this would also prevent a potential startup-time race condition if the shipper were to get started before, or faster than, the file sink.

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.

Buffered events upload on logger dispose fails if there is no logs yet

1 participant