Skip to content

Commit

Permalink
add a bit more overall wait time to index creation for some steps
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Feb 13, 2024
1 parent 3dd4e54 commit ba6cd87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integration/java/io/pinecone/helpers/IndexManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private static String createNewIndex(PineconeControlPlaneClient controlPlaneClie
controlPlaneClient.createIndex(createIndexRequest);

if (waitUntilReady) {
waitUntilIndexIsReady(controlPlaneClient, indexName);
waitUntilIndexIsReady(controlPlaneClient, indexName, 200000);
}

return indexName;
Expand All @@ -92,7 +92,7 @@ public static PineconeConnection createNewIndexAndConnect(PineconeControlPlaneCl
controlPlaneClient.createIndex(createIndexRequest);

// Wait until index is ready
waitUntilIndexIsReady(controlPlaneClient, indexName);
waitUntilIndexIsReady(controlPlaneClient, indexName, 200000);
String host = controlPlaneClient.describeIndex(indexName).getHost();

PineconeClientConfig specificConfig = new PineconeClientConfig().withApiKey(System.getenv("PINECONE_API_KEY")).withEnvironment(System.getenv("PINECONE_ENVIRONMENT"));
Expand Down

0 comments on commit ba6cd87

Please sign in to comment.