cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-10241) Duplicated file SRs being created in XenServer pools
Date Tue, 30 Jan 2018 17:32:00 GMT


ASF GitHub Bot commented on CLOUDSTACK-10241:

rafaelweingartner commented on a change in pull request #2414: [CLOUDSTACK-10241] Duplicated
file SRs being created in XenServer pools

 File path: plugins/hypervisors/xenserver/src/test/java/com/cloud/hypervisor/xenserver/resource/
 @@ -30,7 +31,7 @@
     public void beforeTest() {
-        super.citrixResourceBase = new Xenserver625Resource();
+        super.citrixResourceBase = Mockito.spy(new Xenserver625Resource());
 Review comment:
   Oh, this one... It is because there is a hierarchy of test classes.. :(.. the property
`citrixResourceBase` needs to be either a mock or spy object because of the testes executed
in the super class. Therefore, needed to create a spy object whenever attributing an object
to this property.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Duplicated file SRs being created in XenServer pools
> ----------------------------------------------------
>                 Key: CLOUDSTACK-10241
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Rafael Weingärtner
>            Assignee: Rafael Weingärtner
>            Priority: Major
> Due to a race condition between multiple management servers, in some rare cases, CloudStack
is creating multiple file SRs to the same secondary folder. This causes a problem when introducing
the SR to the XenServer pools, as “there will be VDIs with duplicated UUIDs“. The VDIs
are the same, but they are seen in different SRs, and therefore cause an error.

This message was sent by Atlassian JIRA

View raw message