Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

[Sprint: 46] XD-2854 Migrate Stream definitions that don't have MDs #1534

Closed

Conversation

ilayaperumalg
Copy link
Contributor

  • This code checks for existing stream definitions and update
    the module definitions if they don't exist.
  • Add better exception handling
  • Use PostConstruct to run migration

 - This code checks for existing stream definitions and update
the module definitions if they don't exist.
 - Add better exception handling
 - Use PostConstruct to run migration
@sabbyanandan sabbyanandan changed the title XD-2854 Migrate Stream definitions that don't have MDs [Sprint: 46] XD-2854 Migrate Stream definitions that don't have MDs Mar 30, 2015
@pperalta pperalta self-assigned this Mar 30, 2015
CuratorFramework client = this.zkConnection.getClient();
if (client.checkExists().forPath(Paths.STREAMS) != null) {
Iterable<StreamDefinition> streamDefinitions = findAll();
for (StreamDefinition definition : streamDefinitions) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines can be simplified to:

for (StreamDefinition definition : findAll()) {

@pperalta
Copy link
Contributor

Squashed & merged as 0d18468

@pperalta pperalta closed this Mar 31, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants