apache / cloudberry

One advanced and mature open-source MPP (Massively Parallel Processing) database. Open source alternative to Greenplum Database.
https://cloudberry.apache.org
Apache License 2.0
479 stars 108 forks source link

[Bug] Errors thrown by gpinitsystem during locale checking #488

Open xanadu-dev opened 5 months ago

xanadu-dev commented 5 months ago

Cloudberry Database version

1.5.3

What happened

When initialising a new database there are errors thrown during locale checking - the database is initialized correctly so these errors appear to be benign Error 1 /usr/local/cloudberrydb/bin/gpinitsystem: line 708: [1: command not found relates to line

 if [ `$LOCALE -a |$GREP -ic $(NORMALIZE_CODESET_IN_LOCALE $LOCALE_SETTING)` -eq 0 ] \
    && [`$LOCALE -a |$GREP -ic $LOCALE_SETTING` -eq 0];then

Error 2 /usr/local/cloudberrydb/bin/gpinitsystem: line 721: [1: command not found relates to line

if [ $( REMOTE_EXECUTE_AND_GET_OUTPUT $1 "$LOCALE -a|$GREP -ic '$(NORMALIZE_CODESET_IN_LOCALE $LOCALE_SETTING)'" ) -eq 0 ] \
    && [$( REMOTE_EXECUTE_AND_GET_OUTPUT $1 "$LOCALE -a|$GREP -ic '$LOCALE_SETTING'" ) -eq 0] ;then

What you think should happen instead

No response

How to reproduce

Comment used was

gpinitsystem -a -p $GPHOME/postgresql.conf -c $GPHOME/gpinitsystem_config -h $GPHOME/hostfile_gpinitsystem -l /gpadminlogs --mirror-mode=spread --su_password=$SUPERUSER_PASSWORD --locale=C.UTF-8

Operating System

Ubuntu 18.04

Anything else

Happens every time

Are you willing to submit PR?

Code of Conduct

github-actions[bot] commented 5 months ago

Hey, @xanadu-dev welcome!🎊 Thanks for taking the time to point this out.🙌