[
https://issues.apache.org/jira/browse/TRAFODION-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15668526#comment-15668526
]
ASF GitHub Bot commented on TRAFODION-2256:
-------------------------------------------
Github user svarnau commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/827#discussion_r88124181
--- Diff: install/installer/traf_start ---
@@ -58,19 +58,18 @@ else
error1392=$(grep "1392" $SQ_ROOT/initializeErrors.txt | wc -l)
error1395=$(grep "1395" $SQ_ROOT/initializeErrors.txt | wc -l)
if [ "$error1395" -ge "1" ] || [ "$error1392" -ge "1" ]; then
- ssh $STARTING_NODE "cd $SQ_ROOT/sql/scripts; echo \"get version
of metadata;\" | sqlci" | tee -a $SQ_ROOT/initalizeErrors.txt
+ ssh $STARTING_NODE "cd $SQ_ROOT/sql/scripts; echo \"get version
of metadata;\" | sqlci" | tee -a $SQ_ROOT/initializeErrors.txt
metadataCurrent=$(grep "Metadata is current"
$SQ_ROOT/initializeErrors.txt | wc -l)
if [[ "$metadataCurrent" -ne "1" ]]; then
- ssh $STARTING_NODE "cd $SQ_ROOT/sql/scripts; echo
\"initialize Trafodion, upgrade;\" | sqlci" | tee -a
$SQ_ROOT/initializeErrors.txt
+ ssh $STARTING_NODE "cd $SQ_ROOT/sql/scripts; echo
\"initialize Trafodion, upgrade;\" | sqlci" | tee $SQ_ROOT/initializeErrors.txt
fi
- fi
-
- if [ "$?" != "0" ]; then
+ fi
+ anyError=$(grep "ERROR" $SQ_ROOT/initializeErrors.txt | wc -l)
--- End diff --
Agreed. If initialization is already done and upgrade is not needed, then
there is a problem of flagging 1395 as error. One more change coming to
overwrite the error file when checking metadata version.
> traf_start init traf not looking true errors
> ---------------------------------------------
>
> Key: TRAFODION-2256
> URL: https://issues.apache.org/jira/browse/TRAFODION-2256
> Project: Apache Trafodion
> Issue Type: Bug
> Components: installer
> Reporter: Amanda Moran
> Assignee: Steve Varnau
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)