<?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 Re: FSR non-atomic copy race condition in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/fsr-non-atomic-copy-race-condition/m-p/202575#M155705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately this bug makes the FSR unusable under our normal load conditions since our request rates are relatively high.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've decided the two directories with a link swap is not the correct approach for us. I'll just patch the FSR to do an atomic rename/overwrite after the new file is flushed to a temporary namespace, which looking at the src may have been the original intention however it is done the other way round. This will work on linux but not windows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note we are not concerned with the atomicity of a deployment wrt to the reader process, just the atomicity of the overwrite of individual files within that deployment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone point me to the 2.1.0 src for the FSR? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Joe.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2009 16:35:14 GMT</pubDate>
    <dc:creator>devmonkey</dc:creator>
    <dc:date>2009-04-28T16:35:14Z</dc:date>
    <item>
      <title>FSR non-atomic copy race condition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fsr-non-atomic-copy-race-condition/m-p/202573#M155703</link>
      <description>Hi,When we publish file overwrites through the FSR at the same time as the target directory is being read by the webserver it is possible for the webserver to miss the file or read a partially written file. This is because the FSR performs the following steps to overwrite a file:1. Move oldFile to o</description>
      <pubDate>Tue, 28 Apr 2009 14:06:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fsr-non-atomic-copy-race-condition/m-p/202573#M155703</guid>
      <dc:creator>devmonkey</dc:creator>
      <dc:date>2009-04-28T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: FSR non-atomic copy race condition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fsr-non-atomic-copy-race-condition/m-p/202574#M155704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Peter Monks blogged on this subject a while back.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/pmonks" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/pmonks&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; And your solution is one of the options for OS's that have symbolic links.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although there may be a small theoretical problem, the vast majority of people find that the effort of fixing this particular &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;problem is not worth it.&amp;nbsp; And you will also find that your OS affects the file locking behaviour, so you may find that the problem &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is even smaller than you think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another idea is to use a virtual file system and Peter and I have been kickingaround the idea of using CouchDB for deployment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 16:19:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fsr-non-atomic-copy-race-condition/m-p/202574#M155704</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-04-28T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: FSR non-atomic copy race condition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/fsr-non-atomic-copy-race-condition/m-p/202575#M155705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately this bug makes the FSR unusable under our normal load conditions since our request rates are relatively high.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've decided the two directories with a link swap is not the correct approach for us. I'll just patch the FSR to do an atomic rename/overwrite after the new file is flushed to a temporary namespace, which looking at the src may have been the original intention however it is done the other way round. This will work on linux but not windows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note we are not concerned with the atomicity of a deployment wrt to the reader process, just the atomicity of the overwrite of individual files within that deployment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone point me to the 2.1.0 src for the FSR? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Joe.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 16:35:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/fsr-non-atomic-copy-race-condition/m-p/202575#M155705</guid>
      <dc:creator>devmonkey</dc:creator>
      <dc:date>2009-04-28T16:35:14Z</dc:date>
    </item>
  </channel>
</rss>

