transaction_manager.go ×3

Frontier kind: Code frontier

unlabeled · c_c23f4492890a

7 tests · 4480 LOC · 198 files · introduces 0 tests · 22 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges22 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
674 ranges4480 lines · 198 files · Browse complete extent
All tests (intent)
7 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: 22 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/ndc/transaction_manager.go 12 introduced LOC · 3 ranges

Open complete file

306 // need to reset target workflow (which is also the current workflow)
307 // to accept events to be reapplied
308 > baseMutableState := targetWorkflow.GetMutableState() transaction_manager.go
309 > namespaceID := namespace.ID(baseMutableState.GetExecutionInfo().NamespaceId)
310 > workflowID := baseMutableState.GetExecutionInfo().WorkflowId
311 > baseRunID := baseMutableState.GetExecutionState().GetRunId()
312 > resetRunID := uuid.NewString()
313 > baseRebuildLastEventID := baseMutableState.GetLastCompletedWorkflowTaskStartedEventId()
314 > if baseRebuildLastEventID == common.EmptyEventID {
315 // No completed workflow task. Pick the reset anchor by scenario:
316 // - real pending workflow task: anchor at its ScheduledEventID. The resetter
329 }
330
331 > baseVersionHistories := baseMutableState.GetExecutionInfo().GetVersionHistories() transaction_manager.go
332 > baseCurrentVersionHistory, err := versionhistory.GetCurrentVersionHistory(baseVersionHistories)
333 > if err != nil {
334 return 0, historyi.TransactionPolicyActive, err
335 }
336 > baseRebuildLastEventVersion, err := versionhistory.GetVersionHistoryEventVersion(baseCurrentVersionHistory, baseRebuildLastEventID) transaction_manager.go
337 > if err != nil {
338 return 0, historyi.TransactionPolicyActive, err
339 }
go.temporal.io/server/service/history/interfaces/mutable_state_mock.go 10 introduced LOC · 2 ranges

Open complete file

2409
2410 // GetLastCompletedWorkflowTaskStartedEventId mocks base method.
2411 > func (m *MockMutableState) GetLastCompletedWorkflowTaskStartedEventId() int64 { mutable_state_mock.go
2412 > m.ctrl.T.Helper()
2413 > ret := m.ctrl.Call(m, "GetLastCompletedWorkflowTaskStartedEventId")
2414 > ret0, _ := ret[0].(int64)
2415 > return ret0
2416 > }
2417
2418 // GetLastCompletedWorkflowTaskStartedEventId indicates an expected call of GetLastCompletedWorkflowTaskStartedEventId.
2419 > func (mr *MockMutableStateMockRecorder) GetLastCompletedWorkflowTaskStartedEventId() *gomock.Call { mutable_state_mock.go
2420 > mr.mock.ctrl.T.Helper()
2421 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLastCompletedWorkflowTaskStartedEventId", reflect.TypeOf((*MockMutableState)(nil).GetLastCompletedWorkflowTaskStartedEventId))
2422 > }
2423
2424 // GetLastEventVersion mocks base method.