This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 088cf44986d [chore](restore) Add logs about the restore table state
(#35363)
088cf44986d is described below
commit 088cf44986d2183f5efeb89eea0758618e36a754
Author: walter <[email protected]>
AuthorDate: Fri May 24 23:28:01 2024 +0800
[chore](restore) Add logs about the restore table state (#35363)
---
fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java
b/fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java
index 3497a1a187a..51220dd13b7 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java
@@ -2023,6 +2023,7 @@ public class RestoreJob extends AbstractJob {
for (String tableName : jobInfo.backupOlapTableObjects.keySet()) {
Table tbl =
db.getTableNullable(jobInfo.getAliasByOriginNameIfSet(tableName));
if (tbl == null) {
+ LOG.warn("table {} is not found and skip set state to normal",
tableName);
continue;
}
@@ -2037,6 +2038,7 @@ public class RestoreJob extends AbstractJob {
try {
if (olapTbl.getState() == OlapTableState.RESTORE
|| olapTbl.getState() ==
OlapTableState.RESTORE_WITH_LOAD) {
+ LOG.info("table {} set state from {} to normal",
tableName, olapTbl.getState());
olapTbl.setState(OlapTableState.NORMAL);
}
@@ -2045,6 +2047,8 @@ public class RestoreJob extends AbstractJob {
String partitionName = partitionEntry.getKey();
Partition partition = olapTbl.getPartition(partitionName);
if (partition == null) {
+ LOG.warn("table {} partition {} is not found and skip
set state to normal",
+ tableName, partitionName);
continue;
}
if (partition.getState() == PartitionState.RESTORE) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]