mesh-grants: the test's stand-in nats_streams skips a consumer gone between its listing and its read
Under load (8 copies side by side) TestTheGrantsPartWhole panicked at
integration_test.go:151 at abb7cfcf too: st.Consumer's error was dropped
and a consumer deleted after ConsumerNames listed it gave a nil one.
Builds: design 47 H §746 (the pipeline's integration step)
This commit is contained in:
@@ -147,7 +147,10 @@ func TestTheGrantsPartWhole(t *testing.T) {
|
||||
consumers := []any{}
|
||||
names := st.ConsumerNames(ctx)
|
||||
for name := range names.Name() {
|
||||
c, _ := st.Consumer(ctx, name)
|
||||
c, err := st.Consumer(ctx, name)
|
||||
if err != nil {
|
||||
continue // deleted between the listing and its read: the bus module's tool lists what it can read
|
||||
}
|
||||
cfg := c.CachedInfo().Config
|
||||
consumers = append(consumers, map[string]any{"name": name, "filters": cfg.FilterSubjects, "max_deliver": cfg.MaxDeliver})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user