[ 
https://issues.apache.org/jira/browse/GEODE-5497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16562986#comment-16562986
 ] 

Jens Deppe commented on GEODE-5497:
-----------------------------------

When restoring incremental backups the generated {{restore.sh}} script may fail 
with the following error:
{noformat}
[info 2018/07/30 18:48:12.272 PDT <main> tid=1] GemFireCache[id = 797724590; 
isClosing = true; isShutDownAll = false; created = Mon Jul 30 18:48:11 PDT 
2018; server = false; copyOnRead = false; lockLease = 120; lockTimeout = 60]: 
Now closing.

[info 2018/07/30 18:48:12.273 PDT <main> tid=1] Created oplog#13 krf for disk 
store diskStore.

EXECUTING:/private/var/folders/vp/5bj0m2lj1qx63v202sjr5xm80000gp/T/junit358337362196747300/incremental/2018-07-30-18-48-11/deppe-mbp-35878-loner--0-177005ee/restore.sh
OUTPUT:cp: 
/var/folders/vp/5bj0m2lj1qx63v202sjr5xm80000gp/T/junit358337362196747300/disk_Dir2/BACKUPdiskStore_6.drf:
 No such file or directory
{noformat}

The generated script has two main sections - one that restores all base files 
and directories and one that copies files from an incremental backup. The 
problem is that the second step does not create any necessary directories and 
the file copy fails. This problem was exposed after GEODE-5463 was fixed. That 
change removed the creation of extraneous directories which masked the issue.

> Generated backup.sh script is incorrect and fails when incremental backups 
> are restored 
> ----------------------------------------------------------------------------------------
>
>                 Key: GEODE-5497
>                 URL: https://issues.apache.org/jira/browse/GEODE-5497
>             Project: Geode
>          Issue Type: Bug
>          Components: regions
>            Reporter: Jens Deppe
>            Assignee: Jens Deppe
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Add a test which validates the generated {{restore,sh}} script for 
> incremental backups.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to