client.go ×4

Frontier kind: Code frontier

unlabeled · c_254413305357

5 tests · 283 LOC · 4 files · introduces 0 tests · 16 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges16 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
104 ranges283 lines · 4 files · Browse complete extent
All tests (intent)
5 testsBrowse 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.

Introduced files, introduced tests, and structurally relevant concept specializationoperation.go ×2 · 6 introduced LOCoperation.go ×2sync_failed · 0 introduced LOCsync_failedexecutors.go ×1 · 4 introduced LOCexecutors.go ×1sync_failed · 0 introduced LOCsync_failedclient.go ×4 · 16 introduced LOCclient.go ×4server.go ×1 · 1 introduced LOCserver.go ×1client.go ×2 · 3 introduced LOCclient.go ×2client.go ×2 · 3 introduced LOCclient.go ×2server.go ×5 · 34 introduced LOCserver.go ×5client.go ×1 · 3 introduced LOCclient.go ×1server.go ×3 · 6 introduced LOCserver.go ×3client.go ×4 · 13 introduced LOCclient.go ×4client.go ×8 · 25 introduced LOCclient.go ×8server.go ×8 · 25 introduced LOCserver.go ×8api.go ×2 · 5 introduced LOCapi.go ×2api.go ×1 · 3 introduced LOCapi.go ×1client.go ×1 · 3 introduced LOCclient.go ×1failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2client.go ×1 · 2 introduced LOCclient.go ×1api.go ×1 · 2 introduced LOCapi.go ×1api.go ×2 · 6 introduced LOCapi.go ×2client.go ×7 · 22 introduced LOCclient.go ×7server.go ×1 · 2 introduced LOCserver.go ×1server.go ×1 · 2 introduced LOCserver.go ×1failure_converter.go ×4 · 18 introduced LOCfailure_converter.go ×4server.go ×1 · 2 introduced LOCserver.go ×1failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2server.go ×5 · 14 introduced LOCserver.go ×5api.go ×2 · 3 introduced LOCapi.go ×2client.go ×1 · 2 introduced LOCclient.go ×1failure_converter.go ×2 · 7 introduced LOCfailure_converter.go ×2server.go ×4 · 19 introduced LOCserver.go ×4api.go ×3 · 8 introduced LOCapi.go ×3failure_converter.go ×1 · 2 introduced LOCfailure_converter.go ×1api.go ×1 · 1 introduced LOCapi.go ×1api.go ×1 · 2 introduced LOCapi.go ×1api.go ×2 · 3 introduced LOCapi.go ×2client.go ×2 · 6 introduced LOCclient.go ×2failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2api.go ×1 · 2 introduced LOCapi.go ×1api.go ×1 · 4 introduced LOCapi.go ×1api.go ×1 · 2 introduced LOCapi.go ×1failure_converter.go ×1 · 3 introduced LOCfailure_converter.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/chasm/lib/nexusoperation/operation.go · 713 LOCnexusoperation/operation…go.temporal.io/server/chasm/lib/nexusoperation/task_handler_helpers.go · 380 LOCnexusoperation/task_hand…go.temporal.io/server/common/nexus/nexusrpc/api.go · 295 LOCnexusrpc/api.gogo.temporal.io/server/common/nexus/nexusrpc/client.go · 502 LOCnexusrpc/client.gogo.temporal.io/server/common/nexus/nexusrpc/failure_converter.go · 213 LOCnexusrpc/failure_convert…go.temporal.io/server/common/nexus/nexusrpc/server.go · 404 LOCnexusrpc/server.gogo.temporal.io/server/components/nexusoperations/executors.go · 1250 LOCnexusoperations/executor…sync_canceled · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/sync_canceledsync_canceledsync_failed · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/sync_failedsync_failedTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestUnsuccessful · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestUnsuccessfulTestUnsuccessfulsync_canceled · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/sync_canceledsync_canceledsync_failed · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/sync_failedsync_failedFocused concept · client.go ×4 · 16 introduced LOCclient.go ×4

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.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

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

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

go.temporal.io/server/common/nexus/nexusrpc/server.go 9 introduced LOC · 4 ranges

Open complete file

102
103 if errors.As(err, &opError) {
104 > operationState = opError.State server.go
105 > var convErr error
106 > failure, convErr = h.FailureConverter.ErrorToFailure(opError)
107 > if convErr != nil {
108 h.Logger.Error("failed to convert operation error to failure", "error", convErr)
109 writer.WriteHeader(http.StatusInternalServerError)
111 }
112 // Backward compatibility, unwrap the failure cause.
113 > if r.Header.Get(HeaderTemporalNexusFailureSupport) != "true" && failure.Cause != nil { server.go
114 failure = *failure.Cause
115 }
116
117 > statusCode = statusOperationUnsuccessful server.go
118 >
119 > if operationState != nexus.OperationStateFailed && operationState != nexus.OperationStateCanceled {
120 h.Logger.Error("unexpected operation state", "state", operationState)
121 writer.WriteHeader(http.StatusInternalServerError)
122 return
123 }
124 > writer.Header().Set(headerOperationState, string(operationState)) server.go
125 } else if errors.As(err, &handlerError) {
126 var convErr error
go.temporal.io/server/common/nexus/nexusrpc/client.go 7 introduced LOC · 4 ranges

Open complete file

344 Links: links,
345 }, nil
346 > case statusOperationUnsuccessful: client.go
347 > failure, err := c.failureFromResponse(response, body)
348 > if err != nil {
349 return nil, err
350 }
351
352 > wireErr, err := c.failureConverter.FailureToError(failure) client.go
353 > if err != nil {
354 return nil, err
355 }
356
357 // For compatibility with older servers.
358 > if _, ok := wireErr.(*nexus.OperationError); !ok { client.go
359 state, err := getUnsuccessfulStateFromHeader(response, body)
360 if err != nil {
372 }
373
374 > return nil, wireErr client.go
375 default:
376 return nil, c.bestEffortHandlerErrorFromResponse(response, body)