You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR addresses multiple issues:
* Host sanitization was dependent on cell peer hostnames having the same length. The fallback was the local host name, which is different for different peers and can lead to snapshot mismatch.
* The sanitized host attribute is only **serialized** when running under error sanitizer guard. However, response errors aren't serialized in `Automaton`, so right now all such errors are returned to the user without the host attribute. Conversely, PRK serialization is performed in `Automaton`, so we were storing the potentially differing host names :)
The new approach uses the address of the leading peer in the cell as the sanitized host name, and a fixed placeholder if it is not possible to determine it for some reason. This way we don't need additional options for cellar nodes, since the leader is handling all requests and sanitization is not poisoning any errors.
Additionally, the host attribute is always serialized into errors, if available, same as datetime.
Also deletes `SanitizeLocalHostName` helper and corresponding unittest as obsolete.
---
Pull Request resolved: ytsaurus/ytsaurus#908
commit_hash:04cb44b995e467540d5921d2bf90f2d8c2ac2b06
0 commit comments