Skip to content

Instantly share code, notes, and snippets.

- TARANTOOL_SLAB_ALLOC_ARENA=30
- TARANTOOL_SLAB_ALLOC_MINIMAL=16
- TARANTOOL_SLAB_ALLOC_MAXIMAL=1048576
- TARANTOOL_SLAB_ALLOC_FACTOR=1.06
Segmentation fault
code: SEGV_MAPERR
addr: 0x10000001b
context: 0x7fa0a155f780
siginfo: 0x7fa0a155f8b0
rax 0x55d7a1563678 94384613111416
rbx 0x7f9918c27433 140295522120755
rcx 0x1 1\n
rdx 0x7f9b2f5db6de 140304491329246
rsi 0x7f9b2f5db6de 140304491329246
function on_before_poned_replace (old, new)
if new and old and #new >= 8 and new[2] == old[2] and new[4] == old[4] and new[8] == old[8] then
log.info('found duplicate tuple skipping')
log.info('old '..tostring(old))
log.info('new '..tostring(new))
return old
end
return
end
@donmikel
donmikel / pprof
Created June 7, 2018 08:53
pprof
# To display the perf.data header info, please use --header/--header-only options.
#
#
# Total Lost Samples: 0
#
# Samples: 23K of event 'cycles'
# Event count (approx.): 17164670494
#
# Children Self Samples Command Shared Object Symbol
# ........ ........ ............ ......... ................... ............................................................................................................................................................................................................................................................................................................
@donmikel
donmikel / query.sql
Created February 14, 2018 14:43
Clickhouse request
SELECT
sum(step1_index != 0) as CTO,
sum(step2_index != 0) as GCO,
sum(step3_index != 0) as ATB,
sum(step4_index != 0) as BK1,
sum(step5_index != 0) as BKD,
sum(step6_index != 0) as BKP,
sum(step7_index != 0) as ORC
2017-11-30 14:44:23.118 [1] main/104/applier/10.20.12.243:3401 I> remote master is 1.7.5 at 10.20.12.243:3401
2017-11-30 14:44:23.118 [1] main/104/applier/10.20.12.243:3401 I> authenticated
2017-11-30 14:44:23.118 [1] main/101/tarantool-entrypoint.lua I> bootstrapping replica from 10.20.12.243:3401
2017-11-30 14:44:23.129 [1] main/104/applier/10.20.12.243:3401 I> can't read row
2017-11-30 14:44:23.129 [1] main/104/applier/10.20.12.243:3401 key_def.h:309 E> ER_FIELD_TYPE: Tuple field 6 type does not match one required by operation: expected string
2017-11-30 14:44:23.129 [1] main/101/tarantool-entrypoint.lua key_def.h:309 E> ER_FIELD_TYPE: Tuple field 6 type does not match one required by operation: expected string
2017-11-30 14:44:23.129 [1] main/101/tarantool-entrypoint.lua F> can't initialize storage: Tuple field 6 type does not match one required by operation: expected string
Segmentation fault
Current time: 1511256077
Please file a bug at http://github.com/tarantool/tarantool/issues
Attempting backtrace... Note: since the server has already crashed,
this may fail as well
#0 0x5596db4c6239 in print_backtrace+9
#1 0x5596db3f4349 in _ZL12sig_fatal_cbi+89
#2 0x7f193f090e17 in sigwaitinfo+8
#3 0x5596db5214ab in lj_ccall_func+3db
#4 0x5596db535e26 in lj_cf_ffi_meta___call+36
2017-07-24 09:34:02.1637 ERROR WEB701 | Timeout while inspecting metadata; this may indicate a deadlock. This can often be avoided by preparing necessary serializers during application initialization, rather than allowing multiple threads to perform the initial metadata inspection; please also see the LockContended event (System.Collections.Generic.List`1[[Domain.MainModule.Entities.ProductComments.GoodsQuestion, Domain.MainModule.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]) | в ProtoBuf.Meta.RuntimeTypeModel.GetKey(Type type, Boolean demand, Boolean getBaseKey) в c:\Dev\protobuf-net\protobuf-net\Meta\RuntimeTypeModel.cs:строка 737
в ProtoBuf.Meta.TypeModel.GetKey(Type& type) в c:\Dev\protobuf-net\protobuf-net\Meta\TypeModel.cs:строка 1224
в ProtoBuf.Meta.TypeModel.SerializeCore(ProtoWriter writer, Object value) в c:\Dev\protobuf-net\protobuf-net\Meta\TypeModel.cs:строка 182
в ProtoBuf.Meta.TypeModel.Serialize(Stream dest, Object value, SerializationContext context) в c:\Dev\
Loading existing configuration file: /etc/tarantool/config.yml
Config:
---
replication_source:
- 10.10.12.243:3399
- 10.10.12.243:3400
- 10.20.12.243:3399
- 10.20.12.243:3400
- 10.20.12.243:3402
- 10.20.12.143:3399
Dropped 523 nodes (cum <= 0.18s)
flat flat% sum% cum cum%
5.47s 15.27% 15.27% 5.47s 15.27% fetestexcept
3.76s 10.49% 25.76% 3.76s 10.49% free
2.11s 5.89% 31.65% 2.11s 5.89% memchr
1.84s 5.14% 36.78% 1.84s 5.14% __expand_heap
1.83s 5.11% 41.89% 1.83s 5.11% malloc
1.35s 3.77% 45.66% 1.35s 3.77% __clone
1.28s 3.57% 49.23% 7.12s 19.87% <unknown>
0.75s 2.09% 51.33% 0.75s 2.09% std::__cxx11::basic_string::find_first_of