You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/07 06:03:24 UTC

[GitHub] [incubator-doris] ChPi opened a new issue, #8886: [Bug] fix backup timeout on a table without partition

ChPi opened a new issue, #8886:
URL: https://github.com/apache/incubator-doris/issues/8886

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   0.15
   
   ### What's Wrong?
   
   if a table has no partition, the backup job on it  will be timeout.
   
   ### What You Expected?
   
   backup successfull
   
   ### How to Reproduce?
   
   create
   ```sql
   CREATE TABLE `test` (
     `k1` int(11) NULL COMMENT "",
     `k2` int(11) NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`, `k2`)
   COMMENT "OLAP"
   PARTITION BY RANGE(`k1`)
   (
   )
   DISTRIBUTED BY HASH(`k1`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   CREATE TABLE `test1` (
     `k1` int(11) NULL COMMENT "",
     `k2` int(11) NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`, `k2`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`k1`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   ```
   backup
   ```sql
   BACKUP SNAPSHOT test.backup1
       TO s3_repo
       ON (test,test1);
   ```
   fe throw
   ```
   java.util.NoSuchElementException: No value present
   	at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_261]
   	at org.apache.doris.catalog.OlapTable.selectiveCopy(OlapTable.java:1289) ~[palo-fe.jar:3.4.0]
   	at org.apache.doris.backup.BackupJob.prepareBackupMeta(BackupJob.java:508) ~[palo-fe.jar:3.4.0]
   	at org.apache.doris.backup.BackupJob.prepareAndSendSnapshotTask(BackupJob.java:399) ~[palo-fe.jar:3.4.0]
   	at org.apache.doris.backup.BackupJob.run(BackupJob.java:302) ~[palo-fe.jar:3.4.0]
   	at org.apache.doris.backup.BackupHandler.runAfterCatalogReady(BackupHandler.java:188) ~[palo-fe.jar:3.4.0]
   	at org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58) ~[palo-fe.jar:3.4.0]
   	at org.apache.doris.common.util.Daemon.run(Daemon.java:116) [palo-fe.jar:3.4.0]
   ```
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org