already approved, waiting for the CI results On Wed, Dec 2, 2026 at 3:58 PM Bryan Yang <[email protected]> wrote:
> Hi Yuan Tian, > > I pushed two follow-up commits to address cases where the offline backup > tool could report success while omitting data. > > - 9105b781 preserves empty entries in dn_data_dirs. For example, > with dn_data_dirs=/hot, > ;/cold, the DataNode treats the blank entry after /hot as the data home > directory. The backup now copies files from that directory and preserves > its position in the restored configuration. This also covers an > explicitly > empty dn_data_dirs= setting. > - 8d8949f5 makes the backup stop when it cannot read or parse > iotdb-system.properties. Previously, it could fall back to default > paths, skip an external data directory, and still report success. It now > logs the error and exits with a nonzero status before creating the > backup > target. > > All six tests in IoTDBDataBackToolTest passed locally with Maven. Could you > take another look at the updated PR > <https://github.com/apache/iotdb/pull/19494>? > > Thanks, > DaZuiZui > > Bryan Yang <[email protected]> 于2026年12月2日周三 14:12写道: > > > 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 > >> > > >> > > >
