func (cancellationResultRetry) mustImplementCancellationResult() {}
if callErr == nil {
return cancellationResultOK{}, nil
}
Frontier kind: Code frontier
unlabeled · c_a92caf185fc8
14 tests · 2830 LOC · 136 files · introduces 0 tests · 30 LOC · 3 files
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.
Every exact file and test below is linked only from the concept that introduces it.
go.temporal.io/server/common/persistence/client/TestQuotasSuite/TestAPITypeCallOriginPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestBackgroundTypeAPIPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestCallerTypeDefaultPriorityMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestRequestPrioritiesOrderedgo.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsgo.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_Nilgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingEvery collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
3 files ranked by introduced lines: 30 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
func (cancellationResultRetry) mustImplementCancellationResult() {}
if callErr == nil {
return cancellationResultOK{}, nil
}
attrs chasm.TaskAttributes,
task *nexusoperationpb.CancellationTask,
ns, err := h.namespaceRegistry.GetNamespaceByID(namespace.ID(cancelRef.NamespaceID))
if err != nil {
return serviceerror.NewNotFoundf("failed to get namespace by ID: %v", err)
}
args, err := chasm.ReadComponent(ctx, cancelRef, (*Cancellation).loadArgs, nil)
cancellation_tasks.go
if err != nil {
return err
}
endpoint, err := h.lookupEndpoint(ctx, ns.ID(), args.endpointID, args.endpointName)
cancellation_tasks.go
if err != nil {
if _, ok := errors.AsType[*serviceerror.NotFound](err); ok {
h.logger.Error("endpoint not found while processing cancellation invocation", tag.Error(err))
cancelRef chasm.ComponentRef,
callErr error,
result, err := newCancellationResult(callErr)
if err != nil {
return fmt.Errorf("failed to construct cancellation result: %w", err)
}
ctx,
cancelRef,
(*Cancellation).saveResult,
saveCancellationResultInput{
result: result,
retryPolicy: h.config.RetryPolicy,
},
)
return err
}
var invocationData InvocationData
if store, ok := op.Store.TryGet(ctx); ok {
invocationData, err = store.NexusOperationInvocationData(ctx, op)
if err != nil {
return cancelArgs{}, err
}
ctx chasm.MutableContext,
input saveCancellationResultInput,
switch r := input.result.(type) {
case cancellationResultOK:
return nil, c.onCompleted(ctx)
// In that case, the ID stored in the operation state becomes stale, but the name-based lookup still resolves correctly.
// Returns a nil entry if the endpoint name is the system nexus endpoint.
func (b *nexusTaskHandlerBase) lookupEndpoint(ctx context.Context, namespaceID namespace.ID, endpointID, endpointName string) (*persistencespb.NexusEndpointEntry, error) {
task_handler_base.go
// Skip endpoint lookup for system-internal operations.
if endpointName == commonnexus.SystemEndpoint {
return nil, nil
}