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

Negative time in throughput calculator

    XMLWordPrintableJSON

Details

    Description

      Found during the random test:

      2021-12-23 11:52:01,645 WARN  org.apache.flink.runtime.taskmanager.Task                    [] - KeyedProcess -> Sink: Unnamed (3/3)#0 (1321490f33c6370f2d68c413a8a0b0c1) switched from RUNNING to FAILED with failure cause: java.lang.IllegalArgumentException: Time should be non negative
              at org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:138)
              at org.apache.flink.runtime.throughput.ThroughputCalculator.calculateThroughput(ThroughputCalculator.java:90)
              at org.apache.flink.runtime.throughput.ThroughputCalculator.calculateThroughput(ThroughputCalculator.java:81)
              at org.apache.flink.runtime.io.network.partition.consumer.SingleInputGate.triggerDebloating(SingleInputGate.java:414)
              at org.apache.flink.runtime.taskmanager.InputGateWithMetrics.triggerDebloating(InputGateWithMetrics.java:90)
              at org.apache.flink.streaming.runtime.tasks.StreamTask.debloat(StreamTask.java:786)
              at org.apache.flink.streaming.runtime.tasks.StreamTask.lambda$scheduleBufferDebloater$3(StreamTask.java:777)
              at org.apache.flink.streaming.runtime.tasks.StreamTaskActionExecutor$1.runThrowing(StreamTaskActionExecutor.java:50)
              at org.apache.flink.streaming.runtime.tasks.mailbox.Mail.run(Mail.java:90)
              at org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.processMailsWhenDefaultActionUnavailable(MailboxProcessor.java:338)
              at org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.processMail(MailboxProcessor.java:324)
              at org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.runMailboxLoop(MailboxProcessor.java:201)
              at org.apache.flink.streaming.runtime.tasks.StreamTask.runMailboxLoop(StreamTask.java:801)
              at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:750)
              at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:948)
              at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:927)
              at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:741)
              at org.apache.flink.runtime.taskmanager.Task.run(Task.java:563)
              at java.base/java.lang.Thread.run(Unknown Source)
      

      Attachments

        Issue Links

          Activity

            People

              akalashnikov Anton Kalashnikov
              akalashnikov Anton Kalashnikov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: