[fix](dump) do not report success if dumping fails (#37510)

## Proposed changes
pick https://github.com/apache/doris/pull/37508

Issue Number: close #xxx

<!--Describe your changes.-->
This commit is contained in:
Yongqiang YANG
2024-07-10 16:26:14 +08:00
committed by GitHub
parent afcc6170f6
commit a7416f6ff9

View File

@ -5400,6 +5400,7 @@ public class Env {
saveImage(dumpFile, journalId);
} catch (IOException e) {
LOG.error("failed to dump image to {}", dumpFilePath, e);
return null;
}
} finally {
// unlock all