You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's some data race with protoparse.Parser.ParseFiles:
Note: I'm using two completely separately instantiated protoparse.Parsers, ie I'm not even using the same protoparse.Parser across threads, so it has to be something global.
Here's two traces. Both of these were done by compiling https://github.com/googleapis/googleapis on a per-directory basis, that is I call ParseFiles for the files in each directory using a separate protoparse.Parser on a separate thread.
Thoughts:
Maybe something to do with the globals, I don't know what but it has to do with modifying *DescriptorProto objects so maybe one of the caches? Assumedly this concerns imports since I'm not calling ParseFiles directly on the same file at any time.
There's some data race with
protoparse.Parser.ParseFiles
:Note: I'm using two completely separately instantiated
protoparse.Parsers
, ie I'm not even using the sameprotoparse.Parser
across threads, so it has to be something global.Here's two traces. Both of these were done by compiling https://github.com/googleapis/googleapis on a per-directory basis, that is I call
ParseFiles
for the files in each directory using a separateprotoparse.Parser
on a separate thread.Thoughts:
*DescriptorProto
objects so maybe one of the caches? Assumedly this concerns imports since I'm not callingParseFiles
directly on the same file at any time.The text was updated successfully, but these errors were encountered: