Skip to content

Commit

Permalink
Removed RMD size from the record too large check, so it's not counted…
Browse files Browse the repository at this point in the history
… towards the `maxRecordSizeBytes` record size limit. 🔦
  • Loading branch information
KaiSernLim committed Jul 29, 2024
1 parent 2fca171 commit 16634a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,8 @@ public CompletableFuture<PubSubProduceResult> put(
*/
int veniceRecordSize = serializedKey.length + serializedValue.length + replicationMetadataPayloadSize;
if (isChunkingNeededForRecord(veniceRecordSize)) { // ~1MB default
if (isChunkingEnabled && !isRecordTooLarge(veniceRecordSize)) {
// RMD size is not checked because it's an internal component, and a user's write should not be failed due to it
if (isChunkingEnabled && !isRecordTooLarge(serializedKey.length + serializedValue.length)) {
return putLargeValue(
serializedKey,
serializedValue,
Expand Down

0 comments on commit 16634a0

Please sign in to comment.