Hi Yuan Tian, Thanks for the review. I’ve pushed the fixes to PR #19494 <https://github.com/apache/iotdb/pull/19494/commits/bc12a09af77f0bd8a1f95032342bf9d40e5559f7>. The offline backup tool now handles whitespace in directory settings and explicit data and WAL targets. It also preserves the object_storage tier and backs up a local directory named OBJECT_STORAGE correctly.
I updated the subprocess tests for Windows and verified on macOS that both regression tests failed before the fix and passed afterward. Spotless also passed. Could you take another look when you have a chance? Thanks, DaZuiZui Yuan Tian <[email protected]> 于2026年12月2日周三 12:02写道: > I'm reviewing on it. > > On Wed, Dec 2, 2026 at 11:35 AM Bryan Yang <[email protected]> wrote: > > > Hi all, good morning, > > > > I found an offline backup issue in IoTDB 2.0.12. With > dn_data_dirs=/data/a, > > /data/b, the DataNode writes to both directories, but backup.sh skips > > /data/b and still logs all operations are complete. > > > > I verified this by restoring backups from the same stopped database. The > > source contained 12 rows across four TsFiles. With a space after the > comma, > > the restored instance returned only 6 rows. Reversing the directory order > > recovered exactly the other 6 rows. Removing the space restored all 12 in > > either order. > > > > The DataNode trims each configured path. The backup tool retains the > > leading space, treats the second path as relative, and skips it during > both > > counting and copying. This is why an incomplete backup can still report > > 281/281 files copied. > > > > I submitted a fix that trims whitespace around directory separators while > > preserving spaces within directory names. With the original > configuration, > > the patched backup restored all 12 rows, and the SHA-256 hashes of all > four > > TsFiles matched the source. The PR includes a regression test. I’d > > appreciate a review. > > > > Issue #19493 <https://github.com/apache/iotdb/issues/19493> · PR #19494 > > <https://github.com/apache/iotdb/pull/19494> > > > > Thanks, > > DaZuiZui > > >
