This blog describes how the Address Sanitizer found bugs in the TokuFT
(now PerconaFT) storage library. TokuFT is the
storage library used by the TokuDB for MySQL and TokuMX for MongoDB products. TokuFT is
currently tested with valgrind's memcheck tool. However, memcheck
is very slow compared to native execution, so memcheck is not
always used for large tests. This leads to missed
bugs.
The Address Sanitizer is a memory …
The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
Recently, we have discussed BUGs with our local community members. Where the half off people said that, they have seen “Assertion Failure” errors in error log. And the question was what is this at all?
In general “assert” is a code portion put by developer to handle certain things.
Well, i am not a core MySQL developer and my C/C++ knowledge is
limited to simple calculator But i will try to explain where all
these “Assertion Failure” errors come up.
The exact reason of failing Assertion/crash should be known by
core developers. I know how to crash, they know how to fix. You
help developers to reproduce a crash filling a bug report, by
uploading test cases or maybe the core dump, backtrace etc.
Say, for eg, if you try to create a view after getting “full
disk” error you will crash MySQL. See related BUG report ->
…
Reprint a PDF for MySQL Injection Test
Simple query using group clause for 1 million records resulting
in final list of 27 records.
First time takes 0.43053775 secs.
Same query through Stored procedure: First time takes 0.43341600
secs.
So in terms of time, first time they are very close.
Profiling comparison for both can be seen in below figure
no_cache_comparison.png where left one is simple inline query and
right one is stored procedure query.
There are some actions which are extra in the inline query:
1. freeing items
2. logging slow query
3. cleaning up
Running both second time retrieve data from cache …
My test environment is:
Ubuntu 14.04 Trusty Tahr
MySQL Server version: 5.5.44-0ubuntu0.14.04.1 (Ubuntu)
MySQL uses sql cache to store results of queries that have been
executed so that when the same query is executed again it
retrieves the result data set from the cache instead of getting
it again from db. So it is faster data access.
It is by default enabled in MySQL.
This is interesting since there is one question we ought to ask
here whether we should use it or disable it or just leave it as
it is who cares :).
Ok, moving forward today's session goals are:
- How useful is MySQL cache?
- When to use it and when not to use it?
- What to do if you do not want to use it?
There are some catchy areas here too like not all your queries
will be stored in cache. …
In my latest series of advanced replication features, I came across several usability
issues, which I would like to recap here. For each section of
this list of requests, I make a wish list, with some general
comments.
INSTALLATIONAs the maintainer of MySQL Sandbox, a
tool that wants to facilitate the installation of …
The following presentation was given at the Oracle Technology Network (OTN) Latin America 2015 tour events in Uruguay, Argentina, Chile and Peru. Download Presentation In this presentation I talk about the various versions and means of installing and upgrading MySQL including:
For those of you who would like a copy of the slides from my webinar, they are now online at slideshare . Thanks again if you attended!
I wasn’t able to answer all the questions that were submitted at the end, so I’m collecting those, and more from your emails, for the next post: Q&A.
Hi, I'm Ben Osheroff, an engineer on the infrastructure team at Zendesk. My team began this year with a single goal: to better scale Zendesk's view system.
If you haven't tried Zendesk yet, views are lists of tickets with user-specified constraints, generally consumed by support agents as a workflow tool. As implemented, views are a SQL generation and execution engine, and this poses some interesting scale challenges: giving your customers a fully-featured bridge to SQL means that they will find all sorts of creative ways to generate queries your databases aren't prepared to handle.
To solve this, we've beenbuilding a system based on adaptive caches, where Zendesk keeps "materialized views" of expensive-to-execute queries, created on the fly as needed. At the heart of this caching system is a data firehose, a change capture system like …
[Read more]If you attended my webinar, MySQL for Oracle DBAs, thank you! I hope you enjoyed it.
We ran out of time while I was answering questions for Q&A, so I apologize if I didn’t answer your question. Please email any questions to me at ben-dot-krug-at-oracle-dot-com. Also, if you were asking for a copy of the slides (or would like to ask), also email me – I’ll be happy to send them!
Thanks again!