Skip to content

Commit 5be925c

Browse files
pradithya ariafeast-ci-bot
authored andcommitted
Readiness probe (feast-dev#191)
* Consider IDLE connection to Core as connected state * Remove debugging code
1 parent a401ae3 commit 5be925c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

serving/src/main/java/feast/serving/service/CoreService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ public Map<String, FeatureSpec> getAllFeatureSpecs() {
142142
*/
143143
public boolean isConnected() {
144144
ConnectivityState state = channel.getState(true);
145-
return state.compareTo(ConnectivityState.READY) == 0;
145+
return state == ConnectivityState.IDLE
146+
|| state == ConnectivityState.READY;
146147
}
147148

148149
/**

0 commit comments

Comments
 (0)