Sahina Bose has posted comments on this change.

Change subject: gluster: During import check host existence by UUID
......................................................................


Patch Set 1:

(2 comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetAddedGlusterServersQuery.java
Line 49:         // Keep server details in the map only for the servers which 
are reachable
Line 50:         Iterator<Map.Entry<String, String>> iterator = 
glusterServers.entrySet().iterator();
Line 51:         while (iterator.hasNext()) {
Line 52:             Map.Entry<String, String> entry = iterator.next();
Line 53:             if (entry.getValue() == null) {
Why don't you move this logic to the method getAddedGlusterServers instead? You 
can add to map only when fingerprint is valid.
Line 54:                 iterator.remove();
Line 55:             }
Line 56:         }
Line 57: 


....................................................
File 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/gluster/GetAddedGlusterServersQueryTest.java
Line 98: 
Line 99:     private void setupExpectedGlusterServersInfo() {
Line 100:         expectedServers = new ArrayList<GlusterServerInfo>();
Line 101:         GlusterServerInfo server = new GlusterServerInfo();
Line 102:         server = new GlusterServerInfo();
Was there a reason to reduce the expected server list to 1?
Line 103:         server.setUuid(server_id3);
Line 104:         server.setHostnameOrIp(TEST_SERVER3);
Line 105:         server.setStatus(PeerStatus.CONNECTED);
Line 106:         expectedServers.add(server);


-- 
To view, visit http://gerrit.ovirt.org/20697
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I60f5fdf16c6b2cf717a041b34f9e62e0ac6b78f3
Gerrit-PatchSet: 1
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: 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

Reply via email to