Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9122

NFASerialize deserailze failed and cause other exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.4.1, 1.4.2
    • None
    • Library / CEP
    • None

    Description

      when running the job , it failed with the excetion "Caused by: java.lang.IllegalStateException: Could not find previous entry with key: passengerReserveOrder" and when refer to the log on taskmanger, i find error in taskmanager.err

      	at org.apache.flink.streaming.runtime.streamstatus.StatusWatermarkValve.inputWatermark(StatusWatermarkValve.java:108)
      	at org.apache.flink.streaming.runtime.io.StreamInputProcessor.processInput(StreamInputProcessor.java:188)
      	at org.apache.flink.streaming.runtime.tasks.OneInputStreamTask.run(OneInputStreamTask.java:69)
      	at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:263)
      	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:702)
      	at java.lang.Thread.run(Thread.java:745)
      java.lang.ClassNotFoundException: com.xxxxxxi.app.ReservationCancelMonitorApp$3
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:348)
      	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:626)
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
      	at org.apache.flink.cep.nfa.NFA$NFASerializer.deserializeCondition(NFA.java:1171)
      	at org.apache.flink.cep.nfa.NFA$NFASerializer.deserializeStates(NFA.java:1129)
      	at org.apache.flink.cep.nfa.NFA$NFASerializer.deserialize(NFA.java:917)
      	at org.apache.flink.cep.nfa.NFA$NFASerializer.deserialize(NFA.java:820)
      	at org.apache.flink.contrib.streaming.state.RocksDBValueState.value(RocksDBValueState.java:82)
      	at org.apache.flink.cep.operator.AbstractKeyedCEPPatternOperator.getNFA(AbstractKeyedCEPPatternOperator.java:299)
      	at org.apache.flink.cep.operator.AbstractKeyedCEPPatternOperator.onEventTime(AbstractKeyedCEPPatternOperator.java:229)
      	at org.apache.flink.streaming.api.operators.HeapInternalTimerService.advanceWatermark(HeapInternalTimerService.java:275)
      	at org.apache.flink.streaming.api.operators.InternalTimeServiceManager.advanceWatermark(InternalTimeServiceManager.java:107)
      

      when i change the backend from rocksdb to memory and fs, this is disappear. i use the code in master branch, the problem is still there. i have two questions :

      1. Is the "Caused by: java.lang.IllegalStateException: Could not find previous entry with key" this caused by the error in serialization
      2. why the exception appear in taskmanager.err file not in taskmanager.log file

      @ aljoscha kkl0u

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aitozi WenJun Min
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: