novisfff opened a new issue, #6444: URL: https://github.com/apache/hudi/issues/6444
**_Tips before filing an issue_** - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)? - Join the mailing list to engage in conversations and get faster support at [email protected]. - If you have triaged this as a bug, then file an [issue](https://issues.apache.org/jira/projects/HUDI/issues) directly. **Describe the problem you faced** Request getCreateAndMergeMarkers may throw ConcurrentModificationException. **To Reproduce** Steps to reproduce the behavior: 1. 2. 3. 4. **Expected behavior** A clear and concise description of what you expected to happen. **Environment Description** * Hudi version : * Spark version : * Hive version : * Hadoop version : * Storage (HDFS/S3/GCS..) : * Running on Docker? (yes/no) : **Additional context** Add any other context about the problem here. **Stacktrace** ``` 2022-08-18 07:34:17,809 ERROR org.apache.hudi.timeline.service.RequestHandler [] - Got runtime exception servicing request markerdirpath=oss%3A%2F%2Fxxx%2F.hoodie%2F.temp%2F20220818073110311 java.util.ConcurrentModificationException: null at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1561) ~[?:1.8.0_302] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_302] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_302] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_302] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_302] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_302] at org.apache.hudi.timeline.service.handlers.MarkerHandler.getCreateAndMergeMarkers(MarkerHandler.java:129) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.timeline.service.RequestHandler.lambda$registerMarkerAPI$25(RequestHandler.java:454) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.timeline.service.RequestHandler$ViewHandler.handle(RequestHandler.java:517) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at io.javalin.security.SecurityUtil.noopAccessManager(SecurityUtil.kt:22) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at io.javalin.Javalin.lambda$addHandler$0(Javalin.java:606) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at io.javalin.core.JavalinServlet$service$2$1.invoke(JavalinServlet.kt:46) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at io.javalin.core.JavalinServlet$service$2$1.invoke(JavalinServlet.kt:17) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at io.javalin.core.JavalinServlet$service$1.invoke(JavalinServlet.kt:143) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at io.javalin.core.JavalinServlet$service$2.invoke(JavalinServlet.kt:41) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at io.javalin.core.JavalinServlet.service(JavalinServlet.kt:107) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at io.javalin.core.util.JettyServerUtil$initialize$httpHandler$1.doHandle(JettyServerUtil.kt:72) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.handler.HandlerList.handle(HandlerList.java:61) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:174) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.Server.handle(Server.java:502) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.HttpChannel.handle(HttpChannel.java:370) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.server.HttpConnection.onFillable(HttpConnection.java:267) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.io.FillInterest.fillable(FillInterest.java:103) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.org.apache.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) [hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at java.lang.Thread.run(Thread.java:877) [?:1.8.0_302] org.apache.hudi.exception.HoodieRemoteException: Failed to get CREATE and MERGE data file paths in oss://xxx Server Error at org.apache.hudi.table.marker.TimelineServerBasedWriteMarkers.createdAndMergedDataPaths(TimelineServerBasedWriteMarkers.java:133) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.table.HoodieTable.getInvalidDataPaths(HoodieTable.java:620) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.table.HoodieTable.reconcileAgainstMarkers(HoodieTable.java:649) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.table.HoodieTable.finalizeWrite(HoodieTable.java:591) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.client.BaseHoodieWriteClient.finalizeWrite(BaseHoodieWriteClient.java:1387) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.client.BaseHoodieWriteClient.commit(BaseHoodieWriteClient.java:262) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.client.BaseHoodieWriteClient.commitStats(BaseHoodieWriteClient.java:234) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.client.HoodieFlinkWriteClient.commit(HoodieFlinkWriteClient.java:116) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.sink.StreamWriteOperatorCoordinator.doCommit(StreamWriteOperatorCoordinator.java:531) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.sink.StreamWriteOperatorCoordinator.commitInstant(StreamWriteOperatorCoordinator.java:507) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.sink.StreamWriteOperatorCoordinator.lambda$notifyCheckpointComplete$2(StreamWriteOperatorCoordinator.java:250) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.sink.utils.NonThrownExecutor.lambda$wrapAction$0(NonThrownExecutor.java:130) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_302] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_302] at java.lang.Thread.run(Thread.java:877) [?:1.8.0_302] Caused by: org.apache.http.client.HttpResponseException: Server Error at org.apache.http.impl.client.AbstractResponseHandler.handleResponse(AbstractResponseHandler.java:69) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.http.client.fluent.Response.handleResponse(Response.java:90) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.http.client.fluent.Response.returnContent(Response.java:97) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.table.marker.TimelineServerBasedWriteMarkers.executeRequestToTimelineServer(TimelineServerBasedWriteMarkers.java:217) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] at org.apache.hudi.table.marker.TimelineServerBasedWriteMarkers.createdAndMergedDataPaths(TimelineServerBasedWriteMarkers.java:127) ~[hudi-flink1.13-bundle_2.11-0.12.0-SNAPSHOT.jar:0.12.0-SNAPSHOT] ... 14 more ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
