You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Hemanth Yamijala (JIRA)" <ji...@apache.org> on 2016/06/14 08:22:06 UTC
[jira] [Commented] (ATLAS-614) Try to avoid duplication of
initialization code in HA mode
[ https://issues.apache.org/jira/browse/ATLAS-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15329097#comment-15329097 ]
Hemanth Yamijala commented on ATLAS-614:
----------------------------------------
This is really an improvement. Moving out of the 0.7 bucket.
> Try to avoid duplication of initialization code in HA mode
> ----------------------------------------------------------
>
> Key: ATLAS-614
> URL: https://issues.apache.org/jira/browse/ATLAS-614
> Project: Atlas
> Issue Type: Bug
> Reporter: Hemanth Yamijala
>
> Currently, in ATLAS-511, each service has a block of code that is as follows:
> {code}
> void start() {
> // do stateless stuff
> if(!HAConfiguration.isHAEnabled()) {
> // do stateful stuff
> }
> }
> {code}
> The repeat of this pattern could possibly be avoided by moving this initialization in non-HA mode to an aggregator service (like {{Services}}) or even as a method in {{GuiceServletConfig}}.
> This was raised as a review comment in ATLAS-511. Filing it here to fix separately.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)