Add timeout on snapshot of data (#1672)

Release snapshot when finishing or cancelling backup/restore job.
Snapshot may takes a lot disk space if not releasing them in time.
This commit is contained in:
Mingyu Chen
2019-08-21 21:18:53 +08:00
committed by GitHub
parent 0792e06eed
commit 2b2bc82ae2
16 changed files with 101 additions and 24 deletions

View File

@ -125,7 +125,7 @@ public class AgentTaskTest {
// clone
cloneTask =
new CloneTask(backendId1, dbId, tableId, partitionId, indexId1, tabletId1, schemaHash1,
Arrays.asList(new TBackend("host1", 8290, 8390)), TStorageMedium.HDD, -1, -1);
Arrays.asList(new TBackend("host1", 8290, 8390)), TStorageMedium.HDD, -1, -1, 3600);
// rollup
rollupTask =