Skip to content

Commit f6a5931

Browse files
Update runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingModeExecutionContext.java
Co-authored-by: Arun Pandian <arunpandianp@gmail.com>
1 parent e4fa9e5 commit f6a5931

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/StreamingModeExecutionContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,11 +702,11 @@ private void validateCommitRequestSize() {
702702
long byteLimit = operationalLimits.getMaxWorkItemCommitBytes();
703703
Windmill.WorkItemCommitRequest commitRequest = currentBuilder.build();
704704
int commitSize = commitRequest.getSerializedSize();
705-
int estimatedCommitSize = commitSize < 0 ? Integer.MAX_VALUE : commitSize;
706705

707706
// Detect overflow of integer serialized size or if the byte limit was exceeded.
708707
// Commit is too large if overflow has occurred or the commitSize has exceeded the allowed
709708
// commit byte limit.
709+
int estimatedCommitSize = commitSize < 0 ? Integer.MAX_VALUE : commitSize;
710710
streamingCounters.windmillMaxObservedWorkItemCommitBytes().addValue(estimatedCommitSize);
711711
if (commitSize >= 0 && commitSize < byteLimit) {
712712
return;

0 commit comments

Comments
 (0)