task_executor.go ×3

Frontier kind: Joint frontier

unlabeled · c_f3cd198c1610

1 test · 4323 LOC · 188 files · introduces 1 test · 31 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges31 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
643 ranges4323 lines · 188 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.

1 file ranked by introduced lines: 31 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/replication/task_executor.go 31 introduced LOC · 3 ranges

Open complete file

249 return nil
250
251 > case *serviceerrors.RetryReplication: task_executor.go
252 > metrics.ClientRequests.With(e.metricsHandler).Record(
253 > 1,
254 > metrics.OperationTag(metrics.HistoryRereplicationByHistoryReplicationScope),
255 > metrics.NamespaceTag(namespaceName.String()),
256 > metrics.ServiceRoleTag(metrics.HistoryRoleTagValue),
257 > )
258 > startTime := time.Now().UTC()
259 > defer func() {
260 > metrics.ClientLatency.With(e.metricsHandler).Record(
261 > time.Since(startTime),
262 > metrics.OperationTag(metrics.HistoryRereplicationByHistoryReplicationScope),
263 > metrics.NamespaceTag(namespaceName.String()),
264 > metrics.ServiceRoleTag(metrics.HistoryRoleTagValue),
265 > )
266 > }()
267 > resendErr := e.resend(
268 > ctx,
269 > e.remoteCluster,
270 > namespace.ID(retryErr.NamespaceId),
271 > retryErr.WorkflowId,
272 > retryErr.RunId,
273 > retryErr.StartEventId,
274 > retryErr.StartEventVersion,
275 > retryErr.EndEventId,
276 > retryErr.EndEventVersion,
277 > )
278 > switch resendErr.(type) {
279 case *serviceerror.NotFound:
280 // workflow is not found in source cluster, cleanup workflow in target cluster
281 return e.cleanupWorkflowExecution(ctx, retryErr.NamespaceId, retryErr.WorkflowId, retryErr.RunId)
282 > case nil: task_executor.go
283 // no-op
284 default:
289 // This might be extra cost if the workflow belongs to local shard.
290 // Add a wrapper of the history client to call history engine directly if it becomes an issue.
291 > _, err = e.shardContext.GetHistoryClient().ReplicateEventsV2(ctx, request) task_executor.go
292 > return err
293 default:
294 if errors.Is(err, consts.ErrDuplicate) {