Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
fix vm instance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
grze@eucalyptus.com committed Oct 15, 2011
1 parent b013a00 commit 7b680f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public class VmControl {
public static RunInstancesResponseType runInstances( RunInstancesType request ) throws MetadataException, AuthException {
Allocation allocInfo = Allocations.begin( request );
try {
Predicates.and( VerifyMetadata.get( ), AdmissionControl.get( ), ClusterAllocator.get( ) ).apply( allocInfo );
Predicates.and( VerifyMetadata.get( ), AdmissionControl.get( ) ).apply( allocInfo );
} catch ( Exception ex1 ) {
LOG.trace( ex1, ex1 );
}
Expand All @@ -192,6 +192,7 @@ public String apply( NetworkGroup arg0 ) {
reservation.getInstancesSet( ).add( VmInstances.transform( entity ) );
}
db.commit( );
ClusterAllocator.get( ).apply( allocInfo );
} catch ( Exception ex ) {
Logs.exhaust( ).error( ex, ex );
db.rollback( );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

@SuppressWarnings( "unchecked" )
public class PersistenceContexts {
public static int MAX_FAIL = 5;
private static int MAX_FAIL = 5;
private static AtomicInteger failCount = new AtomicInteger( 0 );
private static Logger LOG = Logger.getLogger( PersistenceContexts.class );
private static final ArrayListMultimap<String, Class> entities = ArrayListMultimap.create( );
Expand Down

0 comments on commit 7b680f5

Please sign in to comment.