execution_store.go ×4

Frontier kind: Code frontier

unlabeled · c_974ba27c85b9

14 tests · 5335 LOC · 187 files · introduces 0 tests · 24 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges24 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1041 ranges5335 lines · 187 files · Browse complete extent
All tests (intent)
14 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: 24 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/cassandra/mutable_state_store.go 19 introduced LOC · 2 ranges

Open complete file

744 ctx context.Context,
745 request *p.InternalConflictResolveWorkflowExecutionRequest,
746 > ) error { mutable_state_store.go
747 > batch := d.Session.NewBatch(gocql.LoggedBatch).WithContext(ctx)
748 >
749 > currentWorkflow := request.CurrentWorkflowMutation
750 > resetWorkflow := request.ResetWorkflowSnapshot
751 > newWorkflow := request.NewWorkflowSnapshot
752 >
753 > shardID := request.ShardID
754 >
755 > namespaceID := resetWorkflow.NamespaceID
756 > workflowID := resetWorkflow.WorkflowID
757 >
758 > var currentRunID string
759 >
760 > var startTime *time.Time
761 > if currentWorkflow != nil && currentWorkflow.ExecutionState != nil {
762 startTime = timestamp.TimeValuePtr(currentWorkflow.ExecutionState.StartTime)
763 }
764
765 > currentRecordRunID := d.getCurrentRecordRunID(request.ArchetypeID) mutable_state_store.go
766 >
767 > switch request.Mode {
768 case p.ConflictResolveWorkflowModeBypassCurrent:
769 if err := d.assertNotCurrentExecution(
go.temporal.io/server/common/persistence/cassandra/execution_store.go 5 introduced LOC · 4 ranges

Open complete file

129 ctx context.Context,
130 request *p.InternalConflictResolveWorkflowExecutionRequest,
131 > ) error { execution_store.go
132 > for _, req := range request.CurrentWorkflowEventsNewEvents {
133 if err := d.AppendHistoryNodes(ctx, req); err != nil {
134 return err
135 }
136 }
137 > for _, req := range request.ResetWorkflowEventsNewEvents { execution_store.go
138 if err := d.AppendHistoryNodes(ctx, req); err != nil {
139 return err
140 }
141 }
142 > for _, req := range request.NewWorkflowEventsNewEvents { execution_store.go
143 if err := d.AppendHistoryNodes(ctx, req); err != nil {
144 return err
146 }
147
148 > return d.MutableStateStore.ConflictResolveWorkflowExecution(ctx, request) execution_store.go
149 }
150