Skip to content

send Message before indexing with "set projectsEnabled = true" if run… #1682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2017

Conversation

vladak
Copy link
Member

@vladak vladak commented Jul 24, 2017

…ning with -P

fixes #1678

Message m = Message.createMessage("config");
m.addTag("set");
m.setText("projectsEnabled = true");
m.write(host, port);
Copy link
Contributor

@tulinkry tulinkry Jul 24, 2017

Choose a reason for hiding this comment

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

If this fails will the index process continue?

Copy link
Member Author

Choose a reason for hiding this comment

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

If e.g. write() throws exception, It will stop.

Copy link
Member Author

Choose a reason for hiding this comment

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

..which is good I think as it will avoid surprise at the end of the indexing (if the webapp is permanently down).

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is not because that completely prevents you to prepare the configuration offline.

Copy link
Member Author

Choose a reason for hiding this comment

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

If the host/port is not set the message will not be sent.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, my bad. Let's merge.

@tulinkry tulinkry added this to the 1.1 milestone Jul 24, 2017
@vladak vladak merged commit b9a7461 into oracle:master Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Projects have to be enabled - incovenient migration
2 participants