Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10724

Kafka alarm producer synchronization fails due to missing event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 24.1.0
    • Fix Version/s: 25.0.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 2019 - September 11th

      Description

      Found the following error messages on a system that forwards alarms to Kafka:

      2019-05-31T09:42:49,238 | ERROR | AlarmLifecycleListenerManager | KafkaAlarmDataSync               | 247 - org.opennms.features.kafka.producer - 24.0.0 | An error occurred while performing alarm synchronization with the ktable. Will try again on next callback.
      org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.opennms.netmgt.model.OnmsEvent#90673607]
              at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:435) ~[?:?]
              at org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:189) ~[?:?]
              at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:182) ~[?:?]
              at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215) ~[?:?]
              at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190) ~[?:?]
              at org.opennms.netmgt.model.OnmsEvent_$$_jvstb80_32.getId(OnmsEvent_$$_jvstb80_32.java) ~[?:?]
              at org.opennms.features.kafka.producer.ProtobufMapper.toEvent(ProtobufMapper.java:244) ~[?:?]
              at org.opennms.features.kafka.producer.ProtobufMapper.toAlarm(ProtobufMapper.java:290) ~[?:?]
              at org.opennms.features.kafka.producer.ProtobufMapper.lambda$toAlarm$4(ProtobufMapper.java:325) ~[?:?]
              at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
              at org.opennms.features.kafka.producer.ProtobufMapper.toAlarm(ProtobufMapper.java:325) ~[?:?]
              at org.opennms.features.kafka.producer.datasync.KafkaAlarmDataSync.lambda$handleAlarmSnapshot$7(KafkaAlarmDataSync.java:247) ~[?:?]
              at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
              at org.opennms.features.kafka.producer.datasync.KafkaAlarmDataSync.handleAlarmSnapshot(KafkaAlarmDataSync.java:240) ~[?:?]
              at org.opennms.features.kafka.producer.OpennmsKafkaProducer.handleAlarmSnapshot(OpennmsKafkaProducer.java:432) ~[?:?]
              at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager$2.lambda$doInTransactionWithoutResult$0(AlarmLifecycleListenerManager.java:119) ~[?:?]
              at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager.forEachListener(AlarmLifecycleListenerManager.java:209) [?:?]
              at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager.access$200(AlarmLifecycleListenerManager.java:60) [?:?]
              at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager$2.doInTransactionWithoutResult(AlarmLifecycleListenerManager.java:117) [?:?]
              at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34) [?:?]
              at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) [?:?]
              at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager.doSnapshot(AlarmLifecycleListenerManager.java:109) [?:?]
              at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager$1.run(AlarmLifecycleListenerManager.java:84) [?:?]
              at java.util.TimerThread.mainLoop(Timer.java:555) [?:?]
              at java.util.TimerThread.run(Timer.java:505) [?:?]
      2019-05-31T09:44:47,218 | ERROR | AlarmLifecycleListenerManager | KafkaAlarmDataSync               | 247 - org.opennms.features.kafka.producer - 24.0.0 | An error occurred while performing alarm synchronization with the ktable. Will try again on next callback.
      org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.opennms.netmgt.model.OnmsEvent#90676425]
      

        Attachments

          Activity

            People

            • Assignee:
              j-white Jesse White
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: