Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

test RPC cancelation to live rank#297

Open
yulujia wants to merge 2 commits intomasterfrom
test-cancel-rpc-to-live-rank
Open

test RPC cancelation to live rank#297
yulujia wants to merge 2 commits intomasterfrom
test-cancel-rpc-to-live-rank

Conversation

@yulujia
Copy link
Copy Markdown
Contributor

@yulujia yulujia commented Dec 4, 2019

launch two ranks, rank A sends an RPC to a live rank B. Cancel it before
receiving the reply. both ranks should shutdown cleanly.

launch two ranks, rank A sends an RPC to a live rank B. Cancel it before
receiving the reply. both ranks should shutdown cleanly.

Signed-off-by: Yulu Jia <yulu.jia@intel.com>
Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

void
test_checkin_handler(crt_rpc_t *rpc_req)
{
// x2682 add a 60s delay, and set the global timeout to 5 seconds
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) do not use C99 // comments

((d_string_t) (name) CRT_VAR) \
((bool) (bool_val) CRT_VAR)

#define CRT_OSEQ_TEST_PING_CHECK /* output fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) Macros with complex values should be enclosed in parentheses

}
}

void crt_swim_disable_all(void);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) externs should be avoided in .c files


struct test_t test_g = { .t_hold_time = 0, .t_ctx_num = 1, .t_roomno = 1082 };

#define CRT_ISEQ_TEST_PING_CHECK /* input fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) Macros with complex values should be enclosed in parentheses

# -x FI_LOG_LEVEL=debug \

(orterun --mca mtl ^psm2,ofi --enable-recovery \
--output-filename $PWD/logs/live-rank \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lint) Double quote to prevent globbing and word splitting. [SC2086]

export PATH=./install/Linux/TESTING/tests/:$PATH
set -ex

mkdir -p $PWD/logs/live-rank
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lint) Double quote to prevent globbing and word splitting. [SC2086]

set -ex

mkdir -p $PWD/logs/live-rank
rm -rf $PWD/logs/live-rank/*
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lint) Double quote to prevent globbing and word splitting. [SC2086]

--output-filename $PWD/logs/live-rank \
--report-uri ~/uri.txt \
-x CRT_TIMEOUT=5 \
-x D_LOG_FILE=$PWD/logs/test-cancel-rpc-to-live-rank.log \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lint) Double quote to prevent globbing and word splitting. [SC2086]

-x CRT_CTX_NUM=2 \
-np 2 \
./install/Linux/TESTING/tests/test_cancel_rpc_to_live_rank \
--name service-group --is_service --c 2)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) trailing whitespace

@daosbuild1
Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 dismissed their stale review December 12, 2019 17:54

Updated patch

Copy link
Copy Markdown
Collaborator

@daosbuild1 daosbuild1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

void
test_checkin_handler(crt_rpc_t *rpc_req)
{
// x2682 add a 60s delay, and set the global timeout to 5 seconds
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) do not use C99 // comments

((d_string_t) (name) CRT_VAR) \
((bool) (bool_val) CRT_VAR)

#define CRT_OSEQ_TEST_PING_CHECK /* output fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) Macros with complex values should be enclosed in parentheses

}
}

void crt_swim_disable_all(void);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) externs should be avoided in .c files


struct test_t test_g = { .t_hold_time = 0, .t_ctx_num = 1, .t_roomno = 1082 };

#define CRT_ISEQ_TEST_PING_CHECK /* input fields */ \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) Macros with complex values should be enclosed in parentheses

# -x FI_LOG_LEVEL=debug \

(orterun --mca mtl ^psm2,ofi --enable-recovery \
--output-filename $PWD/logs/live-rank \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lint) Double quote to prevent globbing and word splitting. [SC2086]

export PATH=./install/Linux/TESTING/tests/:$PATH
set -ex

mkdir -p $PWD/logs/live-rank
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lint) Double quote to prevent globbing and word splitting. [SC2086]

set -ex

mkdir -p $PWD/logs/live-rank
rm -rf $PWD/logs/live-rank/*
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lint) Double quote to prevent globbing and word splitting. [SC2086]

--output-filename $PWD/logs/live-rank \
--report-uri ~/uri.txt \
-x CRT_TIMEOUT=5 \
-x D_LOG_FILE=$PWD/logs/test-cancel-rpc-to-live-rank.log \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(lint) Double quote to prevent globbing and word splitting. [SC2086]

-x CRT_CTX_NUM=2 \
-np 2 \
./install/Linux/TESTING/tests/test_cancel_rpc_to_live_rank \
--name service-group --is_service --c 2)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(style) trailing whitespace

@daosbuild1
Copy link
Copy Markdown
Collaborator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants