diff options
author | dcherednik <dcherednik@ydb.tech> | 2023-05-17 20:50:29 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2023-05-17 20:50:29 +0300 |
commit | 1ae414d53159cbb50c7bc23d2a6f873a9dae99fa (patch) | |
tree | 79a5e290778a7f86cda20f3ce5ae6e1adfb22377 | |
parent | eebe4586ba2765b7f9bc957283ea90f22f023770 (diff) | |
download | ydb-1ae414d53159cbb50c7bc23d2a6f873a9dae99fa.tar.gz |
Temporarily disable channel pool for asan sdk build to workaround leak at grpc client stop.
-rw-r--r-- | ydb/public/sdk/cpp/client/impl/ydb_internal/internal_header.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ydb/public/sdk/cpp/client/impl/ydb_internal/internal_header.h b/ydb/public/sdk/cpp/client/impl/ydb_internal/internal_header.h index dce5d14301f..acd8f23824e 100644 --- a/ydb/public/sdk/cpp/client/impl/ydb_internal/internal_header.h +++ b/ydb/public/sdk/cpp/client/impl/ydb_internal/internal_header.h @@ -1,5 +1,7 @@ #pragma once +#include <util/system/compiler.h> + #if !defined(INCLUDE_YDB_INTERNAL_H) #error "you are trying to use internal ydb header" #endif // INCLUDE_YDB_INTERNAL_H @@ -9,3 +11,10 @@ // This macro is used for grpc debug purpose only //#define YDB_GRPC_BYPASS_CHANNEL_POOL + +// gRpc issue temporal workaround. +// In case of early TryCancel call and sharing shannel interfaces +// grpc doesn`t free allocated memory at the client shutdown +#if defined(_asan_enabled_) +#define YDB_GRPC_BYPASS_CHANNEL_POOL +#endif |