message.pb.go ×4

Frontier kind: Joint frontier

unlabeled · c_c667a2256310

1 test · 4290 LOC · 191 files · introduces 1 test · 43 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges43 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
634 ranges4290 lines · 191 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: 43 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/replication/task_processor.go 27 introduced LOC · 3 ranges

Open complete file

408 }, nil
409
410 > case enumsspb.REPLICATION_TASK_TYPE_HISTORY_V2_TASK: task_processor.go
411 > taskAttributes := replicationTask.GetHistoryTaskAttributes()
412 >
413 > events, err := p.historySerializer.DeserializeEvents(taskAttributes.GetEvents())
414 > if err != nil {
415 return nil, err
416 }
417
418 > if len(events) == 0 { task_processor.go
419 p.logger.Error("Empty events in a batch")
420 return nil, ErrCorruptedHistoryEventBatch
421 }
422 > firstEvent := events[0] task_processor.go
423 > lastEvent := events[len(events)-1]
424 > // NOTE: last event vs next event, next event ID is exclusive
425 > nextEventID := lastEvent.GetEventId() + 1
426 >
427 > return &persistence.PutReplicationTaskToDLQRequest{
428 > SourceClusterName: p.sourceCluster,
429 > TaskInfo: &persistencespb.ReplicationTaskInfo{
430 > NamespaceId: taskAttributes.GetNamespaceId(),
431 > WorkflowId: taskAttributes.GetWorkflowId(),
432 > RunId: taskAttributes.GetRunId(),
433 > TaskId: replicationTask.GetSourceTaskId(),
434 > TaskType: enumsspb.TASK_TYPE_REPLICATION_HISTORY,
435 > FirstEventId: firstEvent.GetEventId(),
436 > NextEventId: nextEventID,
437 > Version: firstEvent.GetVersion(),
438 > VisibilityTime: replicationTask.GetVisibilityTime(),
439 > NewRunId: taskAttributes.GetNewRunId(),
440 > // BranchToken & NewRunBranchToken should also be populated but are deprecated
441 > },
442 > }, nil
443
444 case enumsspb.REPLICATION_TASK_TYPE_SYNC_WORKFLOW_STATE_TASK:
go.temporal.io/server/api/replication/v1/message.pb.go 16 introduced LOC · 4 ranges

Open complete file

1269 }
1270
1271 > func (x *HistoryTaskAttributes) GetWorkflowId() string { message.pb.go
1272 > if x != nil {
1273 > return x.WorkflowId
1274 > }
1275 return ""
1276 }
1277
1278 > func (x *HistoryTaskAttributes) GetRunId() string { message.pb.go
1279 > if x != nil {
1280 > return x.RunId
1281 > }
1282 return ""
1283 }
1290 }
1291
1292 > func (x *HistoryTaskAttributes) GetEvents() *v11.DataBlob { message.pb.go
1293 > if x != nil {
1294 > return x.Events
1295 > }
1296 return nil
1297 }
1311 }
1312
1313 > func (x *HistoryTaskAttributes) GetNewRunId() string { message.pb.go
1314 > if x != nil {
1315 > return x.NewRunId
1316 > }
1317 return ""
1318 }