-
Notifications
You must be signed in to change notification settings - Fork 245
External Storage Integration: Activity worker, client #3020
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
cconstable
wants to merge
15
commits into
main
Choose a base branch
from
extstore/activity-client
base: main
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.
+2,196
−234
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0efe1ea
feat(extstore): integrate into activity worker, heartbeats, and clien…
cconstable 409b1a8
fix(extstore): derive external storage runner from data converter in …
cconstable 08f587a
use ExternalStorageDataConverter, remove external storage client deco…
cconstable fbf464d
externalStorage -> externalStorageRunner
cconstable 8f3c23e
fix(extstore): send a RespondActivityTaskFailed when extstore fails t…
cconstable 9931808
refactor(extstore): add a client data converter factory so that we on…
cconstable 04b2fe2
fix(extstore): fix storage targets and add a factory to consolidate l…
cconstable 050c637
fix(extstore): fix TestActivityEnvironment heartbeat listeners so the…
cconstable a4fe03a
small nit refactor
cconstable a4c0149
a hanging store call will no longer block heartbeat cancellation
cconstable 345e8f1
handle failures without extstore
cconstable a89d462
tighten up heartbeat cancellation
cconstable 6a6fbe5
getSummary and getDetails now use the correct namespace for decoding
cconstable 43c46f9
offload headers to extstore
cconstable 8dd6729
always use ExternalStrorageDataConverter
cconstable 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
Some comments aren't visible on the classic Files Changed page.
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 |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| package io.temporal.client; | ||
|
|
||
| import io.temporal.api.common.v1.Payload; | ||
| import io.temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse; | ||
| import io.temporal.common.converter.DataConverter; | ||
| import io.temporal.payload.context.WorkflowSerializationContext; | ||
| import javax.annotation.Nonnull; | ||
| import javax.annotation.Nullable; | ||
|
|
||
|
|
@@ -29,15 +29,8 @@ public String getStaticSummary() { | |
| if (!response.getExecutionConfig().getUserMetadata().hasSummary()) { | ||
| return null; | ||
| } | ||
| return dataConverter | ||
| .withContext( | ||
| new WorkflowSerializationContext( | ||
| response.getWorkflowExecutionInfo().getParentNamespaceId(), | ||
| response.getWorkflowExecutionInfo().getExecution().getWorkflowId())) | ||
| .fromPayload( | ||
| response.getExecutionConfig().getUserMetadata().getSummary(), | ||
| String.class, | ||
| String.class); | ||
| Payload summary = response.getExecutionConfig().getUserMetadata().getSummary(); | ||
| return dataConverter.fromPayload(summary, String.class, String.class); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -51,15 +44,8 @@ public String getStaticDetails() { | |
| if (!response.getExecutionConfig().getUserMetadata().hasDetails()) { | ||
| return null; | ||
| } | ||
| return dataConverter | ||
|
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. |
||
| .withContext( | ||
| new WorkflowSerializationContext( | ||
| response.getWorkflowExecutionInfo().getParentNamespaceId(), | ||
| response.getWorkflowExecutionInfo().getExecution().getWorkflowId())) | ||
| .fromPayload( | ||
| response.getExecutionConfig().getUserMetadata().getDetails(), | ||
| String.class, | ||
| String.class); | ||
| Payload details = response.getExecutionConfig().getUserMetadata().getDetails(); | ||
| return dataConverter.fromPayload(details, String.class, String.class); | ||
| } | ||
|
|
||
| /** Returns the raw response from the Temporal service. */ | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -9,7 +9,6 @@ | |
| import io.temporal.common.converter.DataConverter; | ||
| import io.temporal.internal.common.ProtobufTimeUtils; | ||
| import io.temporal.internal.common.SearchAttributesUtil; | ||
| import io.temporal.payload.context.WorkflowSerializationContext; | ||
| import java.lang.reflect.Type; | ||
| import java.time.Duration; | ||
| import java.time.Instant; | ||
|
|
@@ -123,11 +122,7 @@ public <T> T getMemo(String key, Class<T> valueClass, Type genericType) { | |
| if (memo == null) { | ||
| return null; | ||
| } | ||
| return dataConverter | ||
| .withContext( | ||
|
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. |
||
| new WorkflowSerializationContext( | ||
| info.getParentNamespaceId(), info.getExecution().getWorkflowId())) | ||
| .fromPayload(memo, valueClass, genericType); | ||
| return dataConverter.fromPayload(memo, valueClass, genericType); | ||
| } | ||
|
|
||
| @Nonnull | ||
|
|
||
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.
This feels like fixing a separate pre-existing bug. I think it should be restored and then addressed separately.