On Mon, Oct 19, 2020 at 04:48:18PM +0800, Cao Xueliang wrote:
On Mon, Oct 19, 2020 at 04:36:29PM +0800, Wu Fengguang wrote:
On Mon, Oct 19, 2020 at 04:28:07PM +0800, Cao Xueliang wrote:
On Mon, Oct 19, 2020 at 04:04:05PM +0800, Wu Fengguang wrote:
What exception?
Use File.real_path in JobHelper.service_path, it will throw an exception like: Error resolving real path of 'srv/initrd/deps/initramfs/openeuler/aarch65/20.03/sysbench-mysql.cgz': No such file or directory.
Why File.exists? will raise such exception? Your patch only changed that.
I deleted the File.exists?, the cgz file is must for pp if pp has a program and service_path will throw an exception if the cgz does not exist.
Well that's still not so clear. Perhaps better mainly in code context.
Thanks, Fengguang