Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,20 @@ public static void initialize() throws IOException
int port = node.getBroadcastRpcAddress().get().getPort();
contactPoints.add(new InetSocketAddress(hostname, port));
}
int count = 0;
while(initialSession.getMetadata().getKeyspace(ECCHRONOS_KEYSPACE).isEmpty() && count < 60)
{
count++;
LOG.warn("Ecchronos keyspace not found, retrying");
try
{
Thread.sleep(1000);
}
catch (InterruptedException e)
{
// Ignore
}
}
initialSession.close();

AuthProvider authProvider = new ProgrammaticPlainTextAuthProvider("eccuser", "eccpassword");
Expand Down
Loading