ADF Copy Activity retry behavior with Cosmos DB

Rares POP 1 Reputation point
2022-03-15T08:52:59.94+00:00

Having an ADF Copy Activity that copies data (possibly skipping over some fields) between two Cosmos DB containers, what is the behavior if things are failing and retried? I see the 'retry' and 'retryTimeout' options.

I mean, if half the data is copied from the first container into the second, then some connection fails (not data format failure, but other types of failures happen), when the activity is retried, does the Copy Activity know where it left off and continues, or it starts from the beginning and it will end-up with duplicate records?

Thanks!

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,454 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,643 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,381 Reputation points Microsoft Employee
    2022-03-16T04:59:59.853+00:00

    Hello @Rares POP ,
    Thanks for the question and using MS Q&A platform.

    As we understand the ask here is how copy activity behaves if we have issues while copying in flight with the retry option as "ON" , please do let us know if its not accurate.
    When we copy data the process happens in batches , so lets say that while copy is in progress and you have an issues , the activity will try to copy that last batch again .
    Regarding duplication of records , since you must have a partition key defined on the sink side if the same set of records are pumped in again , it is going to error out anyways .

    Please do let me if you have any queries.
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators