bugfix: fix jindo-fuse postStart script to make sure fuse mountpoint is ready (#3252)
* Fix jindo-fuse postStart script Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> * Fix jindo test case Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> --------- Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
This commit is contained in:
parent
33e247700d
commit
f78f11cd76
|
@ -45,6 +45,11 @@ ConditionPathIsMountPoint="$1"
|
|||
MountType="$2"
|
||||
SubPath="$3"
|
||||
|
||||
# grep /dev/fuse if the mountType equals to jindo
|
||||
if [[ "$MountType" == "jindo" ]]; then
|
||||
MountType=/dev/fuse
|
||||
fi
|
||||
|
||||
count=0
|
||||
# while ! mount | grep alluxio | grep $ConditionPathIsMountPoint | grep -v grep
|
||||
while ! cat /proc/self/mountinfo | grep $ConditionPathIsMountPoint | grep $MountType
|
||||
|
|
|
@ -99,7 +99,7 @@ def main():
|
|||
flow.append_step(
|
||||
SimpleStep(
|
||||
step_name="create data read job",
|
||||
forth_fn=funcs.create_job_fn(script="time cp -r /data/ /tmp-data && [[ ! -z \"$(ls -l /tmp-data)\" ]]", dataset_name=name, namespace=namespace),
|
||||
forth_fn=funcs.create_job_fn(script="time cp -r /data/ /tmp-data && [[ ! -z \"$(ls /tmp-data)\" ]]", dataset_name=name, namespace=namespace),
|
||||
back_fn=funcs.delete_job_fn()
|
||||
)
|
||||
)
|
||||
|
|
|
@ -100,7 +100,7 @@ def main():
|
|||
flow.append_step(
|
||||
SimpleStep(
|
||||
step_name="create data read job",
|
||||
forth_fn=funcs.create_job_fn(script="time cp -r /data/ /tmp-data && [[ ! -z \"$(ls -l /tmp-data)\" ]]", dataset_name=name, namespace=namespace, serverless=True),
|
||||
forth_fn=funcs.create_job_fn(script="time cp -r /data/ /tmp-data && [[ ! -z \"$(ls /tmp-data)\" ]]", dataset_name=name, namespace=namespace, serverless=True),
|
||||
back_fn=funcs.delete_job_fn()
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue