Skip to content

Commit bdb11d1

Browse files
committed
Revert "fix for accept 400 error code change for feature group not found (logicalclocks#956)"
This reverts commit 2f8dcf1.
1 parent e087d2f commit bdb11d1

2 files changed

Lines changed: 1 addition & 106 deletions

File tree

java/hsfs/src/main/java/com/logicalclocks/hsfs/engine/FeatureGroupEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public StreamFeatureGroup getOrCreateFeatureGroup(FeatureStore featureStore, @No
9999
try {
100100
return getStreamFeatureGroup(featureStore, name, version);
101101
} catch (IOException | FeatureStoreException e) {
102-
if (e.getMessage().contains("\"errorCode\":270009")) {
102+
if (e.getMessage().contains("Error: 404") && e.getMessage().contains("\"errorCode\":270009")) {
103103
return StreamFeatureGroup.builder()
104104
.featureStore(featureStore)
105105
.name(name)

java/hsfs/src/test/java/com/logicalclocks/hsfs/engine/TestFeatureGroupEngine.java

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)