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
Copy file name to clipboardexpand all lines: datahub-upgrade/src/main/java/com/linkedin/datahub/upgrade/system/schemafield/GenerateSchemaFieldsFromSchemaMetadataStep.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,8 @@ public Function<UpgradeContext, UpgradeStepResult> executable() {
Copy file name to clipboardexpand all lines: docs/how/restore-indices.md
+10-1
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,14 @@ The following configurations are available:
39
39
*`aspectNames`: Comma-separated list of aspects to restore (e.g., "ownership,status")
40
40
*`urnLike`: SQL LIKE pattern to filter URNs (e.g., "urn:li:dataset%")
41
41
42
+
43
+
### Elasticsearch Only
44
+
45
+
*`readOnly`: Enable SQL read-only mode
46
+
47
+
During the restore indices process, it will create missing default aspects in SQL by default. While this may be
48
+
desired in some situations, disabling this feature is required when using a read-only SQL replica.
49
+
42
50
### Nuclear option
43
51
*`clean`: This option wipes out the current indices by running deletes of all the documents to guarantee a consistent state with SQL. This is generally not recommended unless there is significant data corruption on the instance.
44
52
@@ -264,7 +272,8 @@ Remember to reset this after restoration completes!
264
272
265
273
#### SQL/Primary Storage
266
274
267
-
Consider using a read replica as the source of the job's data.
275
+
Consider using a read replica as the source of the job's data. If you enable configure a read-only replica
276
+
you must also provide the parameter `readOnly=true`.
Copy file name to clipboardexpand all lines: metadata-service/openapi-servlet/src/main/java/io/datahubproject/openapi/operations/elastic/ElasticsearchController.java
+7-3
Original file line number
Diff line number
Diff line change
@@ -490,7 +490,8 @@ public ResponseEntity<List<RestoreIndicesResult>> restoreIndices(
490
490
@RequestParam(required = false, name = "limit", defaultValue = "0") @NullableIntegerlimit,
491
491
@RequestParam(required = false, name = "gePitEpochMs", defaultValue = "0") @Nullable
492
492
LonggePitEpochMs,
493
-
@RequestParam(required = false, name = "lePitEpochMs") @NullableLonglePitEpochMs) {
493
+
@RequestParam(required = false, name = "lePitEpochMs") @NullableLonglePitEpochMs,
Copy file name to clipboardexpand all lines: metadata-service/openapi-servlet/src/test/java/io/datahubproject/openapi/operations/elastic/ElasticsearchControllerTest.java
Copy file name to clipboardexpand all lines: metadata-service/restli-servlet-impl/src/main/java/com/linkedin/metadata/resources/entity/AspectResource.java
+3-2
Original file line number
Diff line number
Diff line change
@@ -373,7 +373,8 @@ public Task<String> restoreIndices(
Copy file name to clipboardexpand all lines: metadata-service/restli-servlet-impl/src/main/java/com/linkedin/metadata/resources/operations/OperationsResource.java
+3-2
Original file line number
Diff line number
Diff line change
@@ -103,10 +103,11 @@ public Task<String> restoreIndices(
0 commit comments