]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/msgr: add unittest to simulate network block temporarily
authorVicente Cheng <vicente_cheng@bigtera.com>
Thu, 16 Dec 2021 03:20:05 +0000 (03:20 +0000)
committerVicente Cheng <freeze.bilsted@gmail.com>
Mon, 7 Feb 2022 02:09:38 +0000 (02:09 +0000)
commit62f0140d80a7564d3db377153a3cd87b3816d497
treecd8b9b49118370008b3881ce6bfa1d267aae9476
parent1d25e87ed32d72d77ea8e9eb2d391b8d98ecc5f7
test/msgr: add unittest to simulate network block temporarily

   Add new test case to verify the network block temporarily,
   that case would make outgoing_bl overflow so add the assert
   checking mechanism to claim_append

   Just use 2 connections because that we could not generate the
   large data set to verify it

   Simulate the EAGAIN situation looks like by skip calling
   cs.send() because EAGAIN would return size 0 and keep the
   outgoing_bl

Signed-off-by: Vicente Cheng <vicente_cheng@bigtera.com>
src/common/buffer.cc
src/common/options/global.yaml.in
src/msg/async/AsyncConnection.cc
src/msg/async/AsyncConnection.h
src/test/msgr/test_msgr.cc