diff options
| author | nadya73 <[email protected]> | 2024-12-03 10:53:54 +0300 |
|---|---|---|
| committer | nadya73 <[email protected]> | 2024-12-03 11:42:27 +0300 |
| commit | 9139eccde1e2b98b45e949b4da2e73af59eec1e6 (patch) | |
| tree | 18c7101809cba1964fd10c6fd7ba25fe373d1f75 /yt/python | |
| parent | ee6fb9c6075c7ace663657969cd59005b5d0b656 (diff) | |
YT-23651: Make retriable memory pressure RPC client error
* Changelog entry
Type: fix
Component: proxy
If there is no enough memory to handle RPC responses, retryable error (`Unavailable`) will be returned (instead of non-retryable error `*MemoryPressure`).
commit_hash:b97aed2add67f1c9261b2485fe89dd698a18d84b
Diffstat (limited to 'yt/python')
| -rw-r--r-- | yt/python/yt/common.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yt/python/yt/common.py b/yt/python/yt/common.py index 5d251f17d0f..08c41bc8107 100644 --- a/yt/python/yt/common.py +++ b/yt/python/yt/common.py @@ -260,6 +260,10 @@ class YtError(Exception): """Rpc unavailable.""" return self.contains_code(105) + def is_rpc_response_memory_pressure(self): + """Rpc response memory pressure.""" + return self.contains_code(122) + def is_master_communication_error(self): """Master communication error.""" return self.contains_code(712) |
