From ba6cd8737e7b53780d7982e092f7f80761d2286f Mon Sep 17 00:00:00 2001 From: Austin DeNoble Date: Tue, 13 Feb 2024 02:32:24 -0500 Subject: [PATCH] add a bit more overall wait time to index creation for some steps --- src/integration/java/io/pinecone/helpers/IndexManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integration/java/io/pinecone/helpers/IndexManager.java b/src/integration/java/io/pinecone/helpers/IndexManager.java index c800037e..7ac03fe1 100644 --- a/src/integration/java/io/pinecone/helpers/IndexManager.java +++ b/src/integration/java/io/pinecone/helpers/IndexManager.java @@ -81,7 +81,7 @@ private static String createNewIndex(PineconeControlPlaneClient controlPlaneClie controlPlaneClient.createIndex(createIndexRequest); if (waitUntilReady) { - waitUntilIndexIsReady(controlPlaneClient, indexName); + waitUntilIndexIsReady(controlPlaneClient, indexName, 200000); } return indexName; @@ -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"));