Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UT]member_change_test #1490

Closed
Shylock-Hg opened this issue Dec 20, 2019 · 2 comments
Closed

[UT]member_change_test #1490

Shylock-Hg opened this issue Dec 20, 2019 · 2 comments

Comments

@Shylock-Hg
Copy link
Contributor

Describe the bug (must be provided)

49/105 Testing: member_change_test
49/105 Test: member_change_test
Command: "/home/shylock.huang/nebula/_build/src/kvstore/raftex/test/_build/member_change_test"
Directory: /home/shylock.huang/nebula/_build/src/kvstore/raftex/test
"member_change_test" start time: Dec 20 19:25 CST
Output:
----------------------------------------------------------
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from MemberChangeTest
[ RUN      ] MemberChangeTest.AddRemovePeerTest
I1220 19:25:28.770184  3868 RaftexService.cpp:65] Init thrift server for raft service.
I1220 19:25:28.782443  4081 RaftexService.cpp:99] Starting the Raftex Service
I1220 19:25:29.005857  4081 RaftexService.cpp:87] Starting the Raftex Service on 35321
I1220 19:25:29.005882  4081 RaftexService.cpp:111] Start the Raftex Service successfully
I1220 19:25:29.006039  3868 RaftexService.cpp:65] Init thrift server for raft service.
I1220 19:25:29.011502  5939 RaftexService.cpp:99] Starting the Raftex Service
I1220 19:25:29.104609  5939 RaftexService.cpp:87] Starting the Raftex Service on 41501
I1220 19:25:29.104635  5939 RaftexService.cpp:111] Start the Raftex Service successfully
I1220 19:25:29.104768  3868 RaftexService.cpp:65] Init thrift server for raft service.
I1220 19:25:29.106437  6914 RaftexService.cpp:99] Starting the Raftex Service
I1220 19:25:29.161088  6914 RaftexService.cpp:87] Starting the Raftex Service on 36947
I1220 19:25:29.161118  6914 RaftexService.cpp:111] Start the Raftex Service successfully
I1220 19:25:29.161193  3868 RaftexService.cpp:65] Init thrift server for raft service.
I1220 19:25:29.164713  7956 RaftexService.cpp:99] Starting the Raftex Service
I1220 19:25:29.192422  7956 RaftexService.cpp:87] Starting the Raftex Service on 36439
I1220 19:25:29.192445  7956 RaftexService.cpp:111] Start the Raftex Service successfully
I1220 19:25:29.192646  3868 RaftPart.cpp:275] [Port: 35321, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 19:25:29.192664  3868 RaftPart.cpp:294] [Port: 35321, Space: 1, Part: 1] Add peer [127.0.0.1:41501]
I1220 19:25:29.192729  3868 RaftPart.cpp:294] [Port: 35321, Space: 1, Part: 1] Add peer [127.0.0.1:36947]
I1220 19:25:29.192878  3868 RaftPart.cpp:275] [Port: 41501, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 19:25:29.192890  3868 RaftPart.cpp:294] [Port: 41501, Space: 1, Part: 1] Add peer [127.0.0.1:35321]
I1220 19:25:29.192905  3868 RaftPart.cpp:294] [Port: 41501, Space: 1, Part: 1] Add peer [127.0.0.1:36947]
I1220 19:25:29.192983  3868 RaftPart.cpp:275] [Port: 36947, Space: 1, Part: 1] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0
I1220 19:25:29.192997  3868 RaftPart.cpp:294] [Port: 36947, Space: 1, Part: 1] Add peer [127.0.0.1:35321]
I1220 19:25:29.193011  3868 RaftPart.cpp:294] [Port: 36947, Space: 1, Part: 1] Add peer [127.0.0.1:41501]
I1220 19:25:29.193080  3868 RaftPart.cpp:275] [Port: 36439, Space: 1, Part: 1] There are 3 peer hosts, and total 4 copies. The quorum is 3, as learner 1
I1220 19:25:29.193094  3868 RaftPart.cpp:294] [Port: 36439, Space: 1, Part: 1] Add peer [127.0.0.1:35321]
I1220 19:25:29.193109  3868 RaftPart.cpp:294] [Port: 36439, Space: 1, Part: 1] Add peer [127.0.0.1:41501]
I1220 19:25:29.193122  3868 RaftPart.cpp:294] [Port: 36439, Space: 1, Part: 1] Add peer [127.0.0.1:36947]
I1220 19:25:29.387228  4078 RaftPart.cpp:961] [Port: 41501, Space: 1, Part: 1] Start leader election, reason: lastMsgDur 194, term 0
I1220 19:25:29.387286  4078 RaftPart.cpp:1052] [Port: 41501, Space: 1, Part: 1] Sending out an election request (space = 1, part = 1, term = 1, lastLogId = 0, lastLogTerm = 0, candidateIP = 127.0.0.1, candidatePort = 41501)
I1220 19:25:29.388353  6983 RaftPart.cpp:1215] [Port: 36947, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:41501, term = 1, lastLogId = 0, lastLogTerm = 0
I1220 19:25:29.388355  4140 RaftPart.cpp:1215] [Port: 35321, Space: 1, Part: 1] Recieved a VOTING request: space = 1, partition = 1, candidateAddr = 127.0.0.1:41501, term = 1, lastLogId = 0, lastLogTerm = 0
I1220 19:25:29.388414  6983 RaftPart.cpp:1235] [Port: 36947, Space: 1, Part: 1] The partition currently is a Follower
I1220 19:25:29.388422  4140 RaftPart.cpp:1235] [Port: 35321, Space: 1, Part: 1] The partition currently is a Follower
I1220 19:25:29.388433  6983 RaftPart.cpp:1290] [Port: 36947, Space: 1, Part: 1] The partition will vote for the candidate
I1220 19:25:29.388437  4140 RaftPart.cpp:1290] [Port: 35321, Space: 1, Part: 1] The partition will vote for the candidate
I1220 19:25:29.388447  6983 RaftPart.cpp:1319] [Port: 36947, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:41501]
I1220 19:25:29.388451  4140 RaftPart.cpp:1319] [Port: 35321, Space: 1, Part: 1] I was Follower, discover the new leader [127.0.0.1:41501]
I1220 19:25:29.388666  4078 RaftPart.cpp:1030] [Port: 41501, Space: 1, Part: 1] Partition is elected as the new leader for term 1
I1220 19:25:29.388681  4078 RaftPart.cpp:1112] [Port: 41501, Space: 1, Part: 1] The partition is elected as the leader
I1220 19:25:29.388743  4079 RaftexTestBase.cpp:53] [Port: 41501, Space: 1, Part: 1] I'm elected as the leader for the term 1
I1220 19:25:29.388896  6039 Host.cpp:144] [Port: 41501, Space: 1, Part: 1] [Host: 127.0.0.1:35321] This is the first time to send the logs to this host
I1220 19:25:29.389225  6039 Host.cpp:144] [Port: 41501, Space: 1, Part: 1] [Host: 127.0.0.1:36947] This is the first time to send the logs to this host
I1220 19:25:29.438915  3868 RaftPart.cpp:467] [Port: 41501, Space: 1, Part: 1] Add peer [127.0.0.1:36439]
I1220 19:25:29.438946  3868 TestShard.h:106] [Port: 41501, Space: 1, Part: 1] Add peer [127.0.0.1:36439]
I1220 19:25:29.439713  6070 Host.cpp:144] [Port: 41501, Space: 1, Part: 1] [Host: 127.0.0.1:36439] This is the first time to send the logs to this host
I1220 19:25:29.440337  8004 RaftPart.cpp:1570] [Port: 36439, Space: 1, Part: 1] The current role is Learner. Will follow the new leader 127.0.0.1:41501 [Term: 1]
I1220 19:25:29.440402  8004 RaftPart.cpp:1456] [Port: 36439, Space: 1, Part: 1] Local is missing logs from id 0. Need to catch up
I1220 19:25:29.440436  6983 RaftPart.cpp:467] [Port: 36947, Space: 1, Part: 1] Add peer [127.0.0.1:36439]
I1220 19:25:29.440462  6983 TestShard.h:106] [Port: 36947, Space: 1, Part: 1] Add peer [127.0.0.1:36439]
I1220 19:25:29.440933  8004 RaftPart.cpp:453] [Port: 36439, Space: 1, Part: 1] I am learner, promote myself to be follower
I1220 19:25:29.440946  8004 TestShard.h:106] [Port: 36439, Space: 1, Part: 1] Add peer [127.0.0.1:36439]
F1220 19:25:29.441155  3868 MemberChangeTest.cpp:46] Check failed: 3 == c->hosts_.size() (3 vs. 2) 
*** Check failure stack trace: ***
I1220 19:25:29.441414  4140 RaftPart.cpp:467] [Port: 35321, Space: 1, Part: 1] Add peer [127.0.0.1:36439]
I1220 19:25:29.442417  4140 TestShard.h:106] [Port: 35321, Space: 1, Part: 1] Add peer [127.0.0.1:36439]
    @           0xda45dd  google::LogMessage::Fail()
    @           0xda8b2c  google::LogMessage::SendToLog()
    @           0xda42dd  google::LogMessage::Flush()
    @           0xda4ac9  google::LogMessageFatal::~LogMessageFatal()
    @           0x9c0c55  nebula::raftex::MemberChangeTest_AddRemovePeerTest_Test::TestBody()
    @           0xc4350a  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0xc3affa  testing::Test::Run()
    @           0xc3b148  testing::TestInfo::Run()
    @           0xc3b225  testing::TestCase::Run()
    @           0xc3b6fc  testing::internal::UnitTestImpl::RunAllTests()
    @           0xc4398a  testing::internal::HandleExceptionsInMethodIfSupported<>()
    @           0xc3b7ef  testing::UnitTest::Run()
    @           0x9c29aa  RUN_ALL_TESTS()
    @           0x9c1cc9  main
    @     0x7f9d05a52413  __libc_start_main
    @           0x9c04be  _start
<end of output>
Test time =   0.94 sec
----------------------------------------------------------

Your Environments (must be provided)

  • OS: Linux hp-server 4.18.16-300.fc29.x86_64 Parser framework #1 SMP Sat Oct 20 23:24:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

  • Compliler:
    g++ (GCC) 8.2.0
    Copyright (C) 2018 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  • CPU:
    Architecture: x86_64
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Little Endian
    CPU(s): 40
    On-line CPU(s) list: 0-39
    Thread(s) per core: 2
    Core(s) per socket: 10
    Socket(s): 2
    NUMA node(s): 2
    Vendor ID: GenuineIntel
    CPU family: 6
    Model: 62
    Model name: Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
    Stepping: 4
    CPU MHz: 2992.975
    CPU max MHz: 3600.0000
    CPU min MHz: 1200.0000
    BogoMIPS: 5985.45
    Virtualization: VT-x
    L1d cache: 32K
    L1i cache: 32K
    L2 cache: 256K
    L3 cache: 25600K
    NUMA node0 CPU(s): 0-9,20-29
    NUMA node1 CPU(s): 10-19,30-39
    Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts flush_l1d

  • Commit id (e.g. a3ffc7d8)
    5e1ee28
    How To Reproduce(must be provided)

Expected behavior

Additional context

@Shylock-Hg
Copy link
Contributor Author

#1306

@whitewum whitewum pinned this issue Dec 26, 2019
@whitewum whitewum unpinned this issue Dec 26, 2019
@CPWstatic
Copy link
Contributor

Please submit a new issue if we still have this problem in version2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants