You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Dieter De Paepe (Jira)" <ji...@apache.org> on 2025/06/30 09:35:00 UTC

[jira] [Commented] (HBASE-29423) Incremental backups broken for non-default namespaces

    [ https://issues.apache.org/jira/browse/HBASE-29423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986863#comment-17986863 ] 

Dieter De Paepe commented on HBASE-29423:
-----------------------------------------

My PR isn't appearing, so here it is: https://github.com/apache/hbase/pull/7130

> Incremental backups broken for non-default namespaces
> -----------------------------------------------------
>
>                 Key: HBASE-29423
>                 URL: https://issues.apache.org/jira/browse/HBASE-29423
>             Project: HBase
>          Issue Type: Bug
>          Components: backup&amp;restore
>    Affects Versions: 3.0.0, 4.0.0-alpha-1, 2.6.2
>            Reporter: Dieter De Paepe
>            Priority: Critical
>
> HBASE-27659 added the `getTargetDirForTable(TableName table)` method to `IncrementalTableBackupClient`. In that method, the following line causes an URISyntaxException for a table that has a (non-default) namespace:
> {code:java}
> path = new Path(path, table.getNameAsString());{code}
> Since that resolves to "namespace:tablename". Which in turn gets parsed as a URI schema incorrectly. The resulting error:
> {code:java}
> [2025-06-25T11:16:33.844Z] Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ngdata:CUSTOMER[2025-06-25T11:16:33.844Z]      at org.apache.hadoop.fs.Path.initialize(Path.java:264)[2025-06-25T11:16:33.844Z]      at org.apache.hadoop.fs.Path.<init>(Path.java:222)[2025-06-25T11:16:33.844Z]      at org.apache.hadoop.fs.Path.<init>(Path.java:130)[2025-06-25T11:16:33.844Z]      at org.apache.hadoop.hbase.backup.impl.IncrementalTableBackupClient.getTargetDirForTable(IncrementalTableBackupClient.java:462) {code}
> This breaks incremental backups.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)