<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7767</bug_id>
          
          <creation_ts>2009-09-29 16:47:15 +0000</creation_ts>
          <short_desc>Atomic update of application cache is not well-defined</short_desc>
          <delta_ts>2010-10-04 14:47:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/Overview.html#updating-an-application-cache</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikunj Mehta">nikunj.mehta</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27882</commentid>
    <comment_count>0</comment_count>
    <who name="Nikunj Mehta">nikunj.mehta</who>
    <bug_when>2009-09-29 16:47:15 +0000</bug_when>
    <thetext>[[
Atomically, so as to avoid race conditions, perform the following substeps:

If the status of the cache group is either checking or downloading, then abort this instance of the update process, as an update is already in progress for them.
]]

Atomically is not well defined here. 

1. What happens if the state of the cache group changes mid-stream of this algorithm?
2. If the algorithm is already running when another instance is started, does the latter instance stay blocked?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27915</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-09-30 10:12:06 +0000</bug_when>
    <thetext>&quot;Atomically&quot; is a well-understood term in computer science.

For your questions, it&apos;s not clear if by &quot;algorithm&quot; you mean the whole algorithm, or just the substep that is run atomically. Can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27956</commentid>
    <comment_count>2</comment_count>
    <who name="Nikunj Mehta">nikunj.mehta</who>
    <bug_when>2009-09-30 16:50:04 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; &quot;Atomically&quot; is a well-understood term in computer science.
&gt; 
&gt; For your questions, it&apos;s not clear if by &quot;algorithm&quot; you mean the whole
&gt; algorithm, or just the substep that is run atomically. Can you elaborate?
&gt; 

In 2.3, list of pending master entries is being modified. Should this be isolated from 7.4?

In 2.4, 2.5, and 2.6, the status of a cache group is being inspected and in 2.7, the same is being modified. Should these be isolated from 5.6, 7.6, 10, 28, and failure step 6?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28448</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-10-18 10:41:17 +0000</bug_when>
    <thetext>&gt; In 2.3, list of pending master entries is being modified. Should this be
&gt; isolated from 7.4?
&gt;
&gt; In 2.4, 2.5, and 2.6, the status of a cache group is being inspected and in
&gt; 2.7, the same is being modified. Should these be isolated from 5.6, 7.6, 10,
&gt; 28, and failure step 6?

Everything in step 2 runs atomically, so it&apos;s isolated from everything.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>