Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky test TestFlinkTableSink > testInsertFromSourceTable #11833

Open
1 of 3 tasks
manuzhang opened this issue Dec 20, 2024 · 0 comments
Open
1 of 3 tasks

Flaky test TestFlinkTableSink > testInsertFromSourceTable #11833

manuzhang opened this issue Dec 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@manuzhang
Copy link
Contributor

Apache Iceberg version

main (development)

Query engine

Flink

Please describe the bug 🐞

https://github.com/apache/iceberg/actions/runs/12419587376/job/34675216626

TestFlinkTableSink > testInsertFromSourceTable() > catalogName=testhadoop_basenamespace, baseNamespace=l0.l1, format=PARQUET, isStreaming=false, useV2Sink=true FAILED
    java.lang.RuntimeException: Failed to collect table result
        at org.apache.iceberg.flink.TestBase.sql(TestBase.java:105)
        at org.apache.iceberg.flink.TestFlinkTableSink.testInsertFromSourceTable(TestFlinkTableSink.java:152)

        Caused by:
        org.apache.flink.table.api.TableException: Failed to wait job finish
            at app//org.apache.flink.table.api.internal.InsertResultProvider.hasNext(InsertResultProvider.java:85)
            at app//org.apache.flink.table.api.internal.InsertResultProvider.access$200(InsertResultProvider.java:37)
            at app//org.apache.flink.table.api.internal.InsertResultProvider$Iterator.hasNext(InsertResultProvider.java:112)
            at app//org.apache.iceberg.relocated.com.google.common.collect.Iterators.addAll(Iterators.java:365)
            at app//org.apache.iceberg.relocated.com.google.common.collect.Lists.newArrayList(Lists.java:154)
            at app//org.apache.iceberg.flink.TestBase.sql(TestBase.java:103)
            ... 1 more

            Caused by:
            java.util.concurrent.ExecutionException: org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
                at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
                at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2005)
                at org.apache.flink.table.api.internal.InsertResultProvider.hasNext(InsertResultProvider.java:83)
                ... 6 more

                Caused by:
                org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
                    at app//org.apache.flink.runtime.jobmaster.JobResult.toJobExecutionResult(JobResult.java:144)
                            at org.apache.iceberg.hadoop.HadoopTableOperations.renameToFinal(HadoopTableOperations.java:363)
                            at org.apache.iceberg.hadoop.HadoopTableOperations.commit(HadoopTableOperations.java:162)
                            at org.apache.iceberg.SnapshotProducer.lambda$commit$2(SnapshotProducer.java:433)
                            at org.apache.iceberg.util.Tasks$Builder.runTaskWithRetry(Tasks.java:413)
                            at org.apache.iceberg.util.Tasks$Builder.runSingleThreaded(Tasks.java:219)
                            at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:203)
                            at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:196)
                            at org.apache.iceberg.SnapshotProducer.commit(SnapshotProducer.java:405)
                            at org.apache.iceberg.flink.sink.IcebergCommitter.commitOperation(IcebergCommitter.java:293)
                            at org.apache.iceberg.flink.sink.IcebergCommitter.commitDeltaTxn(IcebergCommitter.java:248)
                            at org.apache.iceberg.flink.sink.IcebergCommitter.commitPendingResult(IcebergCommitter.java:200)
                            at org.apache.iceberg.flink.sink.IcebergCommitter.commitPendingRequests(IcebergCommitter.java:172)
                            at org.apache.iceberg.flink.sink.IcebergCommitter.commit(IcebergCommitter.java:133)
                            at org.apache.flink.streaming.runtime.operators.sink.committables.CheckpointCommittableManagerImpl.commit(CheckpointCommittableManagerImpl.java:134)
                            at org.apache.flink.streaming.runtime.operators.sink.CommitterOperator.commitAndEmit(CommitterOperator.java:190)
                            at org.apache.flink.streaming.runtime.operators.sink.CommitterOperator.commitAndEmitCheckpoints(CommitterOperator.java:174)
                            at org.apache.flink.streaming.runtime.operators.sink.CommitterOperator.notifyCheckpointComplete(CommitterOperator.java:164)
                            at org.apache.flink.streaming.runtime.operators.sink.CommitterOperator.endInput(CommitterOperator.java:151)
                            at org.apache.flink.streaming.runtime.tasks.StreamOperatorWrapper.endOperatorInput(StreamOperatorWrapper.java:96)
                            at org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.endInput(RegularOperatorChain.java:97)
                            at org.apache.flink.streaming.runtime.io.StreamOneInputProcessor.processInput(StreamOneInputProcessor.java:68)
                            at org.apache.flink.streaming.runtime.tasks.StreamTask.processInput(StreamTask.java:579)
                            at org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.runMailboxLoop(MailboxProcessor.java:231)
                            at org.apache.flink.streaming.runtime.tasks.StreamTask.runMailboxLoop(StreamTask.java:909)
                            at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:858)
                            at org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:958)
                            at org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:937)
                            at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:751)
                            at org.apache.flink.runtime.taskmanager.Task.run(Task.java:566)
                            at java.base/java.lang.Thread.run(Thread.java:829)

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time
@manuzhang manuzhang added the bug Something isn't working label Dec 20, 2024
@manuzhang manuzhang changed the title Flaky test TestFlinkTableSink.testInsertFromSourceTable Flaky test TestFlinkTableSink > testInsertFromSourceTable Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant