Cherry-pick conflicts due to modified bazel BUILD file that doesn't exist in v24.2.x.
Backports Required
[ ] none - not a bug fix
[X] none - this is a backport
[ ] none - issue does not exist in previous branches
[ ] none - papercut/not impactful enough to backport
[ ] v24.2.x
[ ] v24.1.x
[ ] v23.3.x
Release Notes
Bug Fixes
Fixes a bug in which upload candidates made from segments with missing batches would trigger metadata related errors in the ntp_archiver_service, due to assigned start offsets being lower than they should be.
Manual backport of https://github.com/redpanda-data/redpanda/pull/23937.
Cherry-pick conflicts due to modified bazel
BUILD
file that doesn't exist inv24.2.x
.Backports Required
Release Notes
Bug Fixes
ntp_archiver_service
, due to assigned start offsets being lower than they should be.