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
>

Reply via email to