Problem with --apply-log

17 views
Skip to first unread message

Luf

unread,
Apr 19, 2010, 6:49:32 AM4/19/10
to Percona Discussion
Hello!

After using innobackapex-1.5.1 (latest binary), sometimes I can't
apply "--apply-log". Error is: "InnoDB: Assertion failure in thread
1214785856 in file xtrabackup.c line 1070". After 2-3 wrong tries, it
applied normally.

MySQL 5.1.45 x64 + XtraDB 1.0.6-10 compiled from source.

What's the problem?

--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.

Yasufumi Kinoshita

unread,
Apr 20, 2010, 5:02:55 AM4/20/10
to percona-d...@googlegroups.com, ekru...@gmail.com
Hello,

"It seems to be missed to build"
The xtrabackup binary don't cantains the characterset used at the table.
Please build with enough characterset.

Thank you.

Luf

unread,
Apr 20, 2010, 11:02:11 AM4/20/10
to Percona Discussion
Huh, I can't understand how can I compile xtrabackup-1.2 and MySQL
5.1.45 x64.
I tried both of original innobase and fix_innodb_for_backup51.patch
and xtradb instead of innobase and fix_innodb_for_backup_xtradb.patch
without result. In case of innobase `make` execution in xtrabackup dir
cause this error:

cc -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -I. -I.. -I./../
include -I./../../include -I./../../../include -DUNIV_LINUX -
DMYSQL_SERVER -DXTRADB_BASED -c xtrabackup.c
xtrabackup.c:907: ошибка: 'UNIV_PAGE_SIZE_SHIFT_MAX' undeclared here
(not in a function)
xtrabackup.c: In function 'innodb_init_param':
xtrabackup.c:1538: ошибка: 'srv_page_size' undeclared (first use in
this function)
xtrabackup.c:1538: ошибка: (Each undeclared identifier is reported
only once
xtrabackup.c:1538: ошибка: for each function it appears in.)
xtrabackup.c:1539: ошибка: 'srv_page_size_shift' undeclared (first use
in this function)
xtrabackup.c:1546: предупреждение: сравнение указателя и целого
xtrabackup.c:1549: ошибка: неверные операнды бинарной операции <<
xtrabackup.c:1558: ошибка: неверные операнды бинарной операции <<
xtrabackup.c:1561: ошибка: 'srv_fast_checksum' undeclared (first use
in this function)
xtrabackup.c: In function 'xtrabackup_init_temp_log':
xtrabackup.c:3989: ошибка: 'ib_uint64_t' undeclared (first use in this
function)
xtrabackup.c:3990: ошибка: вызываемый объект '<erroneous-expression>'
не является функцией
xtrabackup.c:3990: ошибка: incompatible type for argument 2 of
'mach_write_to_8'
xtrabackup.c:4006: ошибка: вызываемый объект '<erroneous-expression>'
не является функцией
xtrabackup.c:4006: ошибка: incompatible type for argument 2 of
'mach_write_to_8'
make: *** [xtrabackup.o] Ошибка 1


In case of xtradb instead of innobase execution of mysql make's
failed:

../../include/my_config.h:409:1: warning:
"HAVE_IB_ATOMIC_PTHREAD_T_GCC" redefined
In file included from ./include/univ.i:98,
from ./include/btr0btr.h:29,
from btr/btr0btr.c:26:
./include/ut0auxconf.h:3:1: warning: this is the location of the
previous definition
In file included from ../../include/my_global.h:80,
from ./include/univ.i:119,
from ./include/btr0btr.h:29,
from btr/btr0btr.c:26:
../../include/my_config.h:415:1: warning:
"HAVE_IB_GCC_ATOMIC_BUILTINS" redefined
In file included from ./include/univ.i:98,
from ./include/btr0btr.h:29,
from btr/btr0btr.c:26:


...............................


../../include/my_config.h:418:1: warning: "HAVE_IB_PAUSE_INSTRUCTION"
redefined
In file included from ./include/univ.i:98,
from ./include/buf0flu.h:29,
from buf/buf0flu.c:26:
./include/ut0auxconf.h:5:1: warning: this is the location of the
previous definition
buf/buf0flu.c:167: ошибка: expected identifier or '(' before 'if'
buf/buf0flu.c:169: ошибка: expected identifier or '(' before 'else'
buf/buf0flu.c:173: ошибка: expected identifier or '(' before '}' token
buf/buf0flu.c:178: ошибка: expected identifier or '(' before '}' token
make[3]: *** [ha_innodb_la-buf0flu.lo] Ошибка 1
make[3]: Leaving directory `/usr/local/src/mysql-5.1.45/storage/
innobase'
make[2]: *** [custom_checks] Ошибка 2
make[2]: Leaving directory `/usr/local/src/mysql-5.1.45/storage/
innobase'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/usr/local/src/mysql-5.1.45/storage'
make: *** [all-recursive] Ошибка 1


I used this guides:
1) BUILD.txt from xtrabackup source
2) http://www.percona.com/docs/wiki/percona-xtrabackup:howtobuild
3) Content of utils/build51tree.sh from xtrabackup source


What am I doing wrong?


On 20 апр, 13:02, Yasufumi Kinoshita <kinoy...@gmail.com> wrote:
> Hello,
>
> "It seems to be missed to build"
> The xtrabackup binary don't cantains the characterset used at the table.
> Please build with enough characterset.
>
> Thank you.
>
> On Mon, 19 Apr 2010 03:49:32 -0700 (PDT)
>
Reply all
Reply to author
Forward
0 new messages