Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4371

HACEP: Fix issue reported by findbugs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • core engine
    • NEW
    • NEW

      09:26:43 [ERROR] Incorrect lazy initialization and update of static field org.kie.hacep.Config.config in org.kie.hacep.Config.getStatic() [org.kie.hacep.Config] At Config.java:[lines 99-100] LI_LAZY_INIT_UPDATE_STATIC
      09:26:43 [ERROR] Integer is incompatible with expected argument type org.apache.kafka.common.TopicPartition in org.kie.hacep.core.infra.DeafultSessionSnapShooter.configConsumer() [org.kie.hacep.core.infra.DeafultSessionSnapShooter] At DeafultSessionSnapShooter.java:[line 121] GC_UNRELATED_TYPES

      These two types are different so this will never succeed partitions.contains(partition.partition())
      Please fix and remove duplication too
      https://github.com/kiegroup/openshift-drools-hacep/blob/2ac305ab2ccc5d2cae9a257eec84730c2e2c1879/hacep/src/main/java/org/kie/hacep/core/infra/consumer/DefaultKafkaConsumer.java#L163
      https://github.com/kiegroup/openshift-drools-hacep/blob/2ac305ab2ccc5d2cae9a257eec84730c2e2c1879/hacep/src/main/java/org/kie/hacep/core/infra/consumer/DefaultKafkaConsumer.java#L163

              mdessi-1 Massimiliano Dessi
              dzonca@redhat.com Daniele Zonca
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: