<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CMIS update delay in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-update-delay/m-p/283648#M236778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have build java cmis client which creates a lot of folders through CMIS. (root_folder.createFolder(props))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After the folders were created, the java client copies some files to these folders.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately i get always an error that these folders do not exists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I tried to query with the CMIS- Workbench SELECT * FROM em:eventfolder where em:eventfoldereventid=1234 during the script were generating these folders.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that it takes up to some seconds until the folders are available for cmis-query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i have set a 5 second delay between folder creation and file creation and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But what will happen, if the server is under heavy load, than it might take more than 5 seconds…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to ensure that all folder-creation cmis tasks are completed, before i resume with the file copy task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank a lot for your help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lukas&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Sep 2013 20:21:45 GMT</pubDate>
    <dc:creator>lukas</dc:creator>
    <dc:date>2013-09-01T20:21:45Z</dc:date>
    <item>
      <title>CMIS update delay</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-update-delay/m-p/283648#M236778</link>
      <description>HiI have build java cmis client which creates a lot of folders through CMIS. (root_folder.createFolder(props))After the folders were created, the java client copies some files to these folders.Unfortunately i get always an error that these folders do not exists.So I tried to query with the CMIS- Wor</description>
      <pubDate>Sun, 01 Sep 2013 20:21:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-update-delay/m-p/283648#M236778</guid>
      <dc:creator>lukas</dc:creator>
      <dc:date>2013-09-01T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS update delay</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-update-delay/m-p/283649#M236779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Generally creating a folder shouldn't take that long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe your system don't have enough system resources (memory/CPU/network,especially JVM). I think you should check system resources first instead of solving it by finding an api to&amp;nbsp; ensure folder-creation completion&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 01:13:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-update-delay/m-p/283649#M236779</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2013-09-02T01:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS update delay</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-update-delay/m-p/283650#M236780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have read that it could takes some time for indexing the new metadata. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The script is for a data migration, so finally the script must be able to add about 1000 folders. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also plan to parallelize some procedures with 2-4 threads.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System resources should not be a problem, but i will test it on a second machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I surrounded the CMIS Folder query with a loop including a small timeout and limited tries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the script can detect when the Folder is available &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 08:44:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-update-delay/m-p/283650#M236780</guid>
      <dc:creator>lukas</dc:creator>
      <dc:date>2013-09-02T08:44:00Z</dc:date>
    </item>
  </channel>
</rss>

