mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-13 02:57:03 +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);
|
AspectSpec aspectSpec = entitySpec.getAspectSpec(aspectName);
|
||||||
if (aspectSpec == null) {
|
if (aspectSpec == null) {
|
||||||
context.report()
|
context.report()
|
||||||
.addLine(String.format("Failed to find aspect with name %s associated with entity named %s",
|
.addLine(String.format("Failed to find aspect with name %s associated with entity named %s", aspectName,
|
||||||
aspectName, entityName));
|
entityName));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -135,11 +135,7 @@ public class SendMAEStep implements UpgradeStep {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (totalRowsMigrated != rowCount) {
|
if (totalRowsMigrated != rowCount) {
|
||||||
context.report()
|
context.report().addLine(String.format("Failed to send MAEs for %d rows...", rowCount - totalRowsMigrated));
|
||||||
.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);
|
|
||||||
}
|
}
|
||||||
return new DefaultUpgradeStepResult(id(), UpgradeStepResult.Result.SUCCEEDED);
|
return new DefaultUpgradeStepResult(id(), UpgradeStepResult.Result.SUCCEEDED);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user