Skip to content

Commit 355ca85

Browse files
committed
Acrolinx improvements
1 parent 02d394f commit 355ca85

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ ms.author: yexu
1414

1515
[!INCLUDE[appliesto-adf-asa-md](includes/appliesto-adf-asa-md.md)]
1616

17-
When you move data from source to destination store, the 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 files 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 files. You can get the skipped file names by enabling session log setting in copy activity. You can refer to [session log in copy activity](copy-activity-log.md) for more details.
17+
When you move data from source to destination store, the copy activity provides an option for you to do further 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 files 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 files. You can get the skipped file names by enabling session log setting in copy activity. You can refer to [session log in copy activity](copy-activity-log.md) for more details.
1818

1919
## Supported data stores and scenarios
2020

2121
- Data consistency verification is supported by all the connectors except FTP, SFTP, HTTP, Snowflake, Office 365 and Azure Databricks Delta Lake.
22-
- Data consistency verification is not supported in staging copy scenario.
22+
- Data consistency verification isn't supported in staging copy scenario.
2323
- When copying binary files, data consistency verification is only available when 'PreserveHierarchy' behavior is set in copy activity.
2424
- When copying multiple binary files in single copy activity with data consistency verification enabled, you have an option to either abort the copy activity or continue to copy the rest by enabling fault tolerance setting to skip inconsistent files.
2525
- When copying a table in single copy activity with data consistency verification enabled, copy activity fails if the number of rows read from the source is different from the number of rows copied to the destination plus the number of incompatible rows that were skipped.
@@ -33,7 +33,7 @@ The following example provides a JSON definition to enable data consistency veri
3333
"name":"CopyActivityDataConsistency",
3434
"type":"Copy",
3535
"typeProperties": {
36-
"source": {
36+
"source": {
3737
"type": "BinarySource",
3838
"storeSettings": {
3939
"type": "AzureDataLakeStoreReadSettings",
@@ -45,7 +45,7 @@ The following example provides a JSON definition to enable data consistency veri
4545
"storeSettings": {
4646
"type": "AzureDataLakeStoreWriteSettings"
4747
}
48-
},
48+
},
4949
"validateDataConsistency": true,
5050
"skipErrorFile": {
5151
"dataInconsistency": true
@@ -69,14 +69,14 @@ The following example provides a JSON definition to enable data consistency veri
6969

7070
Property | Description | Allowed values | Required
7171
-------- | ----------- | -------------- | --------
72-
validateDataConsistency | If you set true for this property, when copying binary files, copy activity will check file size, lastModifiedDate, and MD5 checksum for each binary file copied from source to destination store to ensure the data consistency between source and destination store. When copying tabular data, copy activity will check the total row count after job completes to ensure the total number of rows read from the source is same as the number of rows copied to the destination plus the number of incompatible rows that were skipped. Be aware the copy performance will be affected by enabling this option. | True<br/>False (default) | No
72+
validateDataConsistency | If you set true for this property, when copying binary files, copy activity will check file size, lastModifiedDate, and MD5 checksum for each binary file copied from source to destination store to ensure the data consistency between source and destination store. When copying tabular data, copy activity will check the total row count after job completes, ensuring the total number of rows read from the source is same as the number of rows copied to the destination plus the number of incompatible rows that were skipped. Be aware the copy performance is affected by enabling this option. | True<br/>False (default) | No
7373
dataInconsistency | One of the key-value pairs within skipErrorFile property bag to determine if you want to skip the inconsistent files. <br/> -True: you want to copy the rest by skipping inconsistent files.<br/> - False: you want to abort the copy activity once inconsistent file found.<br/>Be aware this property is only valid when you are copying binary files and set validateDataConsistency as True. | True<br/>False (default) | No
7474
logSettings | A group of properties that can be specified to enable session log to log skipped files. | | No
7575
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
7676
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
7777

7878
>[!NOTE]
79-
>- When copying binary files from, or to Azure Blob or Azure Data Lake Storage Gen2, the service does block level MD5 checksum verification leveraging [Azure Blob API](/dotnet/api/microsoft.azure.storage.blob.blobrequestoptions?view=azure-dotnet-legacy&preserve-view=true) and [Azure Data Lake Storage Gen2 API](/rest/api/storageservices/datalakestoragegen2/path/update#request-headers). If ContentMD5 on files exist on Azure Blob or Azure Data Lake Storage Gen2 as data sources, the service does file level MD5 checksum verification after reading the files as well. After copying files to Azure Blob or Azure Data Lake Storage Gen2 as data destination, the service writes ContentMD5 to Azure Blob or Azure Data Lake Storage Gen2 which can be further consumed by downstream applications for data consistency verification.
79+
>- When copying binary files from or to Azure Blob or Azure Data Lake Storage Gen2, the service does block level MD5 checksum verification leveraging [Azure Blob API](/dotnet/api/microsoft.azure.storage.blob.blobrequestoptions?view=azure-dotnet-legacy&preserve-view=true) and [Azure Data Lake Storage Gen2 API](/rest/api/storageservices/datalakestoragegen2/path/update#request-headers). If ContentMD5 on files exist on Azure Blob or Azure Data Lake Storage Gen2 as data sources, the service does file level MD5 checksum verification after reading the files as well. After copying files to Azure Blob or Azure Data Lake Storage Gen2 as data destination, the service writes ContentMD5 to Azure Blob or Azure Data Lake Storage Gen2 which can be further consumed by downstream applications for data consistency verification.
8080
>- The service does file size verification when copying binary files between any storage stores.
8181

8282
## Monitoring
@@ -105,25 +105,25 @@ You can see the details of data consistency verification from "dataConsistencyVe
105105

106106
Value of **VerificationResult**:
107107
- **Verified**: Your copied data has been verified to be consistent between source and destination store.
108-
- **NotVerified**: Your copied data has not been verified to be consistent because you have not enabled the validateDataConsistency in copy activity.
109-
- **Unsupported**: Your copied data has not been verified to be consistent because data consistency verification is not supported for this particular copy pair.
108+
- **NotVerified**: Your copied data hasn't been verified to be consistent because you haven't enabled the validateDataConsistency in copy activity.
109+
- **Unsupported**: Your copied data hasn't been verified to be consistent because data consistency verification isn't supported for this particular copy pair.
110110

111111
Value of **InconsistentData**:
112112
- **Found**: The copy activity has found inconsistent data.
113113
- **Skipped**: The copy activity has found and skipped inconsistent data.
114-
- **None**: The 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.
114+
- **None**: The copy activity hasn't 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.
115115

116116
### Session log from copy activity
117117

118-
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.
118+
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 are the csv files.
119119

120120
The schema of a log file is as following:
121121

122122
Column | Description
123123
-------- | -----------
124124
Timestamp | The timestamp when the service skips the inconsistent files.
125-
Level | The log level of this item. It will be in 'Warning' level for the item showing file skipping.
126-
OperationName | The copy activity operational behavior on each file. It will be 'FileSkip' to specify the file to be skipped.
125+
Level | The log level of this item. It is in 'Warning' level for the item showing file skipping.
126+
OperationName | The copy activity operational behavior on each file. It is 'FileSkip' to specify the file to be skipped.
127127
OperationItem | The file name to be skipped.
128128
Message | More information to illustrate why files being skipped.
129129

0 commit comments

Comments
 (0)