HI Thanks for reviewing PR #19517. The PR fixes an issue where export-schema could exit with status 0 even when it failed to write the SQL file. It now creates missing parent directories and returns a nonzero status on write failure, so backup jobs can detect it.
I addressed both of your comments in commit e4f8dcbd0e. On macOS with JDK 17.0.12, I verified that exporting through a directory symlink exits with status 0 and writes SQL matching the server’s SHOW CREATE TABLE output. I also verified that both the launcher and the exporter JVM exit when the test times out or is interrupted. The regression test passed with both one and three DataNodes. Could you take another look at the updated PR <https://github.com/apache/iotdb/pull/19517>? Thanks, DaZuiZui Bryan Yang <[email protected]> 于2026年12月3日周四 11:57写道: > 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 >
