Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7405

DMR operation register-proto-schemas fails with NPE if the proto file has syntax errors

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Start an infinispan server and run the following CLI command:

      ./bin/ispn-cli.sh -c '/subsystem=datagrid-infinispan/cache-container=local:register-proto-schemas(file-names=[myFileWithSyntaxErrors.proto], file-contents=[kaboom])'

      since the file has syntax errors it should still be placed in the ___protobuf_metadata cache and a myFileWithSyntaxErrors.proto.errors key should also be created. No exception should be thrown. Currently no key is written in cache and the NPE from the attached log happens.

      When registering a proper file without syntax errors this works correctly.

      The problem disappears if I disable global state persistence, so the cachestore seems to play a role in this.

              dberinde@redhat.com Dan Berindei (Inactive)
              anistor Adrian Nistor (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: