This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add unit test of whitelist & fix bug (#228)
- Loading branch information
Showing
11 changed files
with
324 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
config-test.ini -core.corrupt_message:core.aio*:core.operation_failed:tools_hpc.* | ||
config-test-sim.ini -core.corrupt_message:core.aio*:core.operation_failed:tools_hpc.* | ||
config-test-sim.ini -core.corrupt_message:core.aio*:core.operation_failed:tools_hpc.*:tools_simulator.* | ||
config-test-sim.ini tools_simulator.* | ||
config-test-posix-aio.ini core.aio*:core.operation_failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
[apps..default] | ||
run = true | ||
count = 1 | ||
;network.client.RPC_CHANNEL_TCP = dsn::tools::sim_network_provider, 65536 | ||
;network.client.RPC_CHANNEL_UDP = dsn::tools::sim_network_provider, 65536 | ||
;network.server.0.RPC_CHANNEL_TCP = dsn::tools::sim_network_provider, 65536 | ||
|
||
[apps.client] | ||
type = test | ||
arguments = localhost 20101 | ||
run = true | ||
ports = | ||
count = 1 | ||
delay_seconds = 1 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_DLOCK, THREAD_POOL_REPLICATION, THREAD_POOL_REPLICATION_LONG, THREAD_POOL_FDS_SERVICE | ||
|
||
[apps.server] | ||
type = test | ||
arguments = | ||
ports = 20101 | ||
run = false | ||
count = 0 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_REPLICATION | ||
|
||
[apps.add_server] | ||
type = adder | ||
arguments = | ||
ports = 20201 | ||
run = true | ||
count = 3 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_DLOCK | ||
|
||
[apps.test_worker] | ||
type = worker | ||
arguments = | ||
ports = 40001 | ||
run = true | ||
count = 1 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_FD | ||
|
||
[apps.test_master] | ||
type = master | ||
#whitelist port,port,... | ||
arguments = whitelist 22222 | ||
ports = 30001 | ||
run = true | ||
count = 3 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_FD | ||
|
||
[core] | ||
;tool = simulator | ||
tool = nativerun | ||
|
||
;toollets = tracer, profiler | ||
;fault_injector | ||
pause_on_start = false | ||
|
||
logging_start_level = LOG_LEVEL_INFORMATION | ||
logging_factory_name = dsn::tools::simple_logger | ||
|
||
;io_mode = IOE_PER_NODE | ||
io_mode = IOE_PER_QUEUE | ||
io_worker_count = 1 | ||
|
||
[tools.simple_logger] | ||
fast_flush = true | ||
short_header = false | ||
stderr_start_level = LOG_LEVEL_WARNING | ||
|
||
[tools.simulator] | ||
random_seed = 0 | ||
|
||
[tools.screen_logger] | ||
short_header = false | ||
|
||
[network] | ||
; how many network threads for network library (used by asio) | ||
io_service_worker_count = 2 | ||
|
||
[task..default] | ||
is_trace = true | ||
is_profile = true | ||
allow_inline = false | ||
rpc_call_channel = RPC_CHANNEL_TCP | ||
rpc_message_header_format = dsn | ||
rpc_timeout_milliseconds = 5000 | ||
|
||
[task.LPC_AIO_IMMEDIATE_CALLBACK] | ||
is_trace = false | ||
is_profile = false | ||
allow_inline = false | ||
|
||
[task.LPC_RPC_TIMEOUT] | ||
is_trace = false | ||
is_profile = false | ||
|
||
; specification for each thread pool | ||
[threadpool..default] | ||
worker_count = 2 | ||
|
||
[threadpool.THREAD_POOL_DEFAULT] | ||
partitioned = false | ||
worker_priority = THREAD_xPRIORITY_NORMAL | ||
|
||
[threadpool.THREAD_POOL_TEST_SERVER] | ||
partitioned = false | ||
|
||
[threadpool.THREAD_POOL_FDS_SERVICE] | ||
worker_count = 8 | ||
|
||
[threadpool.THREAD_POOL_DLOCK] | ||
partitioned = true | ||
|
||
[zookeeper] | ||
hosts_list = localhost:12181 | ||
timeout_ms = 30000 | ||
logfile = zoolog.log | ||
|
||
[fds_concurrent_test] | ||
total_files = 64 | ||
min_size = 100 | ||
max_size = 150 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
[apps..default] | ||
run = true | ||
count = 1 | ||
;network.client.RPC_CHANNEL_TCP = dsn::tools::sim_network_provider, 65536 | ||
;network.client.RPC_CHANNEL_UDP = dsn::tools::sim_network_provider, 65536 | ||
;network.server.0.RPC_CHANNEL_TCP = dsn::tools::sim_network_provider, 65536 | ||
|
||
[apps.client] | ||
type = test | ||
arguments = localhost 20101 | ||
run = true | ||
ports = | ||
count = 1 | ||
delay_seconds = 1 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_DLOCK, THREAD_POOL_REPLICATION, THREAD_POOL_REPLICATION_LONG, THREAD_POOL_FDS_SERVICE | ||
|
||
[apps.server] | ||
type = test | ||
arguments = | ||
ports = 20101 | ||
run = false | ||
count = 0 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_REPLICATION | ||
|
||
[apps.add_server] | ||
type = adder | ||
arguments = | ||
ports = 20201 | ||
run = true | ||
count = 3 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_DLOCK | ||
|
||
[apps.test_worker] | ||
type = worker | ||
arguments = | ||
ports = 40001 | ||
run = true | ||
count = 1 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_FD | ||
|
||
[apps.test_master] | ||
type = master | ||
#whitelist port,port,... | ||
arguments = whitelist 40001 | ||
ports = 30001 | ||
run = true | ||
count = 3 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_FD | ||
|
||
[core] | ||
;tool = simulator | ||
tool = nativerun | ||
|
||
;toollets = tracer, profiler | ||
;fault_injector | ||
pause_on_start = false | ||
|
||
logging_start_level = LOG_LEVEL_INFORMATION | ||
logging_factory_name = dsn::tools::simple_logger | ||
|
||
;io_mode = IOE_PER_NODE | ||
io_mode = IOE_PER_QUEUE | ||
io_worker_count = 1 | ||
|
||
[tools.simple_logger] | ||
fast_flush = true | ||
short_header = false | ||
stderr_start_level = LOG_LEVEL_WARNING | ||
|
||
[tools.simulator] | ||
random_seed = 0 | ||
|
||
[tools.screen_logger] | ||
short_header = false | ||
|
||
[network] | ||
; how many network threads for network library (used by asio) | ||
io_service_worker_count = 2 | ||
|
||
[task..default] | ||
is_trace = true | ||
is_profile = true | ||
allow_inline = false | ||
rpc_call_channel = RPC_CHANNEL_TCP | ||
rpc_message_header_format = dsn | ||
rpc_timeout_milliseconds = 5000 | ||
|
||
[task.LPC_AIO_IMMEDIATE_CALLBACK] | ||
is_trace = false | ||
is_profile = false | ||
allow_inline = false | ||
|
||
[task.LPC_RPC_TIMEOUT] | ||
is_trace = false | ||
is_profile = false | ||
|
||
; specification for each thread pool | ||
[threadpool..default] | ||
worker_count = 2 | ||
|
||
[threadpool.THREAD_POOL_DEFAULT] | ||
partitioned = false | ||
worker_priority = THREAD_xPRIORITY_NORMAL | ||
|
||
[threadpool.THREAD_POOL_TEST_SERVER] | ||
partitioned = false | ||
|
||
[threadpool.THREAD_POOL_FDS_SERVICE] | ||
worker_count = 8 | ||
|
||
[threadpool.THREAD_POOL_DLOCK] | ||
partitioned = true | ||
|
||
[zookeeper] | ||
hosts_list = localhost:12181 | ||
timeout_ms = 30000 | ||
logfile = zoolog.log | ||
|
||
[fds_concurrent_test] | ||
total_files = 64 | ||
min_size = 100 | ||
max_size = 150 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
config-test.ini distributed_lock_service_zookeeper.simple_lock_unlock | ||
config-test.ini -distributed_lock_service_zookeeper.simple_lock_unlock:fd.not_in_whitelist | ||
config-whitelist-test.ini -distributed_lock_service_zookeeper.simple_lock_unlock:fd.not_in_whitelist | ||
config-whitelist-test-failed.ini fd.not_in_whitelist |
Oops, something went wrong.