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
- The validation job will never delete records from target i.e. it only adds or updates data on target
84
84
85
-
# Migrating specific partition ranges
86
-
- You can also use the tool to migrate specific partition ranges using class option `--class com.datastax.cdm.job.MigratePartitionsFromFile` as shown below
When running in above mode the tool assumes a `partitions.csv` file to be present in the current folder in the below format, where each line (`min,max`) represents a partition-range
85
+
# Migrating or Validating specific partition ranges
86
+
- You can also use the tool to Migrate or Validate specific partition ranges by using a partition-file with the name `./<keyspacename>.<tablename>_partitions.csv` in the below format in the current folder as input
95
87
```
96
88
-507900353496146534,-107285462027022883
97
89
-506781526266485690,1506166634797362039
98
90
2637884402540451982,4638499294009575633
99
91
798869613692279889,8699484505161403540
100
92
```
101
-
This mode is specifically useful to processes a subset of partition-ranges that may have failed during a previous run.
102
-
103
-
> **Note:**
104
-
> A file ending with `*_partitions.csv` will be auto created by the Migration & Validation job in the above format containing any failed partition ranges. Just rename it as below & run the above job.
93
+
Each line above represents a partition-range (`min,max`). Alternatively, you can also pass the partition-file via command-line param as shown below
- You can also use the tool to validate data for a specific partition ranges using class option `--class com.datastax.cdm.job.DiffPartitionsFromFile` as shown below,
This mode is specifically useful to processes a subset of partition-ranges that may have failed during a previous run.
117
103
118
-
When running in above mode the tool assumes a `partitions.csv` file to be present in the current folder.
104
+
> **Note:**
105
+
> A file named `./<keyspacename>.<tablename>_partitions.csv` is auto generated by the Migration & Validation jobs in the above format containing any failed partition ranges. No file is created if there are no failed partitions. You can use this file as an input to process any failed partition in a following run.
119
106
120
107
# Perform large-field Guardrail violation checks
121
108
- The tool can be used to identify large fields from a table that may break you cluster guardrails (e.g. AstraDB has a 10MB limit for a single large field) `--class com.datastax.cdm.job.GuardrailCheck` as shown below
@@ -132,7 +119,7 @@ When running in above mode the tool assumes a `partitions.csv` file to be presen
132
119
- Including counter table [Counter tables](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_using/useCountersConcept.html)
133
120
- Preserve [writetimes](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_reference/cql_commands/cqlSelect.html#cqlSelect__retrieving-the-datetime-a-write-occurred-p) and [TTLs](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_reference/cql_commands/cqlSelect.html#cqlSelect__ref-select-ttl-p)
134
121
- Supports migration/validation of advanced DataTypes ([Sets](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_reference/refDataTypes.html#refDataTypes__set), [Lists](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_reference/refDataTypes.html#refDataTypes__list), [Maps](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_reference/refDataTypes.html#refDataTypes__map), [UDTs](https://docs.datastax.com/en/dse/6.8/cql/cql/cql_reference/refDataTypes.html#refDataTypes__udt))
135
-
- Filter records from `Origin` using `writetimes` and/or CQL conditions and/or min/max token-range
122
+
- Filter records from `Origin` using `writetimes` and/or CQL conditions and/or a list of token-ranges
136
123
- Perform guardrail checks (identify large fields)
137
124
- Supports adding `constants` as new columns on `Target`
138
125
- Supports expanding `Map` columns on `Origin` into multiple records on `Target`
Copy file name to clipboardExpand all lines: RELEASE.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
1
# Release Notes
2
+
## [4.1.0] - 2023-06-20
3
+
- Refactored exception handling and loading of token-range filters to use the same Migrate & DiffData jobs instead of separate jobs to reduce code & maintenance overhead
4
+
2
5
## [4.0.2] - 2023-06-16
3
6
- Capture failed partitions in a file for easier reruns
0 commit comments