Skip to content

Commit

Permalink
[HOPSWORKS-3252] Disable Kafka topic deletion for online feature grou…
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzmeister authored Jul 14, 2022
1 parent 3722fc8 commit b72cbde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ public void deleteFeaturegroup(Featuregroup featuregroup, Project project, Users
onlineFeaturegroupController.disableOnlineFeatureGroup(featuregroup, project, user);
} else {
// only topics need to be deleted, but no RonDB table
streamFeatureGroupController.deleteOfflineStreamFeatureGroupTopic(project, featuregroup);
}
//Delete associated delta streamer job
fsJobManagerController.deleteDeltaStreamerJob(project,user, featuregroup);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ public void disableOnlineFeatureGroup(Featuregroup featureGroup, Project project
dropMySQLTable(featureGroup, project, user);
String topicName = onlineFeatureGroupTopicName(project.getId(), featureGroup.getId(),
Utils.getFeaturegroupName(featureGroup));
deleteFeatureGroupKafkaTopic(project, topicName);
// HOPSWORKS-3252 - we keep kafka topics in order to avoid consumers getting blocked
// deleteFeatureGroupKafkaTopic(project, topicName);
}

public String buildCreateStatement(String dbName, String tableName, List<FeatureGroupFeatureDTO> features) {
Expand Down

0 comments on commit b72cbde

Please sign in to comment.