Sahina Bose has posted comments on this change. Change subject: gluster: VDS Cmd: gluster remove bricks status ......................................................................
Patch Set 2: (2 comments) .................................................... File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/gluster/GetGlusterVolumeRemoveBricksStatusVDSCommand.java Line 27: List<GlusterBrickEntity> bricksList = getParameters().getBricks(); Line 28: List<String> brickNames = new ArrayList<String>(); Line 29: for (GlusterBrickEntity brick : bricksList) { Line 30: brickNames.add(brick.getQualifiedName()); Line 31: } Why don't you directly build String[] here? Btw, there's a findbug violation on casting to String[] below Line 32: Line 33: result = getBroker().glusterVolumeRemoveBrickStatus(volumeName, (String[])brickNames.toArray(), getParameters().getReplicaCount()); Line 34: proceedProxyReturnValue(); Line 35: .................................................... File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsServerWrapper.java Line 1257: } Line 1258: } Line 1259: Line 1260: @Override Line 1261: public GlusterVolumeTaskReturnForXmlRpc glusterVolumeRemoveBrickStatus(String volumeName, String[] bricksList, int replicaCount) { Is replicaCount required for status? AFAIK, we don't persist the replicaCount change after remove brick was issued. Line 1262: try { Line 1263: Map<String, Object> xmlRpcReturnValue = vdsServer.glusterVolumeRemoveBrickStatus(volumeName, bricksList, replicaCount); Line 1264: GlusterVolumeTaskReturnForXmlRpc wrapper = new GlusterVolumeTaskReturnForXmlRpc(xmlRpcReturnValue); Line 1265: return wrapper; -- To view, visit http://gerrit.ovirt.org/19106 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I21da52b06c6d48fa5e344909b7d78d044c902b4b Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Shubhendu Tripathi <shtri...@redhat.com> Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Ramesh N <rnach...@redhat.com> Gerrit-Reviewer: Sahina Bose <sab...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches