Commit graph

85813 commits

Author SHA1 Message Date
Nisha Gopalakrishnan
df1df7eaae BUG#17324415:GETTING MYSQLD --HELP AS ROOT EXITS WITH 1
Analysis
--------

Running 'MYSQLD --help --verbose' as ROOT user without
using '--user' option displays the help contents but
aborts at the end with an exit code '1'.

While starting the server, a validation is performed to
ensure when the server is started as root user, it should
be done using '--user' option. Else we abort. In case
of help, we dump the help contents and abort.

Fix:
---
During the validation, we skip aborting the server incase
we are using the help option under the condition mentioned
above.

NOTE: Test case has not been added since it requires using 
      'root' user.
2014-01-08 10:04:05 +05:30
John Esmet
23fa28bbbe fixes #135 Don't hold the write list lock while evicting a node 2014-01-07 17:29:07 -05:00
John Esmet
96afd28faa fixes #131 Don't hold the pair's mutex while running partial eviction. 2014-01-07 15:10:51 -05:00
Bharathy Satish
c1fa843d65 Bug #17503460 MYSQL READ ONLY DOESN'T WORK FOR DROP TRIGGER
Problem: Drop Trigger succeeds even after setting read_only 
variable to ON.
Fix: Fix is to report the standard error 
(ER_OPTION_PREVENTS_STATEMENT)when global read_only variable 
is set to ON.
2014-01-07 15:11:05 +05:30
Rich Prohaska
dddda9d622 #137 fix osx build problem 2014-01-07 03:57:20 -05:00
Rich Prohaska
f64edcc463 #137 error out env->open when worker threads can not be created 2014-01-06 16:58:22 -05:00
unknown
160dd24253 Raise version number after cloning 5.5.36 2014-01-06 11:43:05 +01:00
Murthy Narkedimilli
c92223e198 Updated/added copyright headers 2014-01-06 10:52:35 +05:30
Michael Widenius
4e9a2d5469 Don't writing entries to slave log about binlog_checksum not existing on master if log_warnings is <=1.
This solves the issue of getting a lot of unnecessary errors logged on the slave when connecting to MySQL or an old MariaDB version.


sql/slave.cc:
  Don't write that binlog_checksum doesn't exists on the master if log_warnings <= 1
2014-01-05 15:21:58 +02:00
Michael Widenius
c050b5fdf9 Fixed MDEV-5424: SELECT using ORDER BY DESC and LIMIT produces unexpected results (InnoDB/XtraDB)
This only happend when using an ORDER BY on a primary key part, where all other key parts where constant.
Remove of duplicated expressions in ORDER BY (as the old code did this in some strange cases)


mysql-test/r/group_by.result:
  Fixed results to take into account that duplicate order by parts are now deleted
mysql-test/r/group_by_innodb.result:
  Ensure extended keys are on
mysql-test/r/innodb_ext_key.result:
  More tests
mysql-test/r/order_by.result:
  More tests
mysql-test/t/group_by.test:
  Fixed results to take into account that duplicate order by parts are now deleted
mysql-test/t/group_by_innodb.test:
  Ensure extended keys are on
mysql-test/t/innodb_ext_key.test:
  More tests
mysql-test/t/order_by.test:
  More tests
sql/sql_select.cc:
  Fixed bug where we looked at extended key parts when we shouldn't
  Remove of duplicated expressions in ORDER BY
sql/table.cc:
  Indentation fixes
2014-01-02 15:51:02 +02:00
Rich Prohaska
79880be7e8 set default-tmp-storage-engine for 5.6 engines tests and simplify 2014-01-01 13:04:12 -05:00
John Esmet
bd5111d7c5 refs #123 Touch the pair regardless of TOKUDB_TRY_AGAIN, to make the
clock behavior more consistent with the rest of the code.
2013-12-31 13:23:52 -05:00
John Esmet
8664a78ebb refs #123 Touch the clock on a successful pin in maybe_pin_pair() 2013-12-31 12:04:39 -05:00
Sergey Petrunya
f8c7e3477f MDEV-5349: Test main.subselect_sj_jcl6 fails sporadically due to insufficient ordering
- Add --sorted_result to the query
2013-12-30 20:30:29 +04:00
Leif Walsh
44002ac2b1 Merge commit 'bafb665' 2013-12-30 11:08:17 -05:00
Leif Walsh
21830bbd68 fixed compilation with clang due to uninteresting -Wignored-attributes Tokutek/mongo#869 2013-12-30 11:06:55 -05:00
Arun Kuruvila
1f8d86b42e Bug #16324629 : SERVER CRASHES ON UPDATE/JOIN FEDERATED +
LOCAL TABLE WHEN ONLY 1 LOCAL ROW

Description: When updating a federated table with UPDATE...
JOIN, the server consistently crashes with Signal 11 when
only 1 row exists in the local table involved in the join 
and that 1 row can be joined with a row in the federated 
table.

Analysis: Interaction between the federated engine and the
optimizer results in the crash. In our scenario, ie, local
table having only one row, the program is following a 
different path because the table is treated as a constant
table by the join optimizer. So in this scenario 
"index_read()" is happening in the prepare phase,
since optimizer plan is different for constant table joins.
In this case, "index_read_idx_map()" (inside handler.cc) is
calling "index_read()" and inside "index_read()", matching 
rows are fetched and "stored_result" gets populated by 
calling "store_result()". And just after "index_read()", 
"index_end()" function is called. And in the "index_end()",
its freeing the "stored_result" by calling "free_result()".
So when it reaches the execution phase, in "position()" 
function, we are getting assertion at 
"DBUG_ASSERT(stored_result);". In all other scenarios (ie, 
table with more than 1 row), optimizer plan is different 
and "index_read()" is happening in the execution phase.

Fix: So my fix is to have a separate ha_federated member
function for "index_read_idx_map()" which will handle 
federated engine separately. So that position() will be 
called before index_end() call in constant table scenario.
2013-12-30 11:39:55 +05:30
Aditya A
64b697ca99 Bug#12762390 SHOW INNODB STATUS REPORTS NON-FK
ERRORS IN THE FK SECTION

ANALYSIS
--------

Any error during the renaming of the table was 
incorrectly logged in the dict_foreign_err_file
and it showed up in foreign key section when
we give the query "show engine innodb status".

FIX
---
Prevent renaming error from being logged in 
dict_foreign_err_file section.  

[Aprooved by marko #rb 2501 ]
2013-12-29 16:55:24 +05:30
Rich Prohaska
1e3a1b0f52 #158 support slave exec mode idempotent 2013-12-27 08:20:57 -05:00
Satya Bodapati
e8232b1d95 BUG#16752251 - INNODB DOESN'T REDO-LOG INSERT BUFFER MERGE OPERATION IF
IT IS DONE IN-PLACE

Add testcase as innodb-change-buffer-recovery.test
2013-12-26 14:33:52 +05:30
Leif Walsh
d1bef7992e fixed osx compilation breakage due to format strings 2013-12-23 19:23:20 -05:00
Leif Walsh
9db054d403 removed strict valgrind requirement #122 Tokutek/mongo#869
fixes #122
2013-12-23 19:22:35 -05:00
Rich Prohaska
876b3a7909 #148 change the default of tokudb_hide_default_row_format to ON 2013-12-22 16:03:10 -05:00
Leif Walsh
c99ee6b919 fixed some invalid parameter passing discovered by clang Tokutek/mongo#869
TXNID_NONE is not the same as (TOKUTXN) 0
2013-12-21 19:01:09 -05:00
Leif Walsh
5faf2143a8 silenced tokudb.data warning if being built as a component Tokutek/mongo#869 2013-12-21 19:00:29 -05:00
Leif Walsh
9f59d06843 added cpack component identifications to all install targets Tokutek/mongo#869 2013-12-20 17:58:48 -05:00
Tim Callaghan
c1e2bf7476 Update README.md
Added line break.
2013-12-20 14:13:57 -05:00
Tim Callaghan
dbdaa9360d Update README.md
Updating for v7.1.0, cleaning up the CentOS / Ubuntu portion.
2013-12-20 14:12:34 -05:00
Rich Prohaska
6e3e7fb5fc register the tokudb_alter_print_error variable 2013-12-20 09:14:56 -05:00
Rich Prohaska
8bcf6c5379 add a session variable that controls whether or not alter table errors are printed to stderr 2013-12-20 07:28:08 -05:00
unknown
1555f1801d make 5.1 compiling with modern gcc. 2013-12-20 12:35:47 +02:00
Rich Prohaska
2b6da0f20f build any mariadb branch name 2013-12-19 12:22:24 -05:00
Rich Prohaska
fd45297ccd #157 test case for the indexsubselect::exec crash 2013-12-19 07:49:57 -05:00
Venkata Sidagam
5a90f24cae Bug #17780290 PUBLISH THE GIS TEST FOR BUG#16451878
Adding the test cases for the BUG#16451878.
2013-12-19 16:08:38 +05:30
Rich Prohaska
295947c6f8 #157 fix tokudb::index_next_same error handling 2013-12-18 16:04:05 -05:00
Rich Prohaska
7e47ab4024 Tokutek/ft-engine#155 add alter reorganize to the test case 2013-12-18 10:56:26 -05:00
Rich Prohaska
b944865065 Tokutek/ft-engine#155 add a test case for the reorganize partition bug 2013-12-18 10:36:26 -05:00
unknown
57400ee681 MDEV-5414: RAND() in a subselect : different behavior in MariaDB and MySQL
Materialization forced in case if rand() used in view or derived table to avoud several calls of rand for gting value of a field.

Fixed set variable uncachable flag from - it shouldbe a side effect not a random value.
2013-12-18 15:59:51 +02:00
Bjorn Munch
b430aabae3 Followup fix for Bug 17827378 MTR DOES NOT REPORT IF A TEST
FAILS TO DROP CREATED EVENTS:

- Check for triggers should exclude mtr's own
- Move the code to before checksum table as it might affect result
  of some autdit_log tests (does in 5.6)
- Replace SHOW STATUS LIKE 'slave_open_temp_tables' to be like in 5.6
2013-12-18 14:01:15 +01:00
Luis Soares
7481cf6c29 BUG#17066269: AUTO_INC VALUE NOT PROPERLY GENERATED WITH RBR AND
AUTO_INC COLUMN ONLY ON SLAVE

In RBR, if the slave's table as one additional auto_inc column,
then, it will insert the value 0 instead of generating the next
auto_inc number.

We fix this by checking that if an auto_inc extra column exists,
when compared to column data of the row event, we explicitly set
it to NULL and flag the engine that a nulled auto_inc column will
be inserted.
2013-12-18 11:17:24 +00:00
Tor Didriksen
48bec2a931 MTR's internal check of the test case 'main.events_trans' failed.
fix: DROP EVENT e1;
2013-12-18 11:08:21 +01:00
Tor Didriksen
ba22c3f29a Bug#16316074 RFE: MAKE TMPDIR A BUILD-TIME CONFIGURABLE OPTION
Bug#68338    RFE: make tmpdir a build-time configurable option

Background: Some distributions use tmpfs for mounting /tmp by
default, which has some advantages, but brings also new
issues. Fedora started using tmpfs on /tmp in version 18 for
example. If not configured otherwise in my.cnf, MySQL uses
system's constant P_tmpdir expanded to /tmp on Linux. This can
introduce some problems with limited space in /tmp and also some
data loss in case of replication slave [1].

In case distributions would like to use /var/tmp, which should be
better for MySQL purposes, then we have to patch the source or
change tmpdir option in my.cnf, which is however not updated in
case it has already existed.

Thus, it would be useful to be able to specify default tmpdir
path using a configure option, while using P_tmpdir in case it is
not defined explicitly.

Based on a contribution from Honza Horak
2013-12-18 11:05:18 +01:00
Venkatesh Duggirala
11c0805e1d Bug17632978 SLAVE CRASHES IF ROW EVENT IS CORRUPTED
(MYSQLBINLOG -V CRASHES WITH THAT BINLOG)

Post Push: Fixing Werror compiler issue
2013-12-18 13:52:49 +05:30
Leif Walsh
47b4a0fb4c Merge branch 'osx' 2013-12-17 18:29:10 -05:00
Leif Walsh
b234a26410 fixed some minor issues OSX complains about Tokutek/mongo#859 2013-12-17 18:29:06 -05:00
Venkatesh Duggirala
5fa9664b07 Bug#17632978 SLAVE CRASHES IF ROW EVENT IS CORRUPTED
(MYSQLBINLOG -V CRASHES WITH THAT BINLOG)

Problem: If slave receives a corrupted row event,
slave server is crashing.

Analysis: When slave is unpacking the row event, it is
not validating the data before applying the event. If the
data is corrupted for eg: the length of a field is wrong,
it could end up reading wrong data leading to a crash.
A similar problem happens when mysqlbinlog tool is used
against a corrupted binlog using '-v' option. Due to -v
option, the tool tries to print the values of all the
fields. Corrupted field length could lead to a crash.

Fix: Before unpacking the field, a verification
will be made on the length. If it falls into the event
range, only then it will be unpacked. Otherwise,
"ER_SLAVE_CORRUPT_EVENT" error will be thrown.
Incase mysqlbinlog -v case, the field value will not be
printed and the processing of the file will be stopped.

sql/field.h:
  Removed a function which is not required anymore
sql/log_event.cc:
  Adding a validation on the field length before
  the tool tries to print the value.
sql/log_event.h:
  Changing unpack_row call according to the new arguments
sql/log_event_old.h:
  Changing unpack_row call according to the new arguments
sql/rpl_record.cc:
  Adding a new argument 'row_end' which tells
  the end position of the complete data in the
  row event. It will be used to do validation
  before doing 'unpack' field.
sql/rpl_record.h:
  Adding a new argument 'row_end' which tells
  the end position of the complete data in the
  row event. It will be used to do validation
  before doing 'unpack' field.
sql/rpl_utility.cc:
  Now calc_field_size() is required for client too.
2013-12-17 22:11:22 +05:30
Sergei Golubchik
50808b30d2 MDEV-5396 Assertion `Handlerton: r==0 ' failed (errno=0) on EXPLAIN with TokuDB tables
Fix EXPLAIN and CREATE SELECT to join_free() (and, thus, ha_index_end())
before ha_commit_trans().
2013-12-17 17:26:54 +01:00
Alexander Barkov
dc407270a1 MDEV-5453 Assertion `src' fails in my_strnxfrm_unicode on GROUP BY MID(..) WITH ROLLUP
Fixed a wrong assertion.
2013-12-17 15:19:26 +04:00
Rich Prohaska
e58e0ff0bc #154 translate CRNL to NL 2013-12-16 15:28:44 -05:00
Rich Prohaska
ad2f063d99 #119 translate CRNL to NL 2013-12-16 15:12:51 -05:00