Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix allow_inline bug; remove fast_execution_in_network_thread in config
Browse files Browse the repository at this point in the history
  • Loading branch information
qinzuoyan committed Jul 12, 2016
1 parent 64ecbc4 commit 2e43e94
Show file tree
Hide file tree
Showing 77 changed files with 7 additions and 114 deletions.
3 changes: 1 addition & 2 deletions include/dsn/internal/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ class rpc_request_task : public task, public transient_object
rpc_request_task(message_ex* request, rpc_handler_info* h, service_node* node);
~rpc_request_task();

message_ex* get_request() const
{ return _request; }
message_ex* get_request() const { return _request; }

void enqueue() override;

Expand Down
1 change: 0 additions & 1 deletion src/apps/echo.csharp/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_call_header_format_name = dsn
rpc_timeout_milliseconds = 5000
perf_test_rounds = 10000
Expand Down
36 changes: 0 additions & 36 deletions src/apps/echo/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ message_crc_required = false
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

;
is_profile = true
Expand Down Expand Up @@ -273,8 +271,6 @@ is_trace = false
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -296,8 +292,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -319,8 +313,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -342,8 +334,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -365,8 +355,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -388,8 +376,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -411,8 +397,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -434,8 +418,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -457,8 +439,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

;
is_profile = false
Expand Down Expand Up @@ -486,8 +466,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -509,8 +487,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -532,8 +508,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; byte size of each rpc request test
perf_test_payload_bytes =
Expand Down Expand Up @@ -561,8 +535,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -584,8 +556,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -607,8 +577,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -630,8 +598,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand All @@ -653,8 +619,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false

; whether the rpc task can be executed in network threads directly
fast_execution_in_network_thread = false

; thread pool to execute the task
pool_code =
Expand Down
1 change: 0 additions & 1 deletion src/apps/nfs_test/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/apps/skv.dll/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/apps/skv/config-docker.ini
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/apps/skv/config-zk.ini
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/apps/skv/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000
rpc_message_delay_ms_min = 1
Expand Down
1 change: 0 additions & 1 deletion src/apps/skv/config.l1.ini
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/apps/skv/perf-config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/apps/skv/vconfig.ini
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
8 changes: 6 additions & 2 deletions src/core/core/task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,12 @@ void task::enqueue(task_worker_pool* pool)
{
tools::node_scoper ns(_node);
exec_internal();
return;
}
else
{
exec_internal();
return;
}

//if (_spec->type == TASK_TYPE_COMPUTE)
Expand All @@ -474,12 +476,13 @@ void task::enqueue(task_worker_pool* pool)
// {
// tools::node_scoper ns(_node);
// exec_internal();
// return;
// }
// else
// {
// exec_internal();
// return;
// }
// return;
//}

//// io tasks only inlined in io threads
Expand Down Expand Up @@ -540,7 +543,8 @@ rpc_request_task::rpc_request_task(message_ex* request, rpc_handler_info* h, ser
: task(dsn_task_code_t(h->code), // it is possible that request->local_rpc_code != h->code when it is handled in frameworks
nullptr,
[](void*) { dassert(false, "rpc request task cannot be cancelled"); },
static_cast<int>(request->header->client.hash), node),
static_cast<int>(request->header->client.hash),
node),
_request(request),
_handler(h),
_enqueue_ts_ns(0)
Expand Down
1 change: 0 additions & 1 deletion src/core/perf.tests/config-test.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/core/tests/config-test-corrupt-message.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 1000

Expand Down
1 change: 0 additions & 1 deletion src/core/tests/config-test-fastrun.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 1000

Expand Down
1 change: 0 additions & 1 deletion src/core/tests/config-test-posix-aio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 1000

Expand Down
1 change: 0 additions & 1 deletion src/core/tests/config-test-sim.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 1000

Expand Down
1 change: 0 additions & 1 deletion src/core/tests/config-test.ini
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 1000

Expand Down
1 change: 0 additions & 1 deletion src/dist/app_daemon/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/dist/cluster_scheduler/docker/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/dist/cluster_scheduler/kubernetes/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/dist/deployment_service/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_call_header_format_name = dsn
rpc_timeout_milliseconds = 5000
perf_test_rounds = 10000
Expand Down
1 change: 0 additions & 1 deletion src/dist/replication/ddl_client/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_call_header_format_name = dsn
rpc_timeout_milliseconds = 5000

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/dist/replication/test/simple_kv/case-000.ini
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
1 change: 0 additions & 1 deletion src/dist/replication/test/simple_kv/case-001.ini
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ is_trace = true
is_profile = true
allow_inline = false
rpc_call_channel = RPC_CHANNEL_TCP
fast_execution_in_network_thread = false
rpc_message_header_format = dsn
rpc_timeout_milliseconds = 5000

Expand Down
Loading

0 comments on commit 2e43e94

Please sign in to comment.