Skip to content

v4.0.9 upgrade to v6.2.0 fail, tiflash report :Exception: sched_setaffinity fail: Invalid argument #5457

@seiya-annie

Description

@seiya-annie

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. install v4.0.9 tidb cluster with tiflash node.
    config:
    storage.main.dir:
    • /tiup/data/tiflash-9000
      learner_config:
      server.labels:
      host: tiup-peer
      zone: az1
  2. upgrade this cluster to v6.2.0

2. What did you expect to see? (Required)

upgrade successfully

3. What did you see instead (Required)

[2022/07/25 10:35:43.647 +08:00] [ERROR] [BaseDaemon.cpp:377] [BaseDaemon:########################################] [thread_id=61]
[2022/07/25 10:35:43.647 +08:00] [ERROR] [BaseDaemon.cpp:378] ["BaseDaemon:(from thread 11) Received signal Aborted(6)."] [thread_id=61]
[2022/07/25 10:35:43.647 +08:00] [ERROR] [BaseDaemon.cpp:369] ["BaseDaemon:(from thread 5) Terminate called after throwing an instance of DB::Exception
Code: 0, e.displayText() = DB::Exception: sched_setaffinity fail: Invalid argument, e.what() = DB::Exception
Stack trace:
       0x65a192d\tterminate_handler() [tiflash+106567981]
                \tlibs/libdaemon/src/BaseDaemon.cpp:634
  0x7fc6d1ff5a13\tstd::__terminate(void (*)()) [libc++abi.so.1+236051]
  0x7fc6d1ff8736\t__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) [libc++abi.so.1+247606]
  0x7fc6d1ff86d0\t__cxa_throw [libc++abi.so.1+247504]
       0x72d91dc\tDB::DM::SegmentReader::run() [tiflash+120426972]
                \tdbms/src/Storages/DeltaMerge/ReadThread/SegmentReader.cpp:145
       0x72d98e2\tvoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (DB::DM::SegmentReader::*)(), DB::DM::SegmentReader*> >(void*) [tiflash+120428770]
                \t/usr/local/bin/../include/c++/v1/thread:291
  0x7fc6cdec7ea5\tstart_thread ["] [thread_id=61]
[2022/07/25 10:35:43.647 +08:00] [ERROR] [BaseDaemon.cpp:377] [BaseDaemon:########################################] [thread_id=61]
[2022/07/25 10:35:43.647 +08:00] [ERROR] [BaseDaemon.cpp:378] ["BaseDaemon:(from thread 5) Received signal Aborted(6)."] [thread_id=61]

4. What is your TiFlash version? (Required)

[root@tiup-0 tiflash]# ./tiflash --version
<jemalloc>: Number of CPUs detected is not deterministic. Per-CPU arena disabled.
TiFlash
Release Version: v6.2.0
Edition:         Community
Git Commit Hash: f11c6c49354f7b7188fce6d5c8640bf5e3f762fb
Git Branch:      heads/refs/tags/v6.2.0
UTC Build Time:  2022-07-22 03:06:59
Enable Features: jemalloc avx avx512 unwind thinlto
Profile:         RELWITHDEBINFO

Raft Proxy
Git Commit Hash:   cdd5996980ecbe5e8d9fe597ec620a5fe394d586
Git Commit Branch: HEAD
UTC Build Time:    2022-07-22 03:10:20
Rust Version:      rustc 1.60.0-nightly (1e12aef3f 2022-02-13)
Storage Engine:    tiflash
Prometheus Prefix: tiflash_proxy_
Profile:           release
[root@tiup-0 tiflash]# 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions