apple / foundationdb

FoundationDB - the open source, distributed, transactional key-value store
https://apple.github.io/foundationdb/
Apache License 2.0
14.19k stars 1.29k forks source link

GetEstimatedRangeSizeBytes can cause PacketLimitExceeded error on commit proxies #11384

Open jzhou77 opened 1 month ago

jzhou77 commented 1 month ago

As reported here, if GetEstimatedRangeSizeBytes API uses a large key range, it can cause PacketLimitExceeded errors on commit proxies. This is because getStorageMetricsLargeKeyRange() invokes getKeyRangeLocations() to obtain location information for all shards within the specified key range. For a large range, the size of location information is unbounded and may exceed the packet size limit.