[jira] [Commented] (OAK-7223) Files could be kept partially in case of disconnection from backends

2018-02-06 Thread Amit Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16353726#comment-16353726
 ] 

Amit Jain commented on OAK-7223:


Backported to 1.6 branch with http://svn.apache.org/viewvc?rev=1823298=rev

> Files could be kept partially in case of disconnection from backends
> 
>
> Key: OAK-7223
> URL: https://issues.apache.org/jira/browse/OAK-7223
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins
>Affects Versions: 1.6.8, 1.8.1
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Blocker
> Fix For: 1.9.0, 1.10, 1.6.9, 1.8.2
>
> Attachments: OAK-7223-2.patch, OAK-7223-3.patch, OAK-7223.patch
>
>
> The FileCache#load method needs to clean the files which may have been 
> downloaded partially in case of errors from backend. This partially 
> downloaded file should be removed before returning from the method.



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


[jira] [Commented] (OAK-7223) Files could be kept partially in case of disconnection from backends

2018-01-31 Thread Amit Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16348147#comment-16348147
 ] 

Amit Jain commented on OAK-7223:


On trunk with http://svn.apache.org/viewvc?rev=1822850=rev

> Files could be kept partially in case of disconnection from backends
> 
>
> Key: OAK-7223
> URL: https://issues.apache.org/jira/browse/OAK-7223
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins
>Affects Versions: 1.8.1
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Blocker
> Fix For: 1.9.0, 1.10, 1.8.2
>
> Attachments: OAK-7223-2.patch, OAK-7223-3.patch, OAK-7223.patch
>
>
> The FileCache#load method needs to clean the files which may have been 
> downloaded partially in case of errors from backend. This partially 
> downloaded file should be removed before returning from the method.



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


[jira] [Commented] (OAK-7223) Files could be kept partially in case of disconnection from backends

2018-01-31 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16346754#comment-16346754
 ] 

Marcel Reutegger commented on OAK-7223:
---

See OAK-7226 for the warn messages.

> Files could be kept partially in case of disconnection from backends
> 
>
> Key: OAK-7223
> URL: https://issues.apache.org/jira/browse/OAK-7223
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins
>Affects Versions: 1.8.1
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Blocker
> Fix For: 1.10, 1.8.2
>
> Attachments: OAK-7223-2.patch, OAK-7223-3.patch, OAK-7223.patch
>
>
> The FileCache#load method needs to clean the files which may have been 
> downloaded partially in case of errors from backend. This partially 
> downloaded file should be removed before returning from the method.



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


[jira] [Commented] (OAK-7223) Files could be kept partially in case of disconnection from backends

2018-01-31 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16346743#comment-16346743
 ] 

Marcel Reutegger commented on OAK-7223:
---

The warn message you added in the cache loader will not contain the exception 
or stack trace. The third parameter is interpreted as the second argument for 
the message format. There are a few more places in oak-blob-plugin with the 
same usage pattern. I'll create a separate issue for those.

> Files could be kept partially in case of disconnection from backends
> 
>
> Key: OAK-7223
> URL: https://issues.apache.org/jira/browse/OAK-7223
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins
>Affects Versions: 1.8.1
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Blocker
> Fix For: 1.10, 1.8.2
>
> Attachments: OAK-7223-2.patch, OAK-7223-3.patch, OAK-7223.patch
>
>
> The FileCache#load method needs to clean the files which may have been 
> downloaded partially in case of errors from backend. This partially 
> downloaded file should be removed before returning from the method.



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


[jira] [Commented] (OAK-7223) Files could be kept partially in case of disconnection from backends

2018-01-31 Thread Amit Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16346741#comment-16346741
 ] 

Amit Jain commented on OAK-7223:


Thanks [~mreutegg] for the review. Yes makes sense and I am in the process of 
adding test for the utility method. 

> Files could be kept partially in case of disconnection from backends
> 
>
> Key: OAK-7223
> URL: https://issues.apache.org/jira/browse/OAK-7223
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins
>Affects Versions: 1.8.1
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Blocker
> Fix For: 1.10, 1.8.2
>
> Attachments: OAK-7223-2.patch, OAK-7223-3.patch, OAK-7223.patch
>
>
> The FileCache#load method needs to clean the files which may have been 
> downloaded partially in case of errors from backend. This partially 
> downloaded file should be removed before returning from the method.



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


[jira] [Commented] (OAK-7223) Files could be kept partially in case of disconnection from backends

2018-01-31 Thread Marcel Reutegger (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16346726#comment-16346726
 ] 

Marcel Reutegger commented on OAK-7223:
---

I would implement the new utility method slightly different. This avoids the 
issue with catching all types of exceptions but then wrapping it with an 
IOException (even if the original one was, as in most cases, an IOException). 
See attached [^OAK-7223-3.patch]. It would also be good to have a test case 
that verifies the expected behaviour.

> Files could be kept partially in case of disconnection from backends
> 
>
> Key: OAK-7223
> URL: https://issues.apache.org/jira/browse/OAK-7223
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins
>Affects Versions: 1.8.1
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Blocker
> Fix For: 1.10, 1.8.2
>
> Attachments: OAK-7223-2.patch, OAK-7223-3.patch, OAK-7223.patch
>
>
> The FileCache#load method needs to clean the files which may have been 
> downloaded partially in case of errors from backend. This partially 
> downloaded file should be removed before returning from the method.



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


[jira] [Commented] (OAK-7223) Files could be kept partially in case of disconnection from backends

2018-01-31 Thread Amit Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16346656#comment-16346656
 ] 

Amit Jain commented on OAK-7223:


Added a 2nd version as needed to bump the package version also.

> Files could be kept partially in case of disconnection from backends
> 
>
> Key: OAK-7223
> URL: https://issues.apache.org/jira/browse/OAK-7223
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins
>Affects Versions: 1.8.1
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Blocker
> Fix For: 1.10, 1.8.2
>
> Attachments: OAK-7223-2.patch, OAK-7223.patch
>
>
> The FileCache#load method needs to clean the files which may have been 
> downloaded partially in case of errors from backend. This partially 
> downloaded file should be removed before returning from the method.



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


[jira] [Commented] (OAK-7223) Files could be kept partially in case of disconnection from backends

2018-01-31 Thread Amit Jain (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-7223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16346619#comment-16346619
 ] 

Amit Jain commented on OAK-7223:


[~mreutegg] Could you please review the patch.

> Files could be kept partially in case of disconnection from backends
> 
>
> Key: OAK-7223
> URL: https://issues.apache.org/jira/browse/OAK-7223
> Project: Jackrabbit Oak
>  Issue Type: Bug
>  Components: blob-plugins
>Affects Versions: 1.8.1
>Reporter: Amit Jain
>Assignee: Amit Jain
>Priority: Blocker
> Fix For: 1.10, 1.8.2
>
> Attachments: OAK-7223.patch
>
>
> The FileCache#load method needs to clean the files which may have been 
> downloaded partially in case of errors from backend. This partially 
> downloaded file should be removed before returning from the method.



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