| Chunk |
|---|
| Conflicting content |
|---|
private VmTypeInfo vmTypeInfo; private final AtomicMarkableReference |
| Solution content |
|---|
private VmTypeInfo vmTypeInfo; private final AtomicMarkableReference |
| File |
|---|
| VmInstance.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Method invocation |
| Chunk |
|---|
| Conflicting content |
|---|
import com.eucalyptus.bootstrap.Component; import com.eucalyptus.cluster.callback.StopNetworkCallback; import com.eucalyptus.cluster.callback.TerminateCallback; <<<<<<< HEAD ======= import com.eucalyptus.component.Dispatcher; >>>>>>> 31802b5f2dc264b8766c12008876b2032fc6aa2a import com.eucalyptus.config.Configuration; import com.eucalyptus.config.StorageControllerConfiguration; import com.eucalyptus.event.AbstractNamedRegistry; |
| Solution content |
|---|
import com.eucalyptus.bootstrap.Component; import com.eucalyptus.cluster.callback.StopNetworkCallback; import com.eucalyptus.cluster.callback.TerminateCallback; import com.eucalyptus.config.Configuration; import com.eucalyptus.config.StorageControllerConfiguration; import com.eucalyptus.event.AbstractNamedRegistry; |
| File |
|---|
| VmInstances.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
import com.eucalyptus.util.async.UnconditionalCallback; import com.eucalyptus.vm.SystemState; import com.eucalyptus.vm.VmState; <<<<<<< HEAD import com.eucalyptus.vm.SystemState.Reason; import com.eucalyptus.ws.client.ServiceDispatcher; import com.eucalyptus.records.EventRecord; ======= import com.eucalyptus.ws.client.ServiceDispatcher; >>>>>>> 31802b5f2dc264b8766c12008876b2032fc6aa2a import com.google.common.base.Function; import com.google.common.base.Predicate; import com.google.common.base.Predicates; |
| Solution content |
|---|
import com.eucalyptus.util.async.UnconditionalCallback; import com.eucalyptus.vm.SystemState; import com.eucalyptus.vm.VmState; import com.eucalyptus.vm.SystemState.Reason; import com.eucalyptus.ws.client.ServiceDispatcher; import com.eucalyptus.records.EventRecord; import com.google.common.base.Function; |
| File |
|---|
| VmInstances.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Import |
| Chunk |
|---|
| Conflicting content |
|---|
}
};
private static void cleanUpAttachedVolumes( final VmInstance vm ) {
<<<<<<< HEAD
Cluster cluster = Clusters.getInstance( ).lookup( vm.getPlacement( ) );
if ( !vm.getVolumes( ).isEmpty( ) ) {
try {
StorageControllerConfiguration sc = Configuration.lookupSc( vm.getPlacement( ) );
for ( AttachedVolume volume : vm.getVolumes( ) ) {
try {
ServiceDispatcher.lookup( Component.storage, sc.getHostName( ) ).send( new DetachStorageVolumeType(
cluster.getNode( vm.getServiceTag( ) ).getIqn( ),
volume.getVolumeId( ) ) );
vm.getVolumes( ).remove( volume );
} catch ( Throwable e ) {
LOG.error( "Failed sending Detach Storage Volume for: " + volume.getVolumeId( )
+ ". Will keep trying as long as instance is reported. The request failed because of: " + e.getMessage( ), e );
}
}
} catch ( Exception ex ) {
LOG.error( "Failed to lookup Storage Controller configuration for: " + vm.getInstanceId( ) + " (placement=" + vm.getPlacement( ) + "). " +
"The the following volumes are attached: " + Iterables.transform( vm.getVolumes( ), new Function |
| Solution content |
|---|
private static void cleanUpAttachedVolumes( final VmInstance vm ) {
Cluster cluster = Clusters.getInstance( ).lookup( vm.getPlacement( ) );
if ( !vm.getVolumes( ).isEmpty( ) ) {
try {
StorageControllerConfiguration sc = Configuration.lookupSc( vm.getPlacement( ) );
for ( AttachedVolume volume : vm.getVolumes( ) ) {
try {
ServiceDispatcher.lookup( Component.storage, sc.getHostName( ) ).send( new DetachStorageVolumeType(
cluster.getNode( vm.getServiceTag( ) ).getIqn( ),
volume.getVolumeId( ) ) );
vm.getVolumes( ).remove( volume );
} catch ( Throwable e ) {
LOG.error( "Failed sending Detach Storage Volume for: " + volume.getVolumeId( )
+ ". Will keep trying as long as instance is reported. The request failed because of: " + e.getMessage( ), e );
}
}
} catch ( Exception ex ) {
LOG.error( "Failed to lookup Storage Controller configuration for: " + vm.getInstanceId( ) + " (placement=" + vm.getPlacement( ) + "). " +
"The the following volumes are attached: " + Iterables.transform( vm.getVolumes( ), new Function |
| File |
|---|
| VmInstances.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Catch clause |
| If statement |
| Method invocation |
| Try statement |
| Variable |