Bug #22313 can get duplicate log messages in cluster log
Submitted: 13 Sep 2006 14:32 Modified: 12 Jan 2007 7:06
Reporter: Stewart Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:5.0,5.1 OS:
Assigned to: Stewart Smith CPU Architecture:Any

[13 Sep 2006 14:32] Stewart Smith
Description:
 LogHandler::append and LogHandler::append_impl don't lock around detection of duplicate log messages.

possible to get duplicate messages in logs (jonas has seen this at customer) instead of "duplicated X times"

How to repeat:
be unlucky

Suggested fix:
lock around detection (or be extra clever)
[2 Nov 2006 14:12] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/14747

ChangeSet@1.2336, 2006-11-03 01:12:30+11:00, stewart@willster.(none) +4 -0
  BUG#22309  	FileLogHandler::createNewFile() isn't thread safe - may loose log messages
  BUG#22305  	SysLogHandler not thread safe
  BUG#22313  	can get duplicate log messages in cluster log
  
  Fix all these problems with one patch. Make Logger, hence EventLogger (with a 
  bit more) thread safe.
[8 Nov 2006 4:21] Stewart Smith
pushed to 5.1-ndb
[28 Dec 2006 13:18] Jon Stephens
Documented fix for 5.1 in 5.1.14 changelog.

Is this fixed in 5.0 tree also? If so, what's effective version for fix? Thanks.
[9 Jan 2007 6:02] Stewart Smith
didn't patch 5.0, less invasive that way. only 5.1
[12 Jan 2007 7:06] Jon Stephens
In that case, no further action necessary, so closing this bug report. Thanks for the info. :)