Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-7330

DataIndex crashes on start if process included multi-instance process

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.26.0.Final
    • 1.21.0.Final
    • Data Index
    • None
    • False
    • None
    • False
    • Hide

      Create a process with a multi-instance task or sub-process using an ArrayLIst for MI collection input, using Infinispan for persistence.

      Configure:

      quarkus.kogito.devservices.enabled=false

      Start a separate data-index and start the application.

      Show
      Create a process with a multi-instance task or sub-process using an ArrayLIst for MI collection input, using Infinispan for persistence. Configure: quarkus.kogito.devservices.enabled =false Start a separate data-index and start the application.
    • ---
    • ---
    • 2022 Week 29-31 (from Jul 18)

    Description

      The data-index crashes on start of process with a multi-instance process. This doesn't happen when starting using Quarkus dev services, only with a standalone data-index when the data-index tries to parse the domain specific schema.

       

      data-index            | 2022-06-05 04:41:59,498 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): graphql.schema.validation.InvalidSchemaException: invalid schema:
      data-index            | "List" must define one or more fields.
      data-index            | "ListArgument" must define one or more fields.
      data-index            | "ListOrderBy" must define one or more fields.
      data-index            |     at graphql.schema.GraphQLSchema$Builder.validateSchema(GraphQLSchema.java:828)
      data-index            |     at graphql.schema.GraphQLSchema$Builder.buildImpl(GraphQLSchema.java:822)
      data-index            |     at graphql.schema.GraphQLSchema$Builder.build(GraphQLSchema.java:787)
      data-index            |     at graphql.schema.GraphQLSchema.transform(GraphQLSchema.java:527)
      data-index            |     at org.kie.kogito.index.graphql.GraphQLSchemaManager.transform(GraphQLSchemaManager.java:471)
      data-index            |     at org.kie.kogito.index.graphql.GraphQLSchemaManager_ClientProxy.transform(Unknown Source)
      data-index            |     at org.kie.kogito.index.graphql.GraphQLProtoSchemaMapper.onDomainModelRegisteredEvent(GraphQLProtoSchemaMapper.java:65)
      data-index            |     at org.kie.kogito.index.graphql.GraphQLProtoSchemaMapper_Observer_onDomainModelRegisteredEvent_6e0c9833c8f65ca19ba4bf2a95569de09639eeed.notify(Unknown Source)
      data-index            |     at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:323)
      data-index            |     at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:301)
      data-index            |     at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:73)
      data-index            |     at org.kie.kogito.persistence.protobuf.domain.ProtoDomainModelProducer.onFileDescriptorRegistered(ProtoDomainModelProducer.java:62)
      data-index            |     at org.kie.kogito.persistence.protobuf.domain.ProtoDomainModelProducer_Observer_onFileDescriptorRegistered_dfc00014fbbaa05f6c56443029d0e7e4929e7137.notify(Unknown Source)
      data-index            |     at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:323)
      data-index            |     at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:301)
      data-index            |     at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:73)
      data-index            |     at org.kie.kogito.persistence.protobuf.ProtobufService.registerProtoBufferType(ProtobufService.java:129)
      data-index            |     at org.kie.kogito.persistence.protobuf.ProtobufService_ClientProxy.registerProtoBufferType(Unknown Source)
      data-index            |     at org.kie.kogito.persistence.protobuf.ProtobufMonitorService.lambda$registerProtoFile$3(ProtobufMonitorService.java:104)
      data-index            |     at org.kie.kogito.persistence.protobuf.ProtobufMonitorService.lambda$registerFilesFromFolder$2(ProtobufMonitorService.java:93)
      data-index            |     at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
      data-index            |     at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
      data-index            |     at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      data-index            |     at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
      data-index            |     at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
      data-index            |     at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      data-index            |     at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      data-index            |     at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeli

      Attachments

        1. Main.proto
          0.8 kB
        2. Subprocess.proto
          0.8 kB

        Issue Links

          Activity

            People

              cnicolai@redhat.com Cristiano Nicolai
              navitect Adrian Apthorp (Inactive)
              Tristan Radisson Tristan Radisson
              Tristan Radisson Tristan Radisson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: