summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRohit Kalhans <rohit.kalhans@oracle.com>2012-07-10 18:24:11 +0530
committerRohit Kalhans <rohit.kalhans@oracle.com>2012-07-10 18:24:11 +0530
commitabf4b3fa6aab3dac2d532361b237ccbf6a1e633d (patch)
tree840ad18eb31185ee106c0f4f557e0d094ecdabb9 /tests
parentce9e2b6b96706743316032a84b7a971465215ea8 (diff)
downloadmariadb-git-abf4b3fa6aab3dac2d532361b237ccbf6a1e633d.tar.gz
BUG#11759333: SBR LOGGING WARNING MESSAGES FOR PRIMARY
KEY UPDATES WITH A LIMIT OF 1 Problem: The unsafety warning for statements such as update...limit1 where pk=1 are thrown when binlog-format = STATEMENT,despite of the fact that such statements are actually safe. this leads to filling up of the disk space with false warnings. Solution: This is not a complete fix for the problem, but prevents the disks from getting filled up. This should therefore be regarded as a workaround. In the future this should be overriden by server general suppress/filtering framework. It should also be noted that another worklog is supposed to defeat this case's artificial unsafety. We use a warning suppression mechanism to detect warning flood, enable the suppression, and disable this when the average warnings/second has reduced to acceptable limits. Activation: The supression for LIMIT unsafe statements are activated when the last 50 warnings were logged in less than 50 seconds. Supression: Once activated this supression will prevent the individual warnings to be logged in the error log, but print the warning for every 50 warnings with the note: "The last warning was repeated N times in last S seconds" Noteworthy is the fact that this supression works only on the error logs and the warnings seen by the clients will remain as it is (i.e. one warning/ unsafe statement) Deactivation: The supression will be deactivated once the average # of warnings/sec have gone down to the acceptable limits.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions