client.go ×3

Frontier kind: Joint frontier

unlabeled · c_f5e1027a50b8

1 test · 2923 LOC · 143 files · introduces 1 test · 28 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges28 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
464 ranges2923 lines · 143 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 28 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/worker/workerdeployment/client.go 23 introduced LOC · 3 ranges

Open complete file

1591
1592 if *retErr != nil {
1593 > if isFailedPreconditionOrNotFound(*retErr) { client.go
1594 d.logger.Debug("deployment client failure due to a failed precondition or not found error",
1595 tag.Error(*retErr),
1599 tag.Any("args", args),
1600 )
1601 > } else { client.go
1602 > if isRetryableUpdateError(*retErr) || isRetryableQueryError(*retErr) {
1603 > d.logger.Debug("deployment client throttling due to retryable error",
1604 > tag.Error(*retErr),
1605 > tag.Operation(operation),
1606 > tag.Deployment(deploymentName),
1607 > tag.Duration("elapsed", elapsed),
1608 > tag.Any("args", args),
1609 > )
1610 > var errResourceExhausted *serviceerror.ResourceExhausted
1611 > if !errors.As(*retErr, &errResourceExhausted) || errResourceExhausted.Cause != enumspb.RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS {
1612 > // if it's not a deployment limits error, we don't want to expose the underlying cause to the user
1613 > *retErr = &serviceerror.ResourceExhausted{
1614 > Message: fmt.Sprintf(ErrTooManyRequests, deploymentName),
1615 > Scope: enumspb.RESOURCE_EXHAUSTED_SCOPE_NAMESPACE,
1616 > // These errors are caused by workflow throughput limits, so BUSY_WORKFLOW is the most appropriate cause.
1617 > // This cause is not sent back to the user.
1618 > Cause: enumspb.RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW,
1619 > }
1620 > }
1621 } else if errors.Is(*retErr, context.DeadlineExceeded) ||
1622 errors.Is(*retErr, context.Canceled) ||
2070 _, err := d.historyClient.SignalWorkflowExecution(ctx, signalRequest)
2071 if err != nil {
2072 > return err client.go
2073 > }
2074
2075 // Record success so subsequent calls to the same version workflow for this or older
go.temporal.io/server/service/worker/workerdeployment/util.go 5 introduced LOC · 1 range

Open complete file

193 }
194
195 > func isFailedPreconditionOrNotFound(err error) bool { util.go
196 > var failedPreconditionError *serviceerror.FailedPrecondition
197 > var notFound *serviceerror.NotFound
198 > return errors.As(err, &failedPreconditionError) || errors.As(err, &notFound)
199 > }
200
201 // update updates an already existing deployment version/deployment workflow.