-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test failures on MariaDB performance_schema: OFF #965
Comments
In the result of the case: Ruby 2.5.1 + MariaDB 10.2 for the PR: #966 , the 2 tests that are failed in my local environment are pending status on Travis CI. Also the pending message https://travis-ci.org/brianmario/mysql2/jobs/372082279
|
I added blow debug log to check the criteria to be pending.
The result is MariaDB 10.2 on Ubuntu
MariaDB 10.2 on Fedora 27.
|
Additional info.
Above value is
As an another concern, |
|
My best guess is that you're linking against a "real" MySQL client library version 5.5. But you shouldn't see a test failure, you should see the test skipped because the value of the constant is zero. |
You are right. It's not urgent in this case. |
I used
|
Below is about my client version.
Fedora and MariaDB 10.2
Ubuntu and MariaDB 10.2 (On Travis CI)
|
I found a test related to I would check https://github.com/MariaDB/mariadb-connector-c/blob/master/unittest/libmariadb/misc.c#L936
|
Hi! Checking in to ask if there's a specific change you would like to see? Maybe to adjust the tests to key off of the value of the flag rather than the version of the library? |
Hi @sodabrew ! I am still in progressing. I will try it again after next week. |
@sodabrew Right now there is no the specific change for that, I was doing debug [1] for used mariadb-connector-c [2]. Below SQL's result raw count is zero row on the case "should set default program_name in connect_attrs".
I need some helps for that.
Start docker.
To run test.
To debug interactively.
[1] https://gist.github.com/junaruga/70bc7aa7aeb60d94745553ef4c52a3b7 |
Checking in to see if you have any news on this issue @junaruga ? |
@sodabrew sorry, I do not have news for the issue. It still happens. |
Isn't the difference here MySql vs MariaDB? It seems that MariaDB introduced "Performance Schema" in 10.5.2: |
@voxik I think it seems the "Performance Schema" is initially introduced at MariaDB 10.0.11.
Yes, I think so. it comes from the difference between MySQL vs MariaDB. This issue does not happen on MySQL. |
I captured the client and server info on the CI cases failing on the failures.
fedora fedola:latest
fedora fedola:rawhide
macos-latest ruby 2.4 mariadb
|
What I observed these failures is when I upgraded the version of ruby mysql2 RPM package from 0.4.10 to 0.5.2.
Sorry I forget things on this issue. the ext/mysql2/extconf.rb
client.c:1653
|
@sodabrew Finally I got the answer for this issue by checking the logic of mariadb-connector-c and MariaDB upstream's issue ticket. The performance-schema is disabled by by default. We are adding the Line 427 in 346b4a4
The mysql_options4 calling mysql_optionsv calling hash_insert. Here is the input key and value that we wanted to store.
But I might find only key was stored and the value was not stored to the record. at
So, I searched if there is a issue related to CONNECTION_ATTRS not stored in performance schema
|
I got the performance_schema is disabled on my Fedora rawhide's MariaDB server. https://mariadb.com/kb/en/performance-schema-overview/#activating-the-performance-schema
So, the solution for this issue is
|
A good news! I confirmed these test failures do not happen when the performance_schema is enabled (ON) on my Fedora 35's MariaDB 10.5. Here is the reproducer. Seeing https://mariadb.com/kb/en/performance-schema-overview/ , add the setting to enable performance schema to the cnf file.
Run the MariaDB server Confirm the settings
Then on the current latest master
The #1152 's 1) is only shown. |
I would report as I got 2 test failures on my local environment.
I tried it on current master latest branch (4a20d58).
Do you know what's wrong on my environment?
Thanks!
OS: Fedora 27
MariaDB 10.2
Ruby: 2.5.1
Start MariaDB daemon.
Run unit tests.
The text was updated successfully, but these errors were encountered: