You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tomek Rękawek (Jira)" <ji...@apache.org> on 2019/08/21 09:56:00 UTC

[jira] [Resolved] (OAK-8565) Using a lazy blob listing can cause Azure timeout

     [ https://issues.apache.org/jira/browse/OAK-8565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomek Rękawek resolved OAK-8565.
--------------------------------
    Resolution: Fixed

> Using a lazy blob listing can cause Azure timeout
> -------------------------------------------------
>
>                 Key: OAK-8565
>                 URL: https://issues.apache.org/jira/browse/OAK-8565
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-azure
>            Reporter: Tomek Rękawek
>            Assignee: Tomek Rękawek
>            Priority: Major
>             Fix For: 1.18.0
>
>
> When trying to list the Azure blob in a lazy way, the API client loads the listing in a few segments. If there's too much time between segment requests (eg. because we're processing each blob), it can result in TimeoutException:
> {noformat}
> [FelixStartLevel] org.apache.jackrabbit.oak-segment-tar bundle org.apache.jackrabbit.oak-segment-tar:1.16.0.R1864511 (144)[org.apache.jackrabbit.oak.segment.SegmentNodeStoreFactory(204)] : The activate method has thrown an exception (java.util.NoSuchElementException: An error occurred while enumerating the result, check the original exception for details.)
> java.util.NoSuchElementException: An error occurred while enumerating the result, check the original exception for details.
> 	at com.microsoft.azure.storage.core.LazySegmentedIterator.hasNext(LazySegmentedIterator.java:113)
> 	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:132)
> 	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
> 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
> 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
> 	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
> 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
> 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> 	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
> 	at org.apache.jackrabbit.oak.segment.azure.AzureArchiveManager.renameTo(AzureArchiveManager.java:134) [org.apache.jackrabbit.oak-segment-azure:1.16.0.R1864511]
> 	at org.apache.jackrabbit.oak.segment.file.tar.TarReader.backupSafely(TarReader.java:208) [org.apache.jackrabbit.oak-segment-tar:1.16.0.R1864511]
> 	at org.apache.jackrabbit.oak.segment.file.tar.TarReader.collectFileEntries(TarReader.java:154) [org.apache.jackrabbit.oak-segment-tar:1.16.0.R1864511]
> 	at org.apache.jackrabbit.oak.segment.file.tar.TarReader.open(TarReader.java:99) [org.apache.jackrabbit.oak-segment-tar:1.16.0.R1864511]
> 	at org.apache.jackrabbit.oak.segment.file.tar.TarFiles.<init>(TarFiles.java:395) [org.apache.jackrabbit.oak-segment-tar:1.16.0.R1864511]
> ...
> Caused by: com.microsoft.azure.storage.StorageException: The client could not finish the operation within specified maximum execution timeout.
> 	at com.microsoft.azure.storage.core.ExecutionEngine.setupStorageRequest(ExecutionEngine.java:277)
> 	at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:95)
> 	at com.microsoft.azure.storage.core.LazySegmentedIterator.hasNext(LazySegmentedIterator.java:109)
> 	... 58 common frames omitted
> Caused by: java.util.concurrent.TimeoutException: The client could not finish the operation within specified maximum execution timeout.
> 	at com.microsoft.azure.storage.core.ExecutionEngine.setupStorageRequest(ExecutionEngine.java:276)
> 	... 60 common frames omitted
> {noformat}
> We should update the code to load all blobs into a list and return it.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)