mutable_state_task_store.go ×4

Frontier kind: Code frontier

unlabeled · c_e810275eccf3

2 tests · 4084 LOC · 179 files · introduces 0 tests · 49 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges49 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
725 ranges4084 lines · 179 files · Browse complete extent
All tests (intent)
2 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.

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: 49 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 37 introduced LOC · 4 ranges

Open complete file

233 case tasks.CategoryIDTimer:
234 return d.getTimerTasks(ctx, request)
235 > case tasks.CategoryIDVisibility: mutable_state_task_store.go
236 > return d.getVisibilityTasks(ctx, request)
237 case tasks.CategoryIDReplication:
238 return d.getReplicationTasks(ctx, request)
621 ctx context.Context,
622 request *p.GetHistoryTasksRequest,
623 > ) (*p.InternalGetHistoryTasksResponse, error) { mutable_state_task_store.go
624 >
625 > // Reading Visibility tasks need to be quorum level consistent, otherwise we could lose task
626 > query := d.Session.Query(templateGetVisibilityTasksQuery,
627 > request.ShardID,
628 > rowTypeVisibilityTask,
629 > rowTypeVisibilityTaskNamespaceID,
630 > rowTypeVisibilityTaskWorkflowID,
631 > rowTypeVisibilityTaskRunID,
632 > defaultVisibilityTimestamp,
633 > request.InclusiveMinTaskKey.TaskID,
634 > request.ExclusiveMaxTaskKey.TaskID,
635 > ).WithContext(ctx)
636 > iter := query.PageSize(request.BatchSize).PageState(request.NextPageToken).Iter()
637 >
638 > response := &p.InternalGetHistoryTasksResponse{}
639 > var taskID int64
640 > var data []byte
641 > var encoding string
642 >
643 > for iter.Scan(&taskID, &data, &encoding) {
644 > response.Tasks = append(response.Tasks, p.InternalHistoryTask{
645 > Key: tasks.NewImmediateKey(taskID),
646 > Blob: p.NewDataBlob(data, encoding),
647 > })
648 >
649 > taskID = 0
650 > data = nil
651 > encoding = ""
652 > }
653 > if len(iter.PageState()) > 0 {
654 > response.NextPageToken = iter.PageState()
655 > }
656
657 > if err := iter.Close(); err != nil { mutable_state_task_store.go
658 return nil, gocql.ConvertError("GetVisibilityTasks", err)
659 }
660
661 > return response, nil mutable_state_task_store.go
662 }
663
go.temporal.io/server/common/persistence/cassandra/util.go 12 introduced LOC · 1 range

Open complete file

566 ) error {
567 for _, task := range visibilityTasks {
568 > batch.Query(templateCreateVisibilityTaskQuery, util.go
569 > shardID,
570 > rowTypeVisibilityTask,
571 > rowTypeVisibilityTaskNamespaceID,
572 > rowTypeVisibilityTaskWorkflowID,
573 > rowTypeVisibilityTaskRunID,
574 > task.Blob.Data,
575 > task.Blob.EncodingType.String(),
576 > defaultVisibilityTimestamp,
577 > task.Key.TaskID,
578 > )
579 > }
580 return nil
581 }