Skip to content

Commit

Permalink
use sepecific timeout for generic queues (ydb-platform#6653) (ydb-pla…
Browse files Browse the repository at this point in the history
  • Loading branch information
iddqdex authored and uzhastik committed Oct 14, 2024
1 parent e3133f8 commit 0a0a443
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ydb/core/kqp/common/kqp_timeouts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ ui64 GetDefaultQueryTimeoutMs(NKikimrKqp::EQueryType queryType,
case NKikimrKqp::QUERY_TYPE_SQL_DML:
case NKikimrKqp::QUERY_TYPE_PREPARED_DML:
case NKikimrKqp::QUERY_TYPE_AST_DML:
return queryLimits.GetDataQueryTimeoutMs();
case NKikimrKqp::QUERY_TYPE_SQL_GENERIC_QUERY:
case NKikimrKqp::QUERY_TYPE_SQL_GENERIC_CONCURRENT_QUERY:
return queryLimits.GetDataQueryTimeoutMs();
return queryServiceConfig.GetQueryTimeoutDefaultSeconds() * 1000;

case NKikimrKqp::QUERY_TYPE_SQL_GENERIC_SCRIPT:
return queryServiceConfig.GetScriptOperationTimeoutDefaultSeconds()
Expand Down
1 change: 1 addition & 0 deletions ydb/core/protos/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ message TQueryServiceConfig {
optional NYql.TGenericGatewayConfig Generic = 11;
optional TFinalizeScriptServiceConfig FinalizeScriptServiceConfig = 12;
optional uint64 ProgressStatsPeriodMs = 14 [default = 0]; // 0 = disabled
optional uint32 QueryTimeoutDefaultSeconds = 19 [default = 1800];
optional bool EnableMatchRecognize = 20 [default = false];
}

Expand Down

0 comments on commit 0a0a443

Please sign in to comment.