Writes to the side table re-use a BufBuilder to write keystrings to the hybrid index build side-table.
It seems the BinData value in the side-write gets the a length derived from the capacity of the builders buffer instead of the length. This results in (at best) wasteful resource usage (for example writing out 512 bytes for 5 byte keystrings) and (at worst) a correctness problem due to undefined behavior.
- related to
-
SERVER-42526 IndexBuildInterceptor should store KeyString keys
- Closed