You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you move data from source to destination store, Azure Data Factory copy activity provides data consistency verification to ensure the data is not only successfully copied from source to destination store, but also verified to be consistent between source and destination store. Once inconsistent data have been found during the data movement, you can either abort the copy activity or continue to copy the rest by enabling fault tolerance setting to skip inconsistent data. You can get the skipped object names by enabling session log setting in copy activity.
23
+
When you move data from source to destination store, Azure Data Factory copy activity provides an option for you to do additional data consistency verification to ensure the data is not only successfully copied from source to destination store, but also verified to be consistent between source and destination store. Once inconsistent data have been found during the data movement, you can either abort the copy activity or continue to copy the rest by enabling fault tolerance setting to skip inconsistent data. You can get the skipped object names by enabling session log setting in copy activity.
24
24
25
25
> [!IMPORTANT]
26
-
> This feature is currently in preview with the known limitations we are actively working on:
27
-
> 1. Data consistency verification is available only for binary files copy between file-based stores with 'PreserveHierarchy' behavior in copy activity. For copying tabular data, data consistency verification is not available in copy activity yet.
28
-
> 2. When you enable session log setting in copy activity to see the inconsistent file list to be skipped, the completeness of log file can not be 100% guaranteed if copy activity failed.
29
-
> 3. The session log contains inconsistent files names only, where the successfully copied files are not logged so far.
26
+
> This feature is currently in preview with the following limitations we are actively working on:
27
+
> 1. Data consistency verification is available only on binary files copying between file-based stores with 'PreserveHierarchy' behavior in copy activity. For copying tabular data, data consistency verification is not available in copy activity yet.
28
+
> 2. When you enable session log setting in copy activity to log the inconsistent files being skipped, the completeness of log file can not be 100% guaranteed if copy activity failed.
29
+
> 3. The session log contains inconsistent files only, where the successfully copied files are not logged so far.
validateDataConsistency | If you set true for this property, copy activity will check file size, lastModifiedDate, and MD5 checksum for each object copied from source to destination store to ensure the data consistency between source and destination store. Be aware the copy performance will be affected by enabling this option. | True<br/>False (default) | No
87
87
dataInconsistency | One of the key-value pairs within skipErrorFile property bag to determine if you want to skip the inconsistent data.<br/> -True: you want to copy the rest by skipping inconsistent data.<br/> - False: you want to abort the copy activity once inconsistent data found.<br/>Be aware this property is only valid when you set validateDataConsistency as True. | True<br/>False (default) | No
88
-
logStorageSettings | A group of properties that can be specified to enable session log to show skipped object names. | | No
89
-
linkedServiceName | The linked service of [Azure Blob Storage](connector-azure-blob-storage.md#linked-service-properties) or [Azure Data Lake Storage Gen2](connector-azure-data-lake-storage.md#linked-service-properties) to store the session log files. | The names of an `AzureBlobStorage` or `AzureBlobFS` types linked service, which refers to the instance that you want to use to store the log file. | No
90
-
path | The path of the log file. | Specify the path that you want to store the log file. If you do not provide a path, the service creates a container for you. | No
88
+
logStorageSettings | A group of properties that can be specified to enable session log to log skipped objects. | | No
89
+
linkedServiceName | The linked service of [Azure Blob Storage](connector-azure-blob-storage.md#linked-service-properties) or [Azure Data Lake Storage Gen2](connector-azure-data-lake-storage.md#linked-service-properties) to store the session log files. | The names of an `AzureBlobStorage` or `AzureBlobFS` types linked service, which refers to the instance that you use to store the log files. | No
90
+
path | The path of the log files. | Specify the path that you want to store the log files. If you do not provide a path, the service creates a container for you. | No
91
91
92
92
>[!NOTE]
93
93
>- Data consistency is not supported in staging copy scenario.
94
94
>- When copying binary files from any storage store to Azure Blob Storage or Azure Data Lake Storage Gen2, copy activity does file size and MD5 checksum verification to ensure the data consistency between source and destination stores.
95
-
>- When copying binary files from any storage store to other storage stores except Azure Blob Storage or Azure Data Lake Storage Gen2, copy activity does file size verification to ensure the data consistency between source and destination store.
95
+
>- When copying binary files from any storage store to any storage stores other than Azure Blob Storage or Azure Data Lake Storage Gen2, copy activity does file size verification to ensure the data consistency between source and destination store.
96
96
97
97
98
98
## Monitoring
@@ -122,33 +122,33 @@ You can see the details of data consistency verification from "dataConsistencyVe
122
122
Value of **VerificationResult**:
123
123
-**Verified**: Your copied data has been verified to be consistent between source and destination store.
124
124
-**NotVerified**: Your copied data has not been verified to be consistent because you have not enabled the validateDataConsistency in copy activity.
125
-
-**Unsupported**: Your copied data has not been verified to be consistent because data consistency verification is not supported for this copy pair.
125
+
-**Unsupported**: Your copied data has not been verified to be consistent because data consistency verification is not supported for this particular copy pair.
126
126
127
127
Value of **InconsistentData**:
128
128
-**Found**: ADF copy activity has found inconsistent data.
129
129
-**Skipped**: ADF copy activity has found and skipped inconsistent data.
130
-
-**None**: ADF copy activity has not found any inconsistent data because either you disabled validateDataConsistency in copy activity or your data has been verified to be consistent between source and destination store.
130
+
-**None**: ADF copy activity has not found any inconsistent data. It can be either because your data has been verified to be consistent between source and destination store or because you disabled validateDataConsistency in copy activity.
131
131
132
132
### Session log from copy activity
133
133
134
-
If you configure to log the inconsistent file, you can find the log file at this path: `https://[your-blob-account].blob.core.windows.net/[path-if-configured]/copyactivity-logs/[copy-activity-name]/[copy-activity-run-id]/[auto-generated-GUID].csv`. The log files will be the csv files.
134
+
If you configure to log the inconsistent file, you can find the log file from this path: `https://[your-blob-account].blob.core.windows.net/[path-if-configured]/copyactivity-logs/[copy-activity-name]/[copy-activity-run-id]/[auto-generated-GUID].csv`. The log files will be the csv files.
135
135
136
136
The schema of a log file is as following:
137
137
138
138
Column | Description
139
139
-------- | -----------
140
-
Timestamp | The timestamp when ADF skips the inconsistent data.
141
-
Level | The log level for this item. It can be the 'Warning' for file skipping operational log.
142
-
OperationName | ADF copy activity operational behavior on each object. It can be 'FileSkip' or 'TabularRowSkip' to specify the file or row to be skipped.
143
-
OperationItem | The object names to be skipped.
140
+
Timestamp | The timestamp when ADF skips the inconsistent files.
141
+
Level | The log level of this item. It will be in 'Warning' level for the item showing file skipping.
142
+
OperationName | ADF copy activity operational behavior on each file. It will be 'FileSkip' to specify the file to be skipped.
143
+
OperationItem | The file name to be skipped.
144
144
Message | More information to illustrate why files being skipped.
2020-02-26 06:22:56.3190846, Warning, FileSkip, "sample1.csv", "File is skipped after read 548000000 bytes: ErrorCode=DataConsistencySourceDataChanged,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Source file 'sample1.csv' is changed by other clients during the copy activity run.,Source=,'."
150
150
```
151
-
From the log file above, you can see sample1.csv has been skipped because it failed to be verified to be consistent between source and destination store. You can get more details about why sample1.csv becomes inconsistent is because it was underchanging by other applications when ADF copy activity is copying at the same time.
151
+
From the log file above, you can see sample1.csv has been skipped because it failed to be verified to be consistent between source and destination store. You can get more details about why sample1.csv becomes inconsistent is because it was being changed by other applications when ADF copy activity is copying at the same time.
0 commit comments