403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.68.164.169
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/ndb/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb/t/ndb_bug14166590.test
###########################################################################################
# Testing Bug#14166590 DATA NODE CRASHES AT LINE 1388 IN DBTC
###########################################################################################

-- source include/not_embedded.inc
-- source include/have_ndb.inc
# We are using some debug-only features in this test
--source include/have_ndb_debug.inc

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings

#
# Setup
#
let $ndb_mgm_cmd = $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" --verbose=0;

connect (con1,localhost,root,,test);
connect (con2,localhost,root,,test);

connection con1;
create table t1(  pk1 INT NOT NULL PRIMARY KEY,
                  attr1 INT NOT NULL UNIQUE,
                  attr2 INT,
                  attr3 VARCHAR(1024)
) ENGINE = ndb;
INSERT INTO t1 VALUES (9410, 9412, 9412, '9412');

connection con2;
begin;
# Force abort of transaction with by error injection after
# next operation, but delay informing Ndb API to simulate
# a TCROLLBACKREP signal in flight.
--exec $ndb_mgm_cmd -e "all error 8100" >> $NDB_TOOLS_OUTPUT
select * from t1 where attr1 = 9412 order by pk1;
disable_query_log;
while (`select @@error_count = 0`)
{
  --error 0,1296,1297
  select pk1 from t1 where attr1 = 9412 into @slask;
}
enable_query_log;
begin;
# Check that no overwritten transaction record is used
select * from t1 where pk1 = 9410 order by pk1;
commit;

connection con1;
drop table t1;

Youez - 2016 - github.com/yon3zu
LinuXploit