[
https://issues.apache.org/jira/browse/IMPALA-13802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956605#comment-17956605
]
ASF subversion and git services commented on IMPALA-13802:
----------------------------------------------------------
Commit d630d6f8af8cd86a845fc0415c99b8aa6608c28f in impala's branch
refs/heads/master from Csaba Ringhofer
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=d630d6f8a ]
IMPALA-13802: Ignore error during postgres init
This is a normal error in case postgres init was already called
on the machine.
Change-Id: I67ce40e4c12a7318ad7deb7e796b3e5bd5b4bfd4
Reviewed-on: http://gerrit.cloudera.org:8080/22989
Reviewed-by: Daniel Becker <[email protected]>
Reviewed-by: Riza Suminto <[email protected]>
Tested-by: Csaba Ringhofer <[email protected]>
> bootstrap_system.sh can fail in the middle in dirty environment
> ---------------------------------------------------------------
>
> Key: IMPALA-13802
> URL: https://issues.apache.org/jira/browse/IMPALA-13802
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Reporter: Csaba Ringhofer
> Assignee: Csaba Ringhofer
> Priority: Major
> Fix For: Impala 5.0.0
>
>
> This comes up regularly when building on reused RHEL8 build instances:
> {code}
> 00:00:28.224 + sudo service postgresql initdb
> 00:00:28.241 Hint: the preferred way to do this is now
> "/usr/bin/postgresql-setup --initdb --unit postgresql"
> 00:00:28.302 * Initializing database in '/var/lib/pgsql/data'
> 00:00:28.303 ERROR: Data directory /var/lib/pgsql/data is not empty!
> 00:00:28.303 ERROR: Initializing database failed, possibly see
> /var/lib/pgsql/initdb_postgresql.log
> {code}
> this leads to prematurely exiting the script at:
> https://github.com/apache/impala/blob/ce9b927d547ac4290275fede4843288bbf97a429/bin/bootstrap_system.sh#L399
> surprisingly this doesn't seem to cause subsequent issues - probably it is
> enough that the rest of script already ran once
> If already touching this area, it would be nice to move logic related to
> IMPALA_HOME to another script, as it is not needed in automatic tests and can
> be a nuisance in personal builds as it messes with .bashrc
> https://github.com/apache/impala/blob/ce9b927d547ac4290275fede4843288bbf97a429/bin/bootstrap_system.sh#L518
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]