@@ -1202,7 +1202,7 @@ public void rollback(FlowRollback trigger, Map data) {
1202
1202
if (deleteOnRollback && cachePath != null ) {
1203
1203
DeleteCmd cmd = new DeleteCmd ();
1204
1204
cmd .installPath = cachePath ;
1205
- httpCall (DELETE_PATH , cmd , DeleteRsp .class , new ReturnValueCompletion <DeleteRsp >() {
1205
+ httpCall (DELETE_PATH , cmd , DeleteRsp .class , new ReturnValueCompletion <DeleteRsp >(null ) {
1206
1206
@ Override
1207
1207
public void success (DeleteRsp returnValue ) {
1208
1208
logger .debug (String .format ("successfully deleted %s" , cachePath ));
@@ -1250,7 +1250,7 @@ public void rollback(FlowRollback trigger, Map data) {
1250
1250
if (needCleanup ) {
1251
1251
DeleteSnapshotCmd cmd = new DeleteSnapshotCmd ();
1252
1252
cmd .snapshotPath = snapshotPath ;
1253
- httpCall (DELETE_SNAPSHOT_PATH , cmd , DeleteSnapshotRsp .class , new ReturnValueCompletion <DeleteSnapshotRsp >() {
1253
+ httpCall (DELETE_SNAPSHOT_PATH , cmd , DeleteSnapshotRsp .class , new ReturnValueCompletion <DeleteSnapshotRsp >(null ) {
1254
1254
@ Override
1255
1255
public void success (DeleteSnapshotRsp returnValue ) {
1256
1256
logger .debug (String .format ("successfully deleted the snapshot %s" , snapshotPath ));
@@ -1935,7 +1935,7 @@ public void done() {
1935
1935
}
1936
1936
}
1937
1937
1938
- mon .connect (new Completion () {
1938
+ mon .connect (new Completion (releaseLock ) {
1939
1939
@ Override
1940
1940
public void success () {
1941
1941
logger .debug (String .format ("successfully reconnected the mon[uuid:%s] of the ceph primary" +
@@ -2545,7 +2545,7 @@ public void run(FlowTrigger trigger, Map data) {
2545
2545
if (sq .count () == 0 ) {
2546
2546
DeleteCmd cmd = new DeleteCmd ();
2547
2547
cmd .installPath = originalVolumePath ;
2548
- httpCall (DELETE_PATH , cmd , DeleteRsp .class , new ReturnValueCompletion <DeleteRsp >() {
2548
+ httpCall (DELETE_PATH , cmd , DeleteRsp .class , new ReturnValueCompletion <DeleteRsp >(null ) {
2549
2549
@ Override
2550
2550
public void success (DeleteRsp returnValue ) {
2551
2551
logger .debug (String .format ("successfully deleted %s" , originalVolumePath ));
@@ -2637,7 +2637,7 @@ public void run(FlowTrigger trigger, Map data) {
2637
2637
if (sq .count () == 0 ) {
2638
2638
DeleteCmd cmd = new DeleteCmd ();
2639
2639
cmd .installPath = originalVolumePath ;
2640
- httpCall (DELETE_PATH , cmd , DeleteRsp .class , new ReturnValueCompletion <DeleteRsp >() {
2640
+ httpCall (DELETE_PATH , cmd , DeleteRsp .class , new ReturnValueCompletion <DeleteRsp >(null ) {
2641
2641
@ Override
2642
2642
public void success (DeleteRsp returnValue ) {
2643
2643
logger .debug (String .format ("successfully deleted %s" , originalVolumePath ));
@@ -2808,7 +2808,7 @@ public void deleteHook() {
2808
2808
if (CephGlobalConfig .PRIMARY_STORAGE_DELETE_POOL .value (Boolean .class )) {
2809
2809
DeletePoolCmd cmd = new DeletePoolCmd ();
2810
2810
cmd .poolNames = list (getSelf ().getImageCachePoolName (), getSelf ().getDataVolumePoolName (), getSelf ().getRootVolumePoolName ());
2811
- FutureReturnValueCompletion completion = new FutureReturnValueCompletion ();
2811
+ FutureReturnValueCompletion completion = new FutureReturnValueCompletion (null );
2812
2812
httpCall (DELETE_POOL_PATH , cmd , DeletePoolRsp .class , completion );
2813
2813
completion .await (TimeUnit .MINUTES .toMillis (30 ));
2814
2814
if (!completion .isSuccess ()) {
0 commit comments