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

AbstractPartitionDiscoverer.discoverPartitions calls remove on immutable collection

    XMLWordPrintableJSON

Details

    Description

      https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=47009&view=logs&j=aa18c3f6-13b8-5f58-86bb-c1cffb239496&t=502fb6c0-30a2-5e49-c5c2-a00fa3acb203&l=8459

      FlinkKafkaConsumerBaseTest.testClosePartitionDiscovererWithCancellation failed because of that.

      [...]
      Mar 10 01:48:27 Caused by: java.lang.RuntimeException: java.lang.UnsupportedOperationException
      Mar 10 01:48:27 	at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase.runWithPartitionDiscovery(FlinkKafkaConsumerBase.java:846)
      Mar 10 01:48:27 	at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase.run(FlinkKafkaConsumerBase.java:828)
      Mar 10 01:48:27 	at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBaseTest.lambda$testNormalConsumerLifecycle$9(FlinkKafkaConsumerBaseTest.java:695)
      Mar 10 01:48:27 	at org.apache.flink.util.function.ThrowingRunnable.lambda$unchecked$0(ThrowingRunnable.java:49)
      Mar 10 01:48:27 	at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640)
      Mar 10 01:48:27 	at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632)
      Mar 10 01:48:27 	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      Mar 10 01:48:27 	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
      Mar 10 01:48:27 	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
      Mar 10 01:48:27 	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)
      Mar 10 01:48:27 Caused by: java.lang.UnsupportedOperationException
      Mar 10 01:48:27 	at java.util.Collections$1.remove(Collections.java:4686)
      Mar 10 01:48:27 	at org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscoverer.discoverPartitions(AbstractPartitionDiscoverer.java:165)
      Mar 10 01:48:27 	at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase.lambda$createAndStartDiscoveryLoop$2(FlinkKafkaConsumerBase.java:880)
      Mar 10 01:48:27 	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mapohl Matthias Pohl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: