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/04/01 07:10:25 UTC
[jira] [Created] (ATLAS-614) Try to avoid duplication of
initialization code in HA mode
Hemanth Yamijala created ATLAS-614:
--------------------------------------
Summary: 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
Fix For: 0.7-incubating
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)