ADF Pipeline Fails with Error ‘StatusCode: DFExecutorUserError, Message: Job Failed Due to Reason: Failed to Create a Child Event Loop’

Swetha Cadambi 0 Reputation points Microsoft Employee
2024-12-03T18:49:01.0833333+00:00

Hi team,

My ADF pipeline recently started failing with the following error. My pipeline takes data from Cosmos DB, transforms it, and dumps it as a CSV file into a storage account.

Error Message:

Operation on target Data_Transfer failed: {"StatusCode":"DFExecutorUserError","Message":"Job failed due to reason: failed to create a child event loop","Details":"java.lang.IllegalStateException: failed to create a child event loop\n\tat shaded.msdataflowtest.azurecosmosspark.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:88)\n\tat shaded.msdataflowtest.azurecosmosspark.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:60)\n\tat shaded.msdataflowtest.azurecosmosspark.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:49)\n\tat shaded.msdataflowtest.azurecosmosspark.io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:59)\n\tat shaded.msdataflowtest.azurecosmosspark.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:87)\n\tat shaded.msdataflowtest.azurecosmosspark.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:82)\n\tat shaded.msdataflowtest.azurecosmosspark.io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:69)\n\tat shaded.msdataflowtest.azure_cosmos_spark.co"}

The pipeline was working for 3 months without any issues until 5 days ago. I recently started using system-assigned managed identity to access Cosmos DB via linked service, and I suspect the issue started since then.

Additionally, although the pipeline sometimes succeeds, it does not write anything to the target.

Please help me identify the issue and provide a solution.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,968 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.