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
row: remove InitChecksum for each KV inserted by IMPORT
I noticed `InitChecksum` call show up in the CPU profile of a node from
300 node cluster when IMPORT is running, and I was confused by it. I did
some archaeology, and I think it hasn't been needed for a long time.
For context, prior to 2.0, we effectively required setting the checksum
on the Value since evaluation of CPuts compared RawBytes directly, which
included the checksum comparison. This was an oversight because the
checksum should be optional, and it became such in
33957ae.
However, in order to support IMPORT in mixed-version 1.1-2.0 cluster, in
5ae1bb2 we added the population of the
checksum for all KVs produced for insertion. There is a discussion on
the PR that this is no longer needed as of the optional checksum change
mentioned above.
There is also a very recent discussion about removing this checksum in
non-test code altogether since it probably doesn't give us much since we
do checksum verification at the storage / network level. See #145541.
It should be safe to not populate the checksum for IMPORT as it seems to
be the only place we do so in the SQL land.
Release note: None
0 commit comments