[SERVER-16078] Exponentially back off for write conflict exceptions. Created: 11/Nov/14  Updated: 11/Jul/16  Resolved: 17/Nov/14

Status: Closed
Project: Core Server
Component/s: Storage, Write Ops
Affects Version/s: None
Fix Version/s: 2.8.0-rc1

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-15945 consolidate WriteConflictException re... Closed
Tested
Operating System: ALL
Participants:

 Description   

Reported by asya

2014-11-10T20:17:48.350-0500 I WRITES   [conn20] Had WriteConflict doing update on ycsb.usertable, attempt: 8719 retrying
2014-11-10T20:17:48.350-0500 I WRITES   [conn22] Had WriteConflict doing update on ycsb.usertable, attempt: 8874 retrying
2014-11-10T20:17:49.684-0500 I WRITES   [conn20] Had WriteConflict doing update on ycsb.usertable, attempt: 8720 retrying
2014-11-10T20:17:49.684-0500 I WRITES   [conn22] Had WriteConflict doing update on ycsb.usertable, attempt: 8875 retrying
2014-11-10T20:17:49.685-0500 I WRITES   [conn20] Had WriteConflict doing update on ycsb.usertable, attempt: 8721 retrying
2014-11-10T20:17:52.434-0500 I WRITES   [conn22] Had WriteConflict doing update on ycsb.usertable, attempt: 8876 retrying
2014-11-10T20:17:52.436-0500 I WRITES   [conn22] Had WriteConflict doing update on ycsb.usertable, attempt: 8877 retrying

Wondering if this fix is doing what it's intended.... The highest numbers I see are:

2014-11-10T21:23:51.260-0500 I WRITES   [conn67] Had WriteConflict doing update on ycsb.usertable, attempt: 12369 retrying
2014-11-10T21:23:51.260-0500 I WRITES   [conn67] Had WriteConflict doing update on ycsb.usertable, attempt: 12370 retrying
2014-11-10T21:23:51.260-0500 I WRITES   [conn67] Had WriteConflict doing update on ycsb.usertable, attempt: 12371 retrying
2014-11-10T21:23:51.260-0500 I WRITES   [conn67] Had WriteConflict doing update on ycsb.usertable, attempt: 12372 retrying
2014-11-10T21:23:51.260-0500 I WRITES   [conn67] Had WriteConflict doing update on ycsb.usertable, attempt: 12373 retrying
2014-11-10T21:23:51.260-0500 I WRITES   [conn67] Had WriteConflict doing update on ycsb.usertable, attempt: 12374 retrying
2014-11-10T21:23:51.260-0500 I WRITES   [conn67] Had WriteConflict doing update on ycsb.usertable, attempt: 12375 retrying
2014-11-10T21:23:53.794-0500 I WRITES   [conn67] Had WriteConflict doing update on ycsb.usertable, attempt: 12376 retrying

The build includes a fix for SERVER-16046 (which may be incomplete since the same crash eventually happened).



 Comments   
Comment by Githook User [ 17/Nov/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-16078 SERVER-15945: consolidate WriteConflictException logging and do backoff
Branch: master
https://github.com/mongodb/mongo/commit/bddcc15df9736883f8b94e18a8718b24079b1c94

Comment by Eliot Horowitz (Inactive) [ 12/Nov/14 ]

Should be done at same time as SERVER-15945 as both should be consolidated.

Generated at Thu Feb 08 03:39:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.