mutable_state_impl.go ×14

Frontier kind: Code frontier

unlabeled · c_78654331b281

7 tests · 5163 LOC · 198 files · introduces 0 tests · 30 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
14 ranges30 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
901 ranges5163 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.

1 file ranked by introduced lines: 30 introduced LOC across 14 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/workflow/mutable_state_impl.go 30 introduced LOC · 14 ranges

Open complete file

7861 ) error {
7862 if transactionPolicy != historyi.TransactionPolicyActive {
7863 > // TODO: replication/standby logic will need a different way for updating transition history mutable_state_impl.go
7864 > // when not syncing mutable state
7865 > return nil
7866 > }
7867
7868 if !ms.transitionHistoryEnabled {
7963 // State changed but transition history not updated.
7964 // We are in unknown versioned transition state, clear the transition history.
7965 > if len(ms.executionInfo.TransitionHistory) != 0 { mutable_state_impl.go
7966 ms.executionInfo.PreviousTransitionHistory = ms.executionInfo.TransitionHistory
7967 ms.executionInfo.LastTransitionHistoryBreakPoint = transitionhistory.CopyVersionedTransition(ms.CurrentVersionedTransition())
7968 }
7969
7970 > ms.executionInfo.TransitionHistory = nil mutable_state_impl.go
7971 >
7972 > ms.executionInfo.SubStateMachineTombstoneBatches = nil
7973 > ms.totalTombstones = 0
7974 >
7975 > for _, activityInfo := range ms.updateActivityInfos {
7976 activityInfo.LastUpdateVersionedTransition = nil
7977 }
7978 > for _, timerInfo := range ms.updateTimerInfos { mutable_state_impl.go
7979 timerInfo.LastUpdateVersionedTransition = nil
7980 }
7981 > for _, childInfo := range ms.updateChildExecutionInfos { mutable_state_impl.go
7982 childInfo.LastUpdateVersionedTransition = nil
7983 }
7984 > for _, requestCancelInfo := range ms.updateRequestCancelInfos { mutable_state_impl.go
7985 requestCancelInfo.LastUpdateVersionedTransition = nil
7986 }
7987 > for _, signalInfo := range ms.updateSignalInfos { mutable_state_impl.go
7988 signalInfo.LastUpdateVersionedTransition = nil
7989 }
7990 > for updateID := range ms.updateInfoUpdated { mutable_state_impl.go
7991 ms.executionInfo.UpdateInfos[updateID].LastUpdateVersionedTransition = nil
7992 }
7993 > if len(ms.updateSignalRequestedIDs) > 0 || len(ms.deleteSignalRequestedIDs) > 0 { mutable_state_impl.go
7994 ms.executionInfo.SignalRequestIdsLastUpdateVersionedTransition = nil
7995 }
7996 > if ms.visibilityUpdated { mutable_state_impl.go
7997 ms.executionInfo.VisibilityLastUpdateVersionedTransition = nil
7998 }
7999 > if ms.executionStateUpdated { mutable_state_impl.go
8000 ms.executionState.LastUpdateVersionedTransition = nil
8001 }
8002 > if ms.workflowTaskUpdated { mutable_state_impl.go
8003 ms.executionInfo.WorkflowTaskLastUpdateVersionedTransition = nil
8004 }
8005 > if ms.stateMachineNode != nil { mutable_state_impl.go
8006 > // the error must be nil here since the fn passed into Walk() always returns nil
8007 > _ = ms.stateMachineNode.Walk(func(node *hsm.Node) error {
8008 > persistenceRepr := node.InternalRepr()
8009 > persistenceRepr.LastUpdateVersionedTransition.TransitionCount = 0
8010 > persistenceRepr.InitialVersionedTransition.TransitionCount = 0
8011 > return nil
8012 > })
8013 }
8014 }
8019 ) {
8020 if transactionPolicy != historyi.TransactionPolicyActive {
8021 > return mutable_state_impl.go
8022 > }
8023
8024 // Events can only be generated while mutable state is running,