You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Suresh Subbiah (JIRA)" <ji...@apache.org> on 2015/08/31 07:46:47 UTC
[jira] [Closed] (TRAFODION-1167) LP Bug: 1443597 - DcsServer should
generate INFO event to log when waiting on DcsMaster start
[ https://issues.apache.org/jira/browse/TRAFODION-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Subbiah closed TRAFODION-1167.
-------------------------------------
Resolution: Fixed
Change status in JIRA to closed to reflect LaunchPad
> LP Bug: 1443597 - DcsServer should generate INFO event to log when waiting on DcsMaster start
> ---------------------------------------------------------------------------------------------
>
> Key: TRAFODION-1167
> URL: https://issues.apache.org/jira/browse/TRAFODION-1167
> Project: Apache Trafodion
> Issue Type: Bug
> Components: connectivity-dcs
> Reporter: Matt Brown
> Assignee: Matt Brown
> Fix For: 2.0-incubating
>
>
> DcsMaster and DcsServers are started independently by the bin/dcs-start.sh script. DcsServers always check that DcsMaster is started in the getMaster() method shown below. A LOG.info event should be added so that user can see that DcsServers are waiting on Dcsmaster to start.
> private void getMaster() {
> boolean found = false;
> while (!found) {
> try {
> Stat stat = zkc.exists(parentZnode
> + Constants.DEFAULT_ZOOKEEPER_ZNODE_MASTER, false);
> if (stat != null) {
> List<String> nodes = zkc.getChildren(parentZnode
> + Constants.DEFAULT_ZOOKEEPER_ZNODE_MASTER, null);
> if (!nodes.isEmpty()) {
> StringTokenizer st = new StringTokenizer(nodes.get(0),
> ":");
> while (st.hasMoreTokens()) {
> masterHostName = st.nextToken();
> port = Integer.parseInt(st.nextToken());
> portRange = Integer.parseInt(st.nextToken());
> masterStartTime = Long.parseLong(st.nextToken());
> }
> found = true;
> }
> }
> if (!found) {
> try {
> Thread.sleep(5000);
> } catch (InterruptedException e) {
> }
> }
> } catch (Exception e) {
> e.printStackTrace();
> LOG.error(e);
> }
> }
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)