Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-5093

Allow file content URLs to be generated by a provider

    Details

    • Type: Feature
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2, 5.0, 5.1
    • Fix Version/s: 5.2
    • Component/s: Repository
    • Labels:
      None

      Description

      Following on MNT-10011 and MNT-14889, we need to allow content URLs for the FileContentStore to be generated by a provider.

      In the filestore package:

      • FileContentUrlProvider
      • TimeBasedFileContentUrlProvider
        • Include provision splitting data into buckets within the 'minute' range as per MNT-10011 using property:
          dir.contentstore.minuteBucketCount=0
          
      • VolumeAwareFileContentUrlProvider extends TimeBasedFileContentUrlProvider
        • Support the use case required by MNT-14889, which routes content to stores across a random selection of filesystem volumes.

      See earlier comment to this effect.

      When running a list test such as the Doc-Workflow Test, the file creation failure rate is about 30% when doing 10 file uploads per second.
      We use client-side retrying as a workaround.

      2016-05-11 11:27:13 +0100 	docworkflow.uploadFile 	false 	{ "msg" : "041117341 Failed to create directory for file storage: /data/nfs/replicate/511clean/data/2016/5/11/1/5" , "stack" : "org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: 041117341 Failed to create directory for file storage: /data/nfs/replicate/511clean/data/2016/5/11/1/5\n\tat org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.convertStatusCode(AbstractBrowserBindingService.java:320)\n\tat org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.post(AbstractBrowserBindingService.java:404)\n\tat org.apache.chemistry.opencmis.client.bindings.spi.browser.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:88)\n\tat org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:1091)\n\tat org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:77)\n\tat org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:451)\n\tat org.alfresco.bm.docwf.UploadFile.processCMISEvent(UploadFile.java:141)\n\tat org.alfresco.bm.cmis.AbstractCMISEventProcessor.processEvent(AbstractCMISEventProcessor.java:56)\n\tat org.alfresco.bm.event.AbstractEventProcessor.processEvent(AbstractEventProcessor.java:278)\n\tat 
      ...
      

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  dhulley Derek Hulley [X] (Inactive)
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 3 days, 1 hour, 15 minutes
                    3d 1h 15m

                      Structure Helper Panel