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/12 02:39:44 UTC
[GitHub] [incubator-doris] yangzhg commented on a diff in pull request #8921: [Bug] fix backup timeout on a table without partition
yangzhg commented on code in PR #8921:
URL: https://github.com/apache/incubator-doris/pull/8921#discussion_r847892735
##########
fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java:
##########
@@ -358,6 +358,18 @@ private void prepareAndSendSnapshotTask() {
taskProgress.clear();
taskErrMsg.clear();
AgentBatchTask batchTask = new AgentBatchTask();
+
+ // remove table which has no partition
+ tableRefs = tableRefs.stream().filter(tableRef -> {
+ String tblName = tableRef.getName().getTbl();
+ Table tbl = db.getTableNullable(tblName);
+ if (tbl != null && tbl.getType() == TableType.OLAP) {
+ OlapTable olapTable = (OlapTable) tbl;
+ return !olapTable.getAllPartitions().isEmpty();
Review Comment:
What kind of table does not have a partition?
--
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
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