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

Protobuf metadata cache should ignore zero-capacity configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 15.0.1.Final
    • None
    • None
    • None

      The zero-capacity node throws a NullPointerException when a protobuf schema is added to the cluster.

      java.lang.NullPointerException: Cannot invoke "org.infinispan.container.entries.CacheEntry.getValue()" because the return value of "org.infinispan.context.InvocationContext.lookupEntry(Object)" is null
        at org.infinispan.query.remote.impl.ProtobufMetadataManagerInterceptor.handlePutKeyValueResult(ProtobufMetadataManagerInterceptor.java:237)
        at org.infinispan.interceptors.SyncInvocationStage.thenApply(SyncInvocationStage.java:44)
        at org.infinispan.query.remote.impl.ProtobufMetadataManagerInterceptor.visitPutKeyValueCommand(ProtobufMetadataManagerInterceptor.java:229)
      

      The internal cache should ignore the zero-capacity configuration and store this data locally.

      A possible performance issue is that the schemas are registered twice in a row for a remove context. Registering only once should be enough.

            pruivo@redhat.com Pedro Ruivo
            pruivo@redhat.com Pedro Ruivo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: