|
|
@ -63,6 +63,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { |
|
|
|
// try to connect to filer, filerBucketsPath may be useful later
|
|
|
|
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client") |
|
|
|
var cipher bool |
|
|
|
for i := 0; i < 10; i++ { |
|
|
|
err = pb.WithGrpcFilerClient(filerGrpcAddress, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error { |
|
|
|
resp, err := client.GetFilerConfiguration(context.Background(), &filer_pb.GetFilerConfigurationRequest{}) |
|
|
|
if err != nil { |
|
|
@ -72,7 +73,13 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { |
|
|
|
return nil |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|
glog.Infof("failed to talk to filer %s: %v", filerGrpcAddress, err) |
|
|
|
glog.V(0).Infof("failed to talk to filer %s: %v", filerGrpcAddress, err) |
|
|
|
glog.V(0).Infof("wait for %d seconds ...", i+1) |
|
|
|
time.Sleep(time.Duration(i+1)*time.Second) |
|
|
|
} |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
glog.Errorf("failed to talk to filer %s: %v", filerGrpcAddress, err) |
|
|
|
return true |
|
|
|
} |
|
|
|
|
|
|
|