wrong err msg when file doesn't exists by restore
Currently, when a backup doesn't exist, the gpdbrestore throws error ``` raise ExceptionNoStackTraceNeeded("No dump file on %s in %s" % (seg.getSegmentHostName(), seg.getSegmentDataDirectory())) ``` There is an issue with the error message since when the user provides its own directory like using "-u" option and during the run when the dumpfile doesn't exist then the directory shown is also the default directory which is misleading, for eg.s ``` [gpadmin@gpdb 20171201]$ gpdbrestore -t 20171201142523 -e -u /home/gpadmin/testbackup/ [.....] Continue with Greenplum restore Yy|Nn (default=N): > y 20171201:19:35:43:020121 gpdbrestore:gpdb:gpadmin-[ERROR]:-gpdbrestore error: No dump file on gpdb in /data/primary/gp_4.3.18.0_201712011453470 ``` This fix provides the correct location where it couldn't find the dump
Showing
想要评论请 注册 或 登录