<?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: Do I have to wait until /upload_session/finish_batch/check finishes before starting the next bat in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Do-I-have-to-wait-until-upload-session-finish-batch-check/m-p/506573#M25037</link>
    <description>&lt;P&gt;Thank you Greg that was extremely clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand exactly now what I am doing &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Mar 2021 18:04:24 GMT</pubDate>
    <dc:creator>ncw</dc:creator>
    <dc:date>2021-03-20T18:04:24Z</dc:date>
    <item>
      <title>Do I have to wait until /upload_session/finish_batch/check finishes before starting the next batch?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Do-I-have-to-wait-until-upload-session-finish-batch-check/m-p/506213#M25028</link>
      <description>&lt;P&gt;When reading the docs for&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch" target="_self"&gt;upload_session/finish_batch&amp;nbsp;&lt;/A&gt;it says&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;For the same account, this route should be executed serially. That means you should not start the next job before current job finishes&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm unsure whether that means I have to wait for the batch to finish with&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch-check" target="_self"&gt;upload_session/finish_batch/check&lt;/A&gt;&amp;nbsp;or not before starting the next batch?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to work if I call upload_session/finish_batch/check in concurrently with opening a new batch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it also seems to drop files from the batch sometimes returning&amp;nbsp;"too_many_write_operations" so maybe it isn't supported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;2021/03/19 09:21:03 DEBUG : HTTP REQUEST (req 0xc000f76000)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;2021/03/19 09:21:03 DEBUG : POST /2/files/upload_session/finish_batch/check HTTP/1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Host: api.dropboxapi.com&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;User-Agent: rclone/v1.55.0-DEV&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Content-Length: 113&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Authorization: XXXX&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Content-Type: application/json&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Accept-Encoding: gzip&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;{"async_job_id":"dbjid:AABy2FH-VQkY-9lq_BMdfJVJI2_C-vRjliacnw5tIIKeKFitZxUgGsnWlDim84xSqANIbZr2bmqWWWRIPl7Dw_69"}&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;2021/03/19 09:21:04 DEBUG : HTTP RESPONSE (req 0xc000f76000)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;2021/03/19 09:21:04 DEBUG : HTTP/2.0 200 OK&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Accept-Encoding: identity,gzip&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Cache-Control: no-cache&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Content-Type: application/json&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Date: Fri, 19 Mar 2021 09:21:03 GMT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Server: envoy&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;Vary: Accept-Encoding&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;X-Content-Type-Options: nosniff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;X-Dropbox-Request-Id: f1ed7f49b82e4b08b96a6aa47c13b688&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;X-Dropbox-Response-Origin: far_remote&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;X-Frame-Options: SAMEORIGIN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;X-Server-Response-Time: 63&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="1 2 3 4 5 6 7"&gt;{".tag": "complete", "entries": [{".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}, {".tag": "failure", "failure": {".tag": "too_many_write_operations"}}]}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is, of course, a lot faster waiting for multiple batches to complete concurrently!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 09:54:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Do-I-have-to-wait-until-upload-session-finish-batch-check/m-p/506213#M25028</guid>
      <dc:creator>ncw</dc:creator>
      <dc:date>2021-03-19T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Do I have to wait until /upload_session/finish_batch/check finishes before starting the next bat</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Do-I-have-to-wait-until-upload-session-finish-batch-check/m-p/506317#M25031</link>
      <description>&lt;P&gt;The documentation and this error are referring to "lock contention" which is an inability to make multiple changes in the same account (or more accurately, namespace) at the same time. I&amp;nbsp;recommend reading &lt;A href="https://developers.dropbox.com/dbx-performance-guide" target="_self"&gt;the Performance Guide&lt;/A&gt; for more information for context, if you haven't already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you should only run one /2/files/upload_session/finish_batch job per namespace at a time. That means waiting until /2/files/upload_session/finish_batch/check returns "complete" before initiating another job via another call to /2/files/upload_session/finish_batch.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can however start and upload to other upload sessions, even for the same namespace, using&amp;nbsp;/2/files/upload_session/start and&amp;nbsp;/2/files/upload_session/append_v2, at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is because the actual change is committed by the job started by&amp;nbsp;/2/files/upload_session/finish_batch. The other calls,&amp;nbsp;/2/files/upload_session/start and&amp;nbsp;/2/files/upload_session/append_v2, don't commit changes; they just upload the data in preparation of being committed later.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 15:43:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Do-I-have-to-wait-until-upload-session-finish-batch-check/m-p/506317#M25031</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-19T15:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Do I have to wait until /upload_session/finish_batch/check finishes before starting the next bat</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Do-I-have-to-wait-until-upload-session-finish-batch-check/m-p/506573#M25037</link>
      <description>&lt;P&gt;Thank you Greg that was extremely clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand exactly now what I am doing &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 18:04:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Do-I-have-to-wait-until-upload-session-finish-batch-check/m-p/506573#M25037</guid>
      <dc:creator>ncw</dc:creator>
      <dc:date>2021-03-20T18:04:24Z</dc:date>
    </item>
  </channel>
</rss>

