Skip to content

Commit

Permalink
[FSTORE-1010] Don't leave orphaned subjects when deleting online enab…
Browse files Browse the repository at this point in the history
…led fg (#1547)
  • Loading branch information
bubriks authored and SirOibaf committed Sep 17, 2023
1 parent fdf6182 commit 940c28a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ public void disableOnlineFeatureGroup(Featuregroup featureGroup, Project project
throws FeaturestoreException, SQLException, SchemaException, KafkaException {
dropMySQLTable(featureGroup, project, user);
String topicName = Utils.getFeatureGroupTopicName(featureGroup);
String featureGroupEntityName = Utils.getFeaturegroupName(featureGroup);
if (!subjectsController.getSubjectVersions(project, featureGroupEntityName).isEmpty()) {
subjectsController.deleteSubject(project, featureGroupEntityName);
}
// HOPSWORKS-3252 - we keep kafka topics in order to avoid consumers getting blocked
// deleteFeatureGroupKafkaTopic(project, topicName);
}
Expand Down

0 comments on commit 940c28a

Please sign in to comment.