You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently we ran into a bug with the way mysql2-aurora replaces the Mysql2::Client class. When our gem is starting up, it probes which version of libmysqlclient is in use by the mysql2 gem to decide if it should apply a workaround for a bug in old versions of this library.
The extra safety checks need to happen because we don't know if mysql2 is installed or correctly loaded.
These checks failed when mysql2-aurora was loaded because it doesn't implement respond_to_missing? on the class that replaces Mysql2::Client. This broke our check and we needed to add a workaround for it (DataDog/dd-trace-rb#2956) as we were getting this output:
In our case, we've added the workaround, but I thought I'd report this issue upstream, so that hopefully this can be fixed and we can in the future remove the workaround :)
Have an awesome week!
The text was updated successfully, but these errors were encountered:
Hey 👋!
I'm Ivo and I work at Datadog on our
ddtrace
gem.Recently we ran into a bug with the way
mysql2-aurora
replaces theMysql2::Client
class. When our gem is starting up, it probes which version oflibmysqlclient
is in use by themysql2
gem to decide if it should apply a workaround for a bug in old versions of this library.It did this by checking the following:
The extra safety checks need to happen because we don't know if
mysql2
is installed or correctly loaded.These checks failed when
mysql2-aurora
was loaded because it doesn't implementrespond_to_missing?
on the class that replacesMysql2::Client
. This broke our check and we needed to add a workaround for it (DataDog/dd-trace-rb#2956) as we were getting this output:In our case, we've added the workaround, but I thought I'd report this issue upstream, so that hopefully this can be fixed and we can in the future remove the workaround :)
Have an awesome week!
The text was updated successfully, but these errors were encountered: