[MDEV-6459] max_relay_log_size and sql_slave_skip_counter misbehave on PPC64 Created: 2014-07-18 Updated: 2014-09-11 Resolved: 2014-09-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.13 |
| Fix Version/s: | 10.0.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergey Vojtovich | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
PPC64 RHEL 6.5 |
||
| Issue Links: |
|
||||||||
| Description |
|
The following tests fail on PPC64 due to misbehaving variables: multi_source.skip_counter, rpl.rpl_auto_increment, rpl.rpl_mdev6020, rpl.rpl_skip_replication, rpl.rpl_stm_max_relay_size, sys_vars.max_relay_log_size_basic, sys_vars.sql_slave_skip_counter_basic. BB link: http://buildbot.askmonty.org/buildbot/builders/bintar-rhel6-p8/builds/211/steps/test/logs/stdio Most failures look as following:
|
| Comments |
| Comment by Sergey Vojtovich [ 2014-07-18 ] | |||||||||||||||||
|
Kristian, please review fix for this bug. The patch has been pushed to 10.0.13:
| |||||||||||||||||
| Comment by Sergei Golubchik [ 2014-07-30 ] | |||||||||||||||||
|
Try to avoid long in sysvars, prefer int or longlong instead. They are a lot more stable between architectures, int is typically 23-bit, longlong is 64-bit. But long can be either, so the variable gets different limits on different platforms — this makes documenting the variable (and writing test cases) rather complicated. | |||||||||||||||||
| Comment by Sergey Vojtovich [ 2014-07-31 ] | |||||||||||||||||
|
Max value for sql_slave_skip_counter is UINT_MAX and for max_relay_log_size is 1024L*1024*1024. That is both fit 32-bit unsigned integer. Not sure if there was a good reason to choose ulong and not the other type. Since Kristian created this code, I'm better handing off this recommendation to him. | |||||||||||||||||
| Comment by Kristian Nielsen [ 2014-08-11 ] | |||||||||||||||||
|
> Not sure if there was a good reason to choose ulong and not the other I don't think I could have created the code for max_relay_log_size and Generally, I would agree with Serg that it's best to avoid using ulong. Using I have noticed that binlog sizes and offsets have a tendency to use 32-bit Using ulonglong by default when adding or otherwise changing code seems a
|