github Byron/gitoxide gitoxide-core-v0.38.0
gitoxide-core v0.38.0

one month ago

Bug Fixes

  • more robustness in the face of a trampling-herd of threads loading a single index.
    The motivating example is here: praetorian-inc/noseyparker#179

    Previously, it was possible for a trampling herd of threads to consolidate the
    disk state. Most of them would be 'needs-init' threads which could notice that
    the initialization already happened, and just use that.

    But a thread might be late for the party and somehow manages to not get any
    newly loaded index, and thus tries to consolidate with what's on disk again.
    Then it would again determine no change, and return nothing, causing the caller
    to abort and not find objects it should find because it wouldn't see the index
    that it should have seen.

    The reason the thread got into this mess is that the 'is-load-ongoing' flagging
    was racy itself, so it would not wait for ongoing loads and just conclude nothing
    happened. An extra delay (by yielding) now assures it either seees the loading state
    and waits for it, sees the newly loaded indices.

    Note that this issue can be reproduced with:

    './target/release/gix -r repo-with-one-pack -t10 --trace odb stats --extra-header-lookup'
    

Commit Statistics

  • 7 commits contributed to the release over the course of 10 calendar days.
  • 38 days passed between releases.
  • 1 commit was understood as conventional.
  • 0 issues like '(#ID)' were seen in commit messages

Commit Details

view details
  • Uncategorized
    • Adjust changelogs prior to release (9511416)
    • Merge branch 'various-fixes' (d6cd449)
    • Update dependencies (cd4de83)
    • Merge pull request from GHSA-7w47-3wg8-547c (79dce79)
    • Adapt to changes in gix-worktree (1ca6a3c)
    • Merge branch 'status' (04ef31e)
    • More robustness in the face of a trampling-herd of threads loading a single index. (addf446)

Don't miss a new gitoxide release

NewReleases is sending notifications on new releases.