Skip to content

Commit

Permalink
Issue with jobs not completing when some schema's were already present.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstreev committed Feb 4, 2025
1 parent dc3ae2a commit ce0e1e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<groupId>com.cloudera.utils.hadoop</groupId>
<artifactId>hms-mirror</artifactId>
<version>2.3.0.8</version>
<version>2.3.0.9</version>
<packaging>jar</packaging>

<name>hms-mirror</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,14 +559,8 @@ public Future<Boolean> run() {
try {
if (sf.isDone() && sf.get() != null) {
TableMirror tableMirror = sf.get().getTableMirror();
if (sf.get().getStatus() == ReturnStatus.Status.ERROR) {
// Check if the table was removed, so that's not a processing error.
if (tableMirror != null) {
if (!tableMirror.isRemove()) {
rtn = Boolean.FALSE;
}
}
} else if (sf.get().getStatus() == ReturnStatus.Status.SUCCESS) {
// Only push SUCCESSFUL tables to the migrationExecutions list.
if (sf.get().getStatus() == ReturnStatus.Status.SUCCESS) {
// Success means add table the execution list.
migrationExecutions.add(tableMirror);
}
Expand Down

0 comments on commit ce0e1e8

Please sign in to comment.