Hi all,good morning,

I found that the table-model export-schema command can print Export
completely! and exit with status 0 even when it produces no SQL file. For
example, exporting to -t backup/today fails when both directories are
missing. A backup job that relies on the exit code would record the export
as successful. Issue #19516 <https://github.com/apache/iotdb/issues/19516>

The proposed fix creates missing parent directories and returns a nonzero
exit status when the output file cannot be written. The regression test
passed on clusters with one and three DataNodes. It checks the exported SQL
against SHOW CREATE TABLE and verifies that a write failure returns status 1
without printing the success message.

I’d appreciate a review. PR #19517
<https://github.com/apache/iotdb/pull/19517>

Thanks,
DaZuiZui

Reply via email to