Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
more pauses
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Feldman committed Apr 6, 2015
1 parent 8b5ad3b commit f5d77b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Expand Up @@ -353,10 +353,10 @@ public void deleteApplication(UUID applicationId) throws Exception {
}
});

final Observable nodes = managementGraphManager.deleteNode(deletedAppId, Long.MAX_VALUE);
final Observable deleteIndex = aei.deleteApplication();
final Observable deleteNodeGraph = managementGraphManager.deleteNode(deletedAppId, Long.MAX_VALUE);
final Observable deleteAppFromIndex = aei.deleteApplication();

return Observable.concat(copyConnections, nodes, deleteIndex)
return Observable.concat(copyConnections, deleteNodeGraph, deleteAppFromIndex)
.doOnCompleted(() -> {
try {
managementEm.delete(appInfoToDelete);
Expand Down
Expand Up @@ -291,14 +291,13 @@ public void singleOrderByMaxLimit( IoHelper io ) throws Exception {

for ( int i = 0; i < size; i++ ) {
Map<String, Object> entity = new HashMap<String, Object>();
entity.put( "name", String.valueOf( i ) );
entity.put("name", String.valueOf(i));

io.writeEntity( entity );
io.writeEntity(entity);
//we have to sleep, or we kill embedded cassandra
Thread.sleep( 10 );

}

app.refreshIndex();
long stop = System.currentTimeMillis();

LOG.info( "Writes took {} ms", stop - start );
Expand Down Expand Up @@ -368,6 +367,7 @@ protected void singleOrderByIntersection( IoHelper io ) throws Exception {
}
}
app.refreshIndex();
Thread.sleep(500);


long stop = System.currentTimeMillis();
Expand Down Expand Up @@ -1126,7 +1126,7 @@ protected void allIn( IoHelper io ) throws Exception {
LOG.info( "Writes took {} ms", stop - start );

app.refreshIndex();
app.refreshIndex();
Thread.sleep(500);

Query query = new Query();
query.setLimit( 100 );
Expand Down

0 comments on commit f5d77b1

Please sign in to comment.