Joe McDonnell created IMPALA-15552:
--------------------------------------

             Summary: bin/bootstrap_system.sh is failing due to false positives 
from the docker check
                 Key: IMPALA-15552
                 URL: https://issues.apache.org/jira/browse/IMPALA-15552
             Project: IMPALA
          Issue Type: Bug
          Components: Infrastructure
    Affects Versions: Impala 5.0.0
            Reporter: Joe McDonnell


On infrastructure where machines are reused, the docker check in 
bin/bootstrap_development.sh can believe it is running inside docker when it 
isn't. This causes a build (running outside a Docker container) to fail with:

 
{noformat}
initdb: directory "/var/lib/pgsql/data" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/var/lib/pgsql/data" or run initdb
with an argument other than "/var/lib/pgsql/data".{noformat}
Higher in the output is:

 

 
{noformat}
+ grep docker /proc/1/cgroup
+ grep -q /docker/ /proc/self/mountinfo
+ IN_DOCKER=true
+ echo 'Identified we are running inside of Docker.'
Identified we are running inside of Docker.{noformat}
The new check from IMPALA-14942 needs to be tweaked to avoid this false 
positive.

 

Googling around, it sounds like one option is:

 
{noformat}
grep -E 'overlay|containerd' /proc/1/mountinfo{noformat}
 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to