[
https://issues.apache.org/jira/browse/TRAFODION-2313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15611088#comment-15611088
]
ASF GitHub Bot commented on TRAFODION-2313:
-------------------------------------------
Github user arvind-narain commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/786#discussion_r85284227
--- Diff: core/sqf/sql/scripts/dcscheck ---
@@ -138,15 +138,15 @@ if ( [ $sq_stat == 0 ] || [ $sq_stat == 1 ] ); then
fi
echo
if ( [ "$actual_dcsmaster_cnt" '!=' 0 ] && [ "$actual_dcsserver_cnt"
'!=' 0 ] ); then
- echo "ls $dcsznode"|$DCS_INSTALL_DIR/bin/dcs zkcli > $dcstmp
--- End diff --
Looks good. I remember there was some issue with a particular version of
zookeeper where the command line argument to zkcli was not being processed,
hence the echo approach was used instead. This should work.
> dcscheck doesn't return while invoking by REST call 'dcs/summary'
> -----------------------------------------------------------------
>
> Key: TRAFODION-2313
> URL: https://issues.apache.org/jira/browse/TRAFODION-2313
> Project: Apache Trafodion
> Issue Type: Bug
> Components: dcs
> Reporter: Eason Zhang
> Assignee: Eason Zhang
>
> When a REST 'get' request 'dcs/summary' is invoked, it will call 'dcscheck'
> to get the dcs master info, but in some specific cases, the 'dcscheck'
> command will never return a value, so REST server hangs, it cannot receive
> any other REST requests any more.
> The reason why 'dcscheck' doesn't return is that it calls the zookeeper CLI
> using pipe like this:
> echo “ls $dcsznode” | $DCS_INSTALL_DIR/bin/dcs zkcli > $dcstmp
> Modify it to not using pipe can solve this issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)