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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>154657</bug_id>
          
          <creation_ts>2016-02-24 14:51:18 -0800</creation_ts>
          <short_desc>(Rare) storage/indexeddb/modern/autoincrement-abort.html flaky on mac-wk1</short_desc>
          <delta_ts>2016-07-04 22:14:22 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>154968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1167934</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-02-24 14:51:18 -0800</bug_when>
    <thetext>storage/indexeddb/modern/autoincrement-abort.html flaky on mac-wk1

The test is intermittently timing out on mac-wk1

Most recent timeout:
&lt;https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK1%20(Tests)/builds/3755&gt;

Flakiness dashboard:
&lt;http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=storage%2Findexeddb%2Fmodern%2Fautoincrement-abort.html&gt;

--- /Volumes/Data/slave/elcapitan-release-tests-wk1/build/layout-test-results/storage/indexeddb/modern/autoincrement-abort-expected.txt
+++ /Volumes/Data/slave/elcapitan-release-tests-wk1/build/layout-test-results/storage/indexeddb/modern/autoincrement-abort-actual.txt
@@ -1,3 +1,4 @@
+FAIL: Timed out waiting for notifyDone to be called
 This test creates a new database with an objectstore that autoincrements. It then puts some things in that object store, checking the keys that were used. But it then aborts that transaction. Then it opens a new one and puts something in it, double checking that the key generator was reverted when the above transaction was aborted.
 
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
@@ -16,24 +17,4 @@
 Key used for put was 4
 Key used for put was 5
 Key used for put was 6
-readwrite transaction abort
-Opening readwrite transaction to make sure the key generator had successfully reverted
-Key used for put was 1
-Key used for put was 2
-Key used for put was 3
-Key used for put was 4
-Key used for put was 5
-Key used for put was 6
-readwrite transaction complete
-Opening readwrite transaction to make sure the key generator picks up where it should&apos;ve left off
-Key used for put was 7
-Key used for put was 8
-Key used for put was 9
-Key used for put was 10
-Key used for put was 11
-Key used for put was 12
-readwrite transaction complete
-PASS successfullyParsed is true
 
-TEST COMPLETE
-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1187055</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-04-25 14:06:23 -0700</bug_when>
    <thetext>According to the dashboard, this timeout is fairly rare.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189876</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-05-03 15:17:48 -0700</bug_when>
    <thetext>This is, indeed, rare. It happens on any given bot once every 2-3 weeks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1198999</commentid>
    <comment_count>3</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-06-03 12:39:19 -0700</bug_when>
    <thetext>This test is super rare, indeed.

Hasn&apos;t occurred on a Mac bot since 5/21, which is before my 5/27 date where I expected a lot of tests to be much more reliable due to http://trac.webkit.org/changeset/201461

Occurred on EFL on 5/28 with 201492 :( weird...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1205130</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-06-24 10:18:34 -0700</bug_when>
    <thetext>Hasn&apos;t occurred on a Mac bot since 6/8, and that was the leaks bot.

The leaks bot timed out and actually gave us a logging dump that I&apos;d implemented a long time ago.

Jumping to the end of the logging dump I see something *very* peculiar:

...
+UniqueIDBDatabaseConnection::didAbortTransaction -  - 140734713535744
+UniqueIDBDatabase::invokeOperationAndTransactionTimer()
+(main) UniqueIDBDatabase::operationAndTransactionTimerFired
+(main) UniqueIDBDatabase::handleDatabaseOperations - There are 1520145168 pending
...

Weird things:
1 - The didAbortTransaction line should have an IDBResourceIdentifier outputted, between the &quot;-  -&quot; dashes. It doesn&apos;t.
IDBResourceIdentifier can&apos;t actually output *nothing* like that - it&apos;s loggingString method has to print brackets. Bizarre.

2 - The transaction identifier - 140734713535744 - is *HUGE*.
Transaction ids start at 0. No way it got that huge.

3 - &quot;handleDatabaseOperations - There are 1520145168 pending&quot;
Nope, nope, nope. No way.

Something is getting into a bonkers state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1205131</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-06-24 10:19:29 -0700</bug_when>
    <thetext>More weirdness in the logs:

+(main) UniqueIDBDatabase::handleDatabaseOperations - There are 1520149760 pending
+UniqueIDBDatabase::handleDatabaseOperations - Popped an operation, now there are 1520149760 pending

Nope - Can&apos;t start at a number, pop one off, then have the same number.  o_O</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1205132</commentid>
    <comment_count>6</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-06-24 10:20:16 -0700</bug_when>
    <thetext>+IDBOpenDBRequest::onDeleteDatabaseSuccess() - current version is 140734713537488


Nope.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1207745</commentid>
    <comment_count>7</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-07-04 22:14:22 -0700</bug_when>
    <thetext>This hasn&apos;t happened on any of the Mac bots in a month.

Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>