queue_store.go ×5

Frontier kind: Joint frontier

unlabeled · c_78e9d0c83051

1 test · 4900 LOC · 202 files · introduces 1 test · 24 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges24 lines · 1 files
Tests
1 test

Contains — complete concept membership

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

go.temporal.io/server/common/persistence/cassandra/queue_store.go 24 introduced LOC · 5 ranges

Open complete file

63 ctx context.Context,
64 blob *commonpb.DataBlob,
65 > ) error { queue_store.go
66 > lastMessageID, err := q.getLastMessageID(ctx, q.queueType)
67 > if err != nil {
68 return err
69 }
70
71 > _, err = q.tryEnqueue(ctx, q.queueType, lastMessageID+1, blob) queue_store.go
72 > return err
73 }
74
128 lastMessageID int64,
129 maxCount int,
130 > ) ([]*persistence.QueueMessage, error) { queue_store.go
131 > // Reading replication tasks need to be quorum level consistent, otherwise we could lose tasks
132 > query := q.session.Query(templateGetMessagesQuery,
133 > q.queueType,
134 > lastMessageID,
135 > maxCount,
136 > ).WithContext(ctx)
137 >
138 > iter := query.Iter()
139 >
140 > var result []*persistence.QueueMessage
141 > message := make(map[string]any)
142 > for iter.MapScan(message) {
143 > queueMessage := convertQueueMessage(message)
144 > result = append(result, queueMessage)
145 > message = make(map[string]any)
146 > }
147
148 > if err := iter.Close(); err != nil { queue_store.go
149 return nil, gocql.ConvertError("ReadMessages", err)
150 }
151
152 > return result, nil queue_store.go
153 }
154