Class: Google::Protobuf::DescriptorPool

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/codecs/protobuf.rb

Overview

Monkey-patch the ‘Google::Protobuf::DescriptorPool` with a mutex for exclusive access.

The DescriptorPool instance is not thread-safe when loading protobuf definitions. This can cause unrecoverable errors when registering multiple concurrent pipelines that try to register the same dependency. The DescriptorPool instance is global to the JVM and shared among all pipelines.