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

Get rid of symlinks on Data Index configMap proto mount

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.8.0
    • 0.7.0
    • Image, Operator
    • None
    • 2020 Week 07-09 (from Feb 10), 2020 Week 10-12 (from Mar 2)

      The configMap mounted to list protobuf files in the Data Index has many symlinks created and this is messing around with the Data Index watcher:

      020-01-31 09:59:28,971 INFO  [org.kie.kog.ind.inf.pro.ProtobufMonitorService] (main) Found proto file: /home/kogito/data/protobufs/kogito-travel-agency/travels.proto
      2020-01-31 09:59:28,997 INFO  [org.kie.kog.ind.mes.ReactiveMessagingEventConsumer] (main) New domain model registered for Process Id: travels
      2020-01-31 09:59:28,997 INFO  [org.kie.kog.ind.inf.pro.ProtobufMonitorService] (main) Found proto file: /home/kogito/data/protobufs/kogito-visas/..2020_01_31_09_59_01.055773995/visaApplications.proto
      2020-01-31 09:59:29,019 INFO  [org.kie.kog.ind.mes.ReactiveMessagingEventConsumer] (main) New domain model registered for Process Id: visaApplications
      2020-01-31 09:59:29,019 INFO  [org.kie.kog.ind.mes.ReactiveMessagingEventConsumer] (main) Consumer registered for address: kogito-domain-events-visaApplications
      2020-01-31 09:59:29,019 INFO  [org.kie.kog.ind.inf.pro.ProtobufMonitorService] (main) Found proto file: /home/kogito/data/protobufs/kogito-visas/visaApplications.proto
      2020-01-31 09:59:29,043 INFO  [org.kie.kog.ind.mes.ReactiveMessagingEventConsumer] (main) New domain model registered for Process Id: visaApplications
      2020-01-31 09:59:29,044 INFO  [org.kie.kog.ind.inf.pro.ProtobufService] (main) Registering Kogito ProtoBuffer file: kogito-index.proto
      2020-01-31 09:59:29,049 INFO  [org.kie.kog.ind.inf.pro.ProtobufService] (main) Registering Kogito ProtoBuffer file: kogito-types.proto
      

      A solution would be mounting them with subpath enabled. For reference, see:
      https://stackoverflow.com/questions/50685385/kubernetes-config-map-symlinks-data-is-there-a-way-to-avoid-them

              rhn-support-zanini Ricardo Zanini
              rhn-support-zanini Ricardo Zanini
              Tristan Radisson Tristan Radisson
              Tristan Radisson Tristan Radisson
              Cristiano Nicolai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: