hortonworks / streamline

StreamLine - Streaming Analytics
Apache License 2.0
164 stars 96 forks source link

StreamCatalogService.addTopology should only create and delete 'placeholder' version of topology entity #649

Closed HeartSaVioR closed 7 years ago

HeartSaVioR commented 7 years ago

Topology entity with placeholder version is only needed to create fresh new topology because topology id doesn't exist at that time but topology version requires topology id. addTopology method is also called for saving new version of topology, and in this case creating and deleting placeholder is not needed at all.

We can reduce two DMLs for each saving version of topology.

HeartSaVioR commented 7 years ago

658