-
Notifications
You must be signed in to change notification settings - Fork 4.6k
KeyCommitTooLarge logging improvements #39316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rwiggles
wants to merge
24
commits into
apache:master
Choose a base branch
from
rwiggles:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c831c33
Support logging the key during a KeyCommitTooLarge if EnableHotKeyLog…
rwiggles 986fae8
Merge branch 'apache:master' into master
rwiggles 25d7bbc
Update runners/google-cloud-dataflow-java/worker/src/main/java/org/ap…
rwiggles 2513ffe
Update runners/google-cloud-dataflow-java/worker/src/main/java/org/ap…
rwiggles 647a815
Update runners/google-cloud-dataflow-java/worker/src/test/java/org/ap…
rwiggles 369aff8
gemini review responses
rwiggles 8f55913
Merge branch 'apache:master' into master
rwiggles 15751e2
Fix imports
rwiggles d3a4d1c
one more
rwiggles d5babb0
one more attempt
rwiggles 9f611b5
one more attempt
rwiggles a5bd7d0
formatting fix
rwiggles 2655ca5
Bump actions/checkout from 6 to 7 (#39335)
dependabot[bot] c3dfad9
Bump cloud.google.com/go/datastore from 1.24.0 to 1.25.0 in /sdks (#3…
dependabot[bot] 6622497
Bump github.com/aws/aws-sdk-go-v2/feature/s3/manager in /sdks (#39334)
dependabot[bot] 4e1732b
Fix DataflowV1 test failure by fixing getSimpleName access (#39330)
Abacn 2bea70b
add jdkAddOpenModules for Dataflow V2 (#39306)
aIbrahiim 1e6b61b
Add Spark JVM --add-opens for (Nexmark, TPC-DS, PortableJar) (#39337)
aIbrahiim 163cd12
add Spark job-server --add-opens (#39339)
aIbrahiim dca9622
fix: add retries and query parameter encoding for GitHub API requests…
raman118 7b88d16
fix: add Apache license header to test_sending.py
raman118 5939496
Move validation to StreamingModeExecutionContext
rwiggles a3b7163
remove unused import
rwiggles c31b3e9
Merge branch 'master' into master
rwiggles File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,16 +18,38 @@ | |
| package org.apache.beam.runners.dataflow.worker.streaming; | ||
|
|
||
| import org.apache.beam.runners.dataflow.worker.windmill.Windmill; | ||
| import org.checkerframework.checker.nullness.qual.Nullable; | ||
|
|
||
| public final class KeyCommitTooLargeException extends Exception { | ||
|
|
||
| public static KeyCommitTooLargeException causedBy( | ||
| String computationId, long byteLimit, Windmill.WorkItemCommitRequest request) { | ||
| String stageName, long byteLimit, Windmill.WorkItemCommitRequest request) { | ||
| return causedBy(stageName, byteLimit, request, null, false); | ||
| } | ||
|
|
||
| public static KeyCommitTooLargeException causedBy( | ||
| String stageName, | ||
| long byteLimit, | ||
| Windmill.WorkItemCommitRequest request, | ||
| boolean hotKeyLoggingEnabled) { | ||
| return causedBy(stageName, byteLimit, request, null, hotKeyLoggingEnabled); | ||
| } | ||
|
Comment on lines
25
to
+36
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these look unused, remove? |
||
|
|
||
| public static KeyCommitTooLargeException causedBy( | ||
| String stageName, | ||
| long byteLimit, | ||
| Windmill.WorkItemCommitRequest request, | ||
| @Nullable Object decodedKey, | ||
| boolean hotKeyLoggingEnabled) { | ||
| StringBuilder message = new StringBuilder(); | ||
| message.append("Commit request for stage "); | ||
| message.append(computationId); | ||
| message.append(stageName); | ||
| message.append(" and sharding key "); | ||
| message.append(request.getShardingKey()); | ||
| message.append(Long.toUnsignedString(request.getShardingKey())); | ||
| if (decodedKey != null && hotKeyLoggingEnabled) { | ||
| message.append(" and key "); | ||
| message.append(decodedKey); | ||
| } | ||
| if (request.getSerializedSize() > 0) { | ||
| message.append( | ||
| " has size " | ||
|
|
@@ -38,9 +60,8 @@ public static KeyCommitTooLargeException causedBy( | |
| message.append(" is larger than 2GB and cannot be processed"); | ||
| } | ||
| message.append( | ||
| ". This may be caused by grouping a very " | ||
| + "large amount of data in a single window without using Combine," | ||
| + " or by producing a large amount of data from a single input element." | ||
| ". This may be caused by grouping a very large amount of data in a single window without" | ||
| + " using Combine, or by producing a large amount of data from a single input element." | ||
| + " See https://cloud.google.com/dataflow/docs/guides/common-errors#key-commit-too-large-exception."); | ||
| return new KeyCommitTooLargeException(message.toString()); | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do