Bug 46682

Summary: Patch locks should expire if a patch is marked for retry
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: New BugsAssignee: Eric Seidel (no email) <eric>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch none

Eric Seidel (no email)
Reported 2010-09-27 17:35:50 PDT
Patch locks should expire if a patch is marked for retry
Attachments
Patch (4.22 KB, patch)
2010-09-27 17:38 PDT, Eric Seidel (no email)
no flags
Patch (5.11 KB, patch)
2010-09-27 18:12 PDT, Eric Seidel (no email)
no flags
Eric Seidel (no email)
Comment 1 2010-09-27 17:38:42 PDT
Adam Barth
Comment 2 2010-09-27 17:40:36 PDT
Comment on attachment 69000 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=69000&action=review > WebKitTools/QueueStatusServer/handlers/updatestatus.py:68 > + active_items.expire_item(queue_status.active_patch_id) > + active_items.put() This is a read-modify-write. Does it need to be in a transaction to ensure atomicity?
Eric Seidel (no email)
Comment 3 2010-09-27 17:44:10 PDT
(In reply to comment #2) > (From update of attachment 69000 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=69000&action=review > > > WebKitTools/QueueStatusServer/handlers/updatestatus.py:68 > > + active_items.expire_item(queue_status.active_patch_id) > > + active_items.put() > > This is a read-modify-write. Does it need to be in a transaction to ensure atomicity? It would, yes. I guess I shoudl do that. :) Originally I thougtht a transaction wouldn't be needed here, but since we're replacing the whole list, that could cause badness in the multiple-writer case.
Eric Seidel (no email)
Comment 4 2010-09-27 18:12:49 PDT
Eric Seidel (no email)
Comment 5 2010-09-27 18:15:26 PDT
Now with transactiony goodness.
Adam Barth
Comment 6 2010-09-27 18:39:11 PDT
Comment on attachment 69005 [details] Patch yay transactions
WebKit Commit Bot
Comment 7 2010-09-27 19:21:40 PDT
Comment on attachment 69005 [details] Patch Clearing flags on attachment: 69005 Committed r68474: <http://trac.webkit.org/changeset/68474>
WebKit Commit Bot
Comment 8 2010-09-27 19:21:45 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.