Skip to content

Commit c1eda40

Browse files
committed
Add kv-store connection check to readiness probe
Signed-off-by: Leon Kiefer <[email protected]>
1 parent d2ddb64 commit c1eda40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/ibm/watson/modelmesh/ModelMesh.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,11 @@ protected boolean isReady() {
13271327
reportReady = true;
13281328
}
13291329

1330+
if (!verifyKvStoreConnection()) {
1331+
logger.info("Returning NOT READY to readiness probe due to kv-store connection failure");
1332+
return false;
1333+
}
1334+
13301335
return true;
13311336
}
13321337

0 commit comments

Comments
 (0)