Skip to content

Commit c84082e

Browse files
committed
fixup
1 parent 5672f7f commit c84082e

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
lines changed

engine/orchestration/src/main/java/com/cloud/agent/manager/DirectAgentAttache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void process(Answer[] answers) {
116116
StartupAnswer startup = (StartupAnswer)answers[0];
117117
int interval = startup.getPingInterval();
118118
logger.info(
119-
"StartupAnswer received [id: {} name: {} Interval: {}]",
119+
"StartupAnswer received [id: {} name: {} interval: {}]",
120120
startup.getHostId(), startup.getHostName(), interval);
121121
_futures.add(_agentMgr.getCronJobPool().scheduleAtFixedRate(new PingTask(), interval, interval, TimeUnit.SECONDS));
122122
}

engine/storage/image/src/main/java/org/apache/cloudstack/storage/image/store/TemplateObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ public boolean isFollowRedirects() {
599599

600600
@Override
601601
public String toString() {
602-
return "VolumeObject{" +
602+
return "TemplateObject{" +
603603
"templateVO=" + getImage() +
604604
", dataStore=" + getDataStore() +
605605
'}';

engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/snapshot/SnapshotObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ public Class<?> getEntityType() {
469469

470470
@Override
471471
public String toString() {
472-
return "VolumeObject{" +
472+
return "SnapshotObject{" +
473473
"snapshotVO=" + getSnapshotVO() +
474474
", dataStore=" + getDataStore() +
475475
'}';

engine/storage/volume/src/main/java/org/apache/cloudstack/storage/datastore/provider/DefaultHostListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public boolean hostConnect(long hostId, long poolId) throws StorageConflictExcep
149149
}
150150

151151
assert (answer instanceof ModifyStoragePoolAnswer) : String.format(
152-
"Well, now why won't you actually return the ModifyStoragePoolAnswer when it's ModifyStoragePoolCommand? Pool=%sHost=%d", pool, hostId);
152+
"Well, now why won't you actually return the ModifyStoragePoolAnswer when it's ModifyStoragePoolCommand? Pool=%s Host=%d", pool, hostId);
153153
ModifyStoragePoolAnswer mspAnswer = (ModifyStoragePoolAnswer) answer;
154154
if (mspAnswer.getLocalDatastoreName() != null && pool.isShared()) {
155155
String datastoreName = mspAnswer.getLocalDatastoreName();

plugins/hypervisors/kvm/src/main/java/org/apache/cloudstack/kvm/ha/KVMHostActivityChecker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private boolean isVMActivityOnHost(Host agent, DateTime suspectTime) throws HACh
155155
for (StoragePool pool : poolVolMap.keySet()) {
156156
activityStatus = verifyActivityOfStorageOnHost(poolVolMap, pool, agent, suspectTime, activityStatus);
157157
if (!activityStatus) {
158-
logger.warn("It seems that the storage pool [{}] does not have activity on {}.", pool, agent.toString());
158+
logger.warn("It seems that the storage pool [{}] does not have activity on {}.", pool, agent);
159159
break;
160160
}
161161
}
@@ -180,7 +180,7 @@ protected boolean verifyActivityOfStorageOnHost(HashMap<StoragePool, List<Volume
180180
throw new IllegalStateException(message);
181181
}
182182
} catch (StorageUnavailableException e){
183-
String message = String.format("Storage [%s] is unavailable to do the check, probably the %s is not reachable.", pool, agent.toString());
183+
String message = String.format("Storage [%s] is unavailable to do the check, probably the %s is not reachable.", pool, agent);
184184
logger.warn(message, e);
185185
throw new HACheckerException(message, e);
186186
}

plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/driver/CloudStackPrimaryDataStoreDriverImpl.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,7 @@ public void deleteAsync(DataStore dataStore, DataObject data, AsyncCompletionCal
266266

267267
@Override
268268
public void copyAsync(DataObject srcdata, DataObject destData, AsyncCompletionCallback<CopyCommandResult> callback) {
269-
logger.debug(
270-
"Copying volume [id: {}, uuid: {}, type:{}] to [id: {} uuid: {}, type: {}]",
271-
srcdata.getId(), srcdata.getUuid(), srcdata.getType(),
272-
destData.getId(), destData.getUuid(), destData.getType());
269+
logger.debug("Copying volume [{}] to [{}]", srcdata, destData);
273270
boolean encryptionRequired = anyVolumeRequiresEncryption(srcdata, destData);
274271
DataStore store = destData.getDataStore();
275272
if (store.getRole() == DataStoreRole.Primary) {

plugins/storage/volume/scaleio/src/test/java/org/apache/cloudstack/storage/datastore/driver/ScaleIOPrimaryDataStoreDriverTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ public void deleteSourceVolumeFailureScenarioWhenNoSDCisFound() {
500500
String srcVolumePath = "bec0ba7700000007:vol-11-6aef-10ee";
501501

502502
DataStore srcStore = Mockito.mock(DataStore.class);
503-
when(srcStore.getId()).thenReturn(1L);
504503
DataTO volumeTO = Mockito.mock(DataTO.class);
505504
when(srcData.getDataStore()).thenReturn(srcStore);
506505
when(srcData.getTO()).thenReturn(volumeTO);

0 commit comments

Comments
 (0)