<?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: Namespace Lock Contentions in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Namespace-Lock-Contentions/m-p/415407#M22405</link>
    <description>&lt;P&gt;1) We don't have documentation or make guarantees as to when exactly during the lifecycle of an API call the locks are taken. It might be the case, for example, that the lock is only taken at the end of the upload, once all of the data has been transmitted. That's not officially guaranteed though, so I can't&amp;nbsp;recommend relying on that. (Also, adding/removing members from an existing shared folder doesn't change the contents of the folder, or the folder itself, so you may not run in to contention with that in particular anyway.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Yes, in general, anything that's making a change to the contents of a&amp;nbsp;namespace&amp;nbsp;(or the namespace's folder itself) is likely to be taking a lock for that namespace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) No, there isn't a way to proactively check for a current namespace lock. You'll need to catch the exception and retry as you mentioned.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 17:48:33 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-04-29T17:48:33Z</dc:date>
    <item>
      <title>Namespace Lock Contentions</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Namespace-Lock-Contentions/m-p/415221#M22400</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I have read the Data Ingress guide and I have some follow up questions about namespace lock contentions:&lt;BR /&gt;&lt;BR /&gt;1) Is the lock set through the entire write operation (e.g. If I am uploading a file to a folder, is the lock set on the folder's namespace untill the end of the upload). I have tried to invite/remove members from a folder while uploading a file and I have not encountered the too_many_write_operations exception, even though I expected I would.&lt;BR /&gt;2) Do the API's /create_folder and /share_folder (used to create a shared folder) set namespace locks?&lt;BR /&gt;3) Is there a way to check for a namespace lock prior to a write action/operation, or is retrying it using the information from Retry_After header the best practice in handling lock contentions?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 10:42:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Namespace-Lock-Contentions/m-p/415221#M22400</guid>
      <dc:creator>ArtFleck</dc:creator>
      <dc:date>2020-04-29T10:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Namespace Lock Contentions</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Namespace-Lock-Contentions/m-p/415407#M22405</link>
      <description>&lt;P&gt;1) We don't have documentation or make guarantees as to when exactly during the lifecycle of an API call the locks are taken. It might be the case, for example, that the lock is only taken at the end of the upload, once all of the data has been transmitted. That's not officially guaranteed though, so I can't&amp;nbsp;recommend relying on that. (Also, adding/removing members from an existing shared folder doesn't change the contents of the folder, or the folder itself, so you may not run in to contention with that in particular anyway.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Yes, in general, anything that's making a change to the contents of a&amp;nbsp;namespace&amp;nbsp;(or the namespace's folder itself) is likely to be taking a lock for that namespace.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) No, there isn't a way to proactively check for a current namespace lock. You'll need to catch the exception and retry as you mentioned.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 17:48:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Namespace-Lock-Contentions/m-p/415407#M22405</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-29T17:48:33Z</dc:date>
    </item>
  </channel>
</rss>

