[MDEV-14308] rocksdb.drop_table locks in set global rocksdb_compact_cf = 'cf1' Created: 2017-11-07  Updated: 2021-04-12

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - RocksDB
Fix Version/s: None

Type: Task Priority: Major
Reporter: Michael Widenius Assignee: Sergei Petrunia
Resolution: Unresolved Votes: 0
Labels: None

Attachments: File rocksdb.stack    
Issue Links:
Relates
relates to MDEV-12259 rocksdb.drop_table rocksdb.drop_table... Closed

 Description   

I get sometimes a wait timeout in rocksdb.drop_table when running the whole test suite.

#0  0x00007fb1a394103f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fb19cbe181e in rocksdb::port::CondVar::Wait (this=0x30eea58) at /my/maria-10.2-spider/storage/rocksdb/rocksdb/port/port_posix.cc:90
#2  0x00007fb19ca7d0ac in rocksdb::InstrumentedCondVar::WaitInternal (this=0x30eea58) at /my/maria-10.2-spider/storage/rocksdb/rocksdb/monitoring/instrumented_mutex.cc:60
#3  0x00007fb19ca7d04a in rocksdb::InstrumentedCondVar::Wait (this=0x30eea58) at /my/maria-10.2-spider/storage/rocksdb/rocksdb/monitoring/instrumented_mutex.cc:52
#4  0x00007fb19c95aca5 in rocksdb::DBImpl::RunManualCompaction (this=0x30ee550, cfd=0x310dea0, input_level=1, output_level=1, output_path_id=0, begin=0x0, end=0x0, exclusive=false, disallow_trivial_move=false) at /my/maria-10.2-spider/storage/rocksdb/rocksdb/db/db_impl_compaction_flush.cc:897
#5  0x00007fb19c957b33 in rocksdb::DBImpl::CompactRange (this=0x30ee550, options=..., column_family=0x3112790, begin=0x0, end=0x0) at /my/maria-10.2-spider/storage/rocksdb/rocksdb/db/db_impl_compaction_flush.cc:347
#6  0x00007fb19cbaedf0 in rocksdb::StackableDB::CompactRange (this=0x3139230, options=..., column_family=0x3112790, begin=0x0, end=0x0) at /my/maria-10.2-spider/storage/rocksdb/rocksdb/include/rocksdb/utilities/stackable_db.h:202
#7  0x00007fb19c831355 in myrocks::rocksdb_compact_column_family (thd=0x7fb16c000a98, var=0x7fb19d1c2c60 <myrocks::mysql_sysvar_compact_cf>, var_ptr=0x7fb16c13a5f8, value=0x7fb195a79360) at /my/maria-10.2-spider/storage/rocksdb/ha_rocksdb.cc:220
#8  0x000000000071d2af in sys_var_pluginvar::do_check (this=0x30e0540, thd=0x7fb16c000a98, var=0x7fb16c13a5d0) at /my/maria-10.2-spider/sql/sql_plugin.cc:3425
#9  0x0000000000645ba0 in sys_var::check (this=0x30e0540, thd=0x7fb16c000a98, var=0x7fb16c13a5d0) at /my/maria-10.2-spider/sql/set_var.cc:248
#10 0x00000000006474de in set_var::check (this=0x7fb16c13a5d0, thd=0x7fb16c000a98) at /my/maria-10.2-spider/sql/set_var.cc:777
#11 0x00000000006471cc in sql_set_variables (thd=0x7fb16c000a98, var_list=0x7fb16c005480, free=true) at /my/maria-10.2-spider/sql/set_var.cc:719
#12 0x0000000000703641 in mysql_execute_command (thd=0x7fb16c000a98) at /my/maria-10.2-spider/sql/sql_parse.cc:4816
#13 0x000000000070cc1b in mysql_parse (thd=0x7fb16c000a98, rawbuf=0x7fb16c137930 "set global rocksdb_compact_cf = 'cf1'", length=37, parser_state=0x7fb195a7a1d0, is_com_multi=false, is_next_command=false) at /my/maria-10.2-spider/sql/sql_parse.cc:7861



 Comments   
Comment by Sergei Petrunia [ 2017-11-13 ]

Not reproduced in buildbot, and my attempt to reproduce locally was not successful, either.

Comment by Sergei Petrunia [ 2018-05-11 ]

Got a machine with OpenSUSE (like Monty has), but still wasnt able to reproduce

Generated at Thu Feb 08 08:12:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.