Closed erikgrinaker closed 7 hours ago
Regression caused by https://github.com/neondatabase/neon/pull/9579. Profile on the parent doesn't show the hashmap inserts:
Hmm, all the validate_lsn_order
calls are guarded by if cfg!(any(debug_assertions, test))
. Are you sure you used a release build?
I don't actually see validate_lsn_order
in the flamegraphs you included though.
Oof, you're right. Was just blindly following the profiles. This is a red herring then.
I don't actually see validate_lsn_order in the flamegraphs you included though.
Should be in the link on the main comment: https://github.com/user-attachments/files/17868666/profile.svg.gz
During bulk ingestion in the WAL receiver,
HashMap::insert
shows up prominently in profiles underSerializedValueBatch::extend
viavalidate_lsn_order
. This likely contributed to pathologically slow bulk ingestion in this Slack thread.