Skip to content

Since 7.5.0: Cannot reliably load multiple roots in parallel anymore. #2079

@vikingair

Description

@vikingair

I used to have this code:

const root = new protobuf.Root();

const all = [];
for (const protoFile of allGatewayProtos) {
  all.push(protobuf.load(protoFile, root, options));
}
await Promise.all(all);

This results now in various random errors of missing messages etc.

When changing to synchronous much slower processing like this everything works as expected:

const root = new protobuf.Root();

for (const protoFile of allGatewayProtos) {
  await protobuf.load(protoFile, root, options);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions