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.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to