Skip to content

Commit 38c2565

Browse files
committed
4th refine
1 parent b40424f commit 38c2565

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

articles/data-factory/copy-activity-data-consistency.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ ms.author: yexu
2020

2121
[!INCLUDE[appliesto-adf-asa-md](includes/appliesto-adf-asa-md.md)]
2222

23-
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.
2424

2525
> [!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.
3030
3131
## Supported data stores
3232

@@ -85,14 +85,14 @@ Property | Description | Allowed values | Required
8585
-------- | ----------- | -------------- | --------
8686
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
8787
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
9191

9292
>[!NOTE]
9393
>- Data consistency is not supported in staging copy scenario.
9494
>- 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.
9696
9797

9898
## Monitoring
@@ -122,33 +122,33 @@ You can see the details of data consistency verification from "dataConsistencyVe
122122
Value of **VerificationResult**:
123123
- **Verified**: Your copied data has been verified to be consistent between source and destination store.
124124
- **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.
126126

127127
Value of **InconsistentData**:
128128
- **Found**: ADF copy activity has found inconsistent data.
129129
- **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.
131131

132132
### Session log from copy activity
133133

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.
135135

136136
The schema of a log file is as following:
137137

138138
Column | Description
139139
-------- | -----------
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.
144144
Message | More information to illustrate why files being skipped.
145145

146146
The example of a log file is as following:
147147
```
148148
Timestamp, Level, OperationName, OperationItem, Message
149149
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=,'."
150150
```
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.
152152

153153

154154

0 commit comments

Comments
 (0)