mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-13 11:06:30 +00:00
fix(restore-indices): Do not fail on MAE row count diff (#5165)
This commit is contained in:
parent
2dfc166bbd
commit
b890ba0d12
@ -100,8 +100,8 @@ public class SendMAEStep implements UpgradeStep {
|
||||
AspectSpec aspectSpec = entitySpec.getAspectSpec(aspectName);
|
||||
if (aspectSpec == null) {
|
||||
context.report()
|
||||
.addLine(String.format("Failed to find aspect with name %s associated with entity named %s",
|
||||
aspectName, entityName));
|
||||
.addLine(String.format("Failed to find aspect with name %s associated with entity named %s", aspectName,
|
||||
entityName));
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -135,11 +135,7 @@ public class SendMAEStep implements UpgradeStep {
|
||||
}
|
||||
}
|
||||
if (totalRowsMigrated != rowCount) {
|
||||
context.report()
|
||||
.addLine(
|
||||
String.format("Number of MAEs sent %s does not equal the number of input rows %s...", totalRowsMigrated,
|
||||
rowCount));
|
||||
return new DefaultUpgradeStepResult(id(), UpgradeStepResult.Result.FAILED);
|
||||
context.report().addLine(String.format("Failed to send MAEs for %d rows...", rowCount - totalRowsMigrated));
|
||||
}
|
||||
return new DefaultUpgradeStepResult(id(), UpgradeStepResult.Result.SUCCEEDED);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user