mutable_state_task_store.go ×5

Frontier kind: Joint frontier

unlabeled · c_d612ffb1d495

1 test · 3832 LOC · 172 files · introduces 1 test · 36 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges36 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
654 ranges3832 lines · 172 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: 36 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/cassandra/mutable_state_task_store.go 36 introduced LOC · 5 ranges

Open complete file

508 ctx context.Context,
509 request *p.PutReplicationTaskToDLQRequest,
510 > ) error { mutable_state_task_store.go
511 > task := request.TaskInfo
512 > datablob, err := d.serializer.ReplicationTaskInfoToBlob(task)
513 > if err != nil {
514 return gocql.ConvertError("PutReplicationTaskToDLQ", err)
515 }
516
517 // Use source cluster name as the workflow id for replication dlq
518 > query := d.Session.Query(templateCreateReplicationTaskQuery, mutable_state_task_store.go
519 > request.ShardID,
520 > rowTypeDLQ,
521 > rowTypeDLQNamespaceID,
522 > request.SourceClusterName,
523 > rowTypeDLQRunID,
524 > datablob.Data,
525 > datablob.EncodingType.String(),
526 > defaultVisibilityTimestamp,
527 > task.GetTaskId(),
528 > ).WithContext(ctx)
529 >
530 > err = query.Exec()
531 > if err != nil {
532 return gocql.ConvertError("PutReplicationTaskToDLQ", err)
533 }
534
535 > return nil mutable_state_task_store.go
536 }
537
597 ctx context.Context,
598 request *p.GetReplicationTasksFromDLQRequest,
599 > ) (bool, error) { mutable_state_task_store.go
600 >
601 > query := d.Session.Query(templateIsQueueEmptyQuery,
602 > request.ShardID,
603 > rowTypeDLQ,
604 > rowTypeDLQNamespaceID,
605 > request.SourceClusterName,
606 > rowTypeDLQRunID,
607 > defaultVisibilityTimestamp,
608 > request.InclusiveMinTaskKey.TaskID,
609 > ).WithContext(ctx)
610 >
611 > if err := query.Scan(nil); err != nil {
612 > if gocql.IsNotFoundError(err) {
613 > return true, nil
614 > }
615 return true, gocql.ConvertError("IsReplicationDLQEmpty", err)
616 }
617 > return false, nil mutable_state_task_store.go
618 }
619