<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/library/cpp/yt/error, branch main</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=main</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2026-06-06T22:31:50Z</updated>
<entry>
<title>YT-22593: Reduce TString usage in core/misc</title>
<updated>2026-06-06T22:31:50Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-06-06T22:15:06Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=ffc038d5a916cec181915795ca4b45f07ee2ae05'/>
<id>urn:sha1:ffc038d5a916cec181915795ca4b45f07ee2ae05</id>
<content type='text'>
commit_hash:ba8c42476d6274212745348071682042e780037f
</content>
</entry>
<entry>
<title>Cache process/thread id getters and use them in TError origin capture</title>
<updated>2026-06-06T21:16:49Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-06-06T20:52:00Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=f10c7206fb31af8057446bceef9707aabaa9456e'/>
<id>urn:sha1:f10c7206fb31af8057446bceef9707aabaa9456e</id>
<content type='text'>
## Motivation
Profiling the YT master Automaton thread showed TOriginAttributes::Capture (run on every non-OK TError) spending ~60% of its time in a getpid() syscall — uncached on glibc &gt;= 2.25. NYT::GetCurrentThreadId() (gettid) feeds hot thread-affinity / log-manager checks on the same thread.

## Changes
- New library/cpp/yt/system/process_id.* with cached GetProcessId(); GetSystemThreadId() now caches the kernel tid in TLS. Both caches reset in the child after fork.
- Moved thread_name.{h,cpp} from misc to system.
- Removed GetCurrentProcessId/GetCurrentThreadId shims from yt/yt/core/misc/proc.{h,cpp}; migrated all callers to NYT::GetProcessId / NYT::GetSystemThreadId.
- TOriginAttributes::Capture uses the cached getters; recorded Tid is now the real kernel tid (matches perf/ps).
- Added microbenchmarks (library/cpp/yt/system/benchmarks, yt/yt/core/benchmarks/error.cpp).

## Microbenchmarks (release)
| | before | after |
|---|---|---|
| getpid | 101 ns | 0.33 ns |
| gettid | 102 ns | 1.64 ns |
| Capture | 161 ns | 50 ns |
| failed TError | 221 ns | 74 ns |
commit_hash:ee37ae57d61a5a2dd33daee935270f4bb93b7ff9
</content>
</entry>
<entry>
<title>YT-26105: Make TError aware of ::TSystemError</title>
<updated>2026-05-25T08:19:52Z</updated>
<author>
<name>dann239</name>
<email>dann239@yandex-team.com</email>
</author>
<published>2026-05-25T07:58:24Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=b98aa1ad6a725444af35a0070e6dea6f2114f8d3'/>
<id>urn:sha1:b98aa1ad6a725444af35a0070e6dea6f2114f8d3</id>
<content type='text'>
commit_hash:ca6efe06865fe9fc9ebfd5ca8bbd79c2acbb4ff3
</content>
</entry>
<entry>
<title>YT: Add missing 16bit types to TErrorAttribute conversions</title>
<updated>2026-04-30T12:18:42Z</updated>
<author>
<name>dgolear</name>
<email>dgolear@yandex-team.com</email>
</author>
<published>2026-04-30T11:50:22Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=ff286f36b5f9efa572d1fecc8bed6ea553614716'/>
<id>urn:sha1:ff286f36b5f9efa572d1fecc8bed6ea553614716</id>
<content type='text'>
commit_hash:7e973890af2061e2a78b34d31c404f000375a88b
</content>
</entry>
<entry>
<title>Use implicit bool conversion for null check in origin_attributes.cpp</title>
<updated>2026-04-27T13:12:31Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-04-27T12:52:34Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=b36733c26de293fbc1562234f05ce2b41f7251a2'/>
<id>urn:sha1:b36733c26de293fbc1562234f05ce2b41f7251a2</id>
<content type='text'>
commit_hash:cc1f5b9ecc05f6b098f1645ba338fc644c0bb53f
</content>
</entry>
<entry>
<title>Increase default error attributes string truncation limit to 32K</title>
<updated>2026-04-17T21:44:40Z</updated>
<author>
<name>babenko</name>
<email>babenko@yandex-team.com</email>
</author>
<published>2026-04-17T21:05:14Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=e42e88962f914b154f2993ea19182f392f0a2bdf'/>
<id>urn:sha1:e42e88962f914b154f2993ea19182f392f0a2bdf</id>
<content type='text'>
commit_hash:da3595c17e930ef69088c3164f42adc50d57f283
</content>
</entry>
<entry>
<title>Fix some use-after-move bugs</title>
<updated>2026-04-17T13:37:33Z</updated>
<author>
<name>pavook</name>
<email>pavook@yandex-team.com</email>
</author>
<published>2026-04-17T12:40:13Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=70edb604e93a313f36e434fd25b312527d59f361'/>
<id>urn:sha1:70edb604e93a313f36e434fd25b312527d59f361</id>
<content type='text'>
commit_hash:4bc357937e76b2b082671bb0f67ac3012ee4dbca
</content>
</entry>
<entry>
<title>Add TErrorOr::ValueOrCrash</title>
<updated>2026-04-03T04:44:41Z</updated>
<author>
<name>dann239</name>
<email>dann239@yandex-team.com</email>
</author>
<published>2026-04-03T04:28:04Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=9cefd710e939e2e6e4ce1b91983e3b996d461837'/>
<id>urn:sha1:9cefd710e939e2e6e4ce1b91983e3b996d461837</id>
<content type='text'>
commit_hash:7a04b71703a53450dbaa8ec880141545e019a71e
</content>
</entry>
<entry>
<title>Intermediate changes</title>
<updated>2026-03-03T13:03:50Z</updated>
<author>
<name>robot-piglet</name>
<email>robot-piglet@yandex-team.com</email>
</author>
<published>2026-03-03T12:21:23Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=eb66a9584abe4b7eb91694cbefec33abe5a9b1d0'/>
<id>urn:sha1:eb66a9584abe4b7eb91694cbefec33abe5a9b1d0</id>
<content type='text'>
commit_hash:a66d1ef65085fb8e8bfe860b8b7a95cbc5793851
</content>
</entry>
<entry>
<title>Fixed error comparison</title>
<updated>2026-02-20T19:06:38Z</updated>
<author>
<name>mikari</name>
<email>mikari@yandex-team.com</email>
</author>
<published>2026-02-20T18:39:29Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=7ce6de4e577aa2d195fa5ec995df862c60484b63'/>
<id>urn:sha1:7ce6de4e577aa2d195fa5ec995df862c60484b63</id>
<content type='text'>
commit_hash:76b32cc3992d0c6ce820f0b52a06deade4fa7558
</content>
</entry>
</feed>
