[
https://issues.apache.org/jira/browse/HBASE-14531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031987#comment-15031987
]
Ted Yu commented on HBASE-14531:
--------------------------------
With the following change, I ran TestImportTsv and it passed:
{code}
diff --git a/bin/graceful_stop.sh b/bin/graceful_stop.sh
index 43fbf0b..dc97e28 100755
--- a/bin/graceful_stop.sh
+++ b/bin/graceful_stop.sh
@@ -104,7 +104,7 @@ hosts="/tmp/$(basename $0).$$.tmp"
echo $hostname >> $hosts
if [ "$thrift" != "" ]; then
log "Stopping thrift server on $hostname"
- if [ "$local" == true ]; then
+ if [ "$local" ==@#^& true ]; then
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop thrift
else
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop
thrift
{code}
> graceful_stop.sh "if [ "$local" ]" condition unexpected behaviour
> -----------------------------------------------------------------
>
> Key: HBASE-14531
> URL: https://issues.apache.org/jira/browse/HBASE-14531
> Project: HBase
> Issue Type: Bug
> Components: scripts
> Affects Versions: 2.0.0, 0.98.14, 1.0.3, 1.1.3
> Reporter: Samir Ahmic
> Assignee: Samir Ahmic
> Fix For: 2.0.0, 1.2.0, 1.3.0, 1.1.3, 0.98.17
>
> Attachments: HBASE-14531.patch, HBASE-14531v2.patch,
> HBASE-14531v3.patch
>
>
> We are using this condition to evaluate if graceful_stop.sh runs start/stop
> commands on local server or remote servers. Issue is that this condition is
> always true and causing unexpected behavior of script.
> I will attach patch changing this condition to
> {code}
> if [ "$local" = true ]
> {code}
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)