Skip to content
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

Frontend - backend communication unification in single/cluster backend mode #524

Merged
merged 3 commits into from
Sep 8, 2015

Conversation

eea03
Copy link

@eea03 eea03 commented Sep 3, 2015

Resolves #514

Now frontend always checks if backend is online via database, not RMI.
Furthermore, frontend nor backend does not need to know if backend runs in cluster mode.

…mode (via database)

Now not frontend nor backend needs to know if backend runs in single / cluster mode
if (this.clusterMode) {
this.backendID = this.appConfig.getString(ConfigProperty.BACKEND_ID);
}
this.backendID = this.appConfig.getString(ConfigProperty.BACKEND_ID);

Choose a reason for hiding this comment

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

Note for tomas-knap: what happens if the config.properties BACKEND_ID is missing?

Copy link
Author

Choose a reason for hiding this comment

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

Backend process will not even start without this property and error messages is shown in logs:
Invocation of init method failed; nested exception is cz.cuni.mff.xrg.odcs.commons.app.conf.MissingConfigPropertyException: Config is missing property: backend.id.

This is the standard behavior for mandatory parameters after error handling in backend was fixed

Choose a reason for hiding this comment

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

Checked, OK.

@eea03 eea03 merged commit 311eb4b into develop Sep 8, 2015
@eea03 eea03 deleted the feature/frontendBackendCommunicationUnification branch September 8, 2015 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants