[MDEV-13002] mysqltest regex replace results in incorrect result Created: 2017-06-06 Updated: 2017-06-29 Resolved: 2017-06-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients, Tests |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2.6, 10.2 |
| Fix Version/s: | 10.1.25, 5.5.57, 10.0.32, 10.2.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
From https://travis-ci.org/MariaDB/server/jobs/238967452 As seen with the : plugins.server_audit and plugins.thread_pool_server_audit tests Setting a large hostname like travis (testing-docker-99f46c25-f6c4-4465-bc49-ee78d188e37c) is sufficient to trigger test. A smaller test hostname of The regexs are right using [^,]* as the host match which should match the hostname. Though it escapes for ',' I don't think escaping is needed (and it doesn't affect result removing escapes). related to c91ecf9e9bebf3cf2dafbd3193de4df94be09870 ? Testable locally by changing hostname to a name above with hostname command.
|
| Comments |
| Comment by Elena Stepanova [ 2017-06-11 ] |
|
It's not replace_regex, it's cat_file that gives. As we can see in the output above, the previous identical line replace-regexed just fine. The faulty line happens to be just outside 16384-symbol buffer which cat_file allocates. Increasing the buffer makes the problem go away. serg, Monty increased the buffer from 512 to 16384 in 2013. Is it okay to increase it again, or should it be solved in a smarter way? |
| Comment by Daniel Black [ 2017-06-12 ] |
|
Thanks elenst. |