Skip to content

Unreachable code is apparently reachable in linked_chunk::AsVector #7102

Description

@Hywan

We see this error in Sentry:

internal error: entered unreachable code: Inserting new chunk with no previous nor next chunk identifiers is impossible

It originates from:

// Impossible state.
(None, None) => {
unreachable!(
"Inserting new chunk with no previous nor next chunk identifiers \
is impossible"
);
}

The code is receiving a new chunk, with no previous or next, but other chunks exist. This is impossible but we need to understand how it's possible to get in this situation. It seems related to the OrderTracker (again). The trace is the following:

Image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions