Skip to content

Conversation

@ankitsol
Copy link

In incremental backup, we copy bulkload files to backup location (along with Hfiles generated from WALs). We introduced IncrCommittedWalTs field for incremental backup and this needs to be used in copy bulkload code so only bulkload files till IncrCommittedWalTs timestamp are copied to incremental backup

JIRA: https://issues.apache.org/jira/browse/HBASE-29459

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

Copy link
Contributor

@kgeisz kgeisz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@taklwu taklwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a question to understand the logic, but otherwise LGTM

}
result.add(new BulkLoad(table, region, fam, path, row));
LOG.debug("found orig " + path + " for " + fam + " of table " + region);
LOG.debug("found orig {} for {} of table {} with timestamp {}", path, fam, region,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit adjust the short form to clear wording

Suggested change
LOG.debug("found orig {} for {} of table {} with timestamp {}", path, fam, region,
LOG.debug("found original path {} for column family {} of table {} with timestamp {}", path, fam, region,

long timestamp = 0L;
for (Cell cell : res.listCells()) {
row = CellUtil.cloneRow(cell);
timestamp = cell.getTimestamp();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so is this timestamp the IncrCommittedWalTs? I cannot find other timestamp representing it but it looks like this PR share the same setup as #7150 that used the BulkLoad#timestamp as IncrCommittedWalTs?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This timestamp is Bulkload timestamp (time at which Bulkload operation is triggered). This will be saved in backup system table and compared with IncrCommittedWalTs during incremental backup

taklwu
taklwu previously approved these changes Jul 22, 2025
@taklwu taklwu dismissed their stale review July 22, 2025 04:06

please fix spotless, spotbugs, javac and blanks

List<String> activeFiles = new ArrayList<>();
List<String> archiveFiles = new ArrayList<>();
List<BulkLoad> bulkLoads = backupManager.readBulkloadRows(tablesToBackup);
List<BulkLoad> bulkLoads = new ArrayList<>();
Copy link
Contributor

@taklwu taklwu Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
List<BulkLoad> bulkLoads = new ArrayList<>();
List<BulkLoad> bulkLoads = backupInfo.isContinuousBackupEnabled() ?
backupManager.readBulkloadRows(tablesToBackup, backupInfo.getIncrCommittedWalTs()) :
backupManager.readBulkloadRows(tablesToBackup);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this may help the spotbugs error

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 36s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
_ HBASE-28957 Compile Tests _
+1 💚 mvninstall 3m 19s HBASE-28957 passed
+1 💚 compile 0m 33s HBASE-28957 passed
-0 ⚠️ checkstyle 0m 10s /buildtool-branch-checkstyle-hbase-backup.txt The patch fails to run checkstyle in hbase-backup
+1 💚 spotbugs 0m 32s HBASE-28957 passed
+1 💚 spotless 0m 48s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 6s the patch passed
+1 💚 compile 0m 31s the patch passed
+1 💚 javac 0m 31s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 0m 9s /buildtool-patch-checkstyle-hbase-backup.txt The patch fails to run checkstyle in hbase-backup
+1 💚 spotbugs 0m 37s the patch passed
+1 💚 hadoopcheck 12m 20s Patch does not cause any errors with Hadoop 3.3.6 3.4.0.
+1 💚 spotless 0m 45s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 0m 10s The patch does not generate ASF License warnings.
31m 23s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7166/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #7166
Optional Tests dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
uname Linux d5db18a684cb 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision HBASE-28957 / 674074b
Default Java Eclipse Adoptium-17.0.11+9
Max. process+thread count 83 (vs. ulimit of 30000)
modules C: hbase-backup U: hbase-backup
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7166/3/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 40s Docker mode activated.
-0 ⚠️ yetus 0m 3s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ HBASE-28957 Compile Tests _
+1 💚 mvninstall 3m 15s HBASE-28957 passed
+1 💚 compile 0m 19s HBASE-28957 passed
+1 💚 javadoc 0m 14s HBASE-28957 passed
+1 💚 shadedjars 5m 56s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 3m 5s the patch passed
+1 💚 compile 0m 19s the patch passed
+1 💚 javac 0m 19s the patch passed
+1 💚 javadoc 0m 13s the patch passed
+1 💚 shadedjars 5m 54s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌ unit 23m 16s /patch-unit-hbase-backup.txt hbase-backup in the patch failed.
44m 11s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7166/3/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #7166
Optional Tests javac javadoc unit compile shadedjars
uname Linux c2d3b1bd6bce 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision HBASE-28957 / 674074b
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7166/3/testReport/
Max. process+thread count 3751 (vs. ulimit of 30000)
modules C: hbase-backup U: hbase-backup
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-7166/3/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@ankitsol ankitsol requested a review from taklwu July 22, 2025 15:01
@taklwu taklwu merged commit 15dc75f into apache:HBASE-28957 Jul 22, 2025
1 check failed
anmolnar pushed a commit that referenced this pull request Jul 28, 2025
…g Incremental Backup (#7166)

Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Reviewed by: Kevin Geiszler <kevin.j.geiszler@gmail.com>
vinayakphegde pushed a commit to vinayakphegde/hbase that referenced this pull request Jul 29, 2025
…g Incremental Backup (apache#7166)

Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Reviewed by: Kevin Geiszler <kevin.j.geiszler@gmail.com>
vinayakphegde pushed a commit to vinayakphegde/hbase that referenced this pull request Jul 29, 2025
…g Incremental Backup (apache#7166)

Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Reviewed by: Kevin Geiszler <kevin.j.geiszler@gmail.com>
anmolnar pushed a commit that referenced this pull request Sep 11, 2025
…g Incremental Backup (#7166)

Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Reviewed by: Kevin Geiszler <kevin.j.geiszler@gmail.com>
anmolnar pushed a commit that referenced this pull request Nov 6, 2025
…g Incremental Backup (#7166)

Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org>
Reviewed by: Kevin Geiszler <kevin.j.geiszler@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants