steering: keep DNS replacements atomic and preserve per-name targets
Keep each name's deletes and upserts in one batch and bisect only between names, so a failed replacement leaves the previous regional answer intact. Rank regional targets once but select only among each name's eligible boxes, preserving home records when the preferred box serves that host as a replica. Retain selected health checks after failed writes, report transport failures once per chunk, and make the host fake fail on in-use check deletion.
Co-Authored-By: GPT-6 Astra <noreply@openai.com>
internal/host/steering_g3_test.go+5 −3internal/steering/g3_test.go+124 −26internal/steering/route53.go+108 −37internal/steering/route53_test.go+20 −12
Intent
<task-notification> <task-id>b5xwm5tx1</task-id> <tool-use-id>toolu_01Lhi2k5a7Z6y36YrTLNX6Ud</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/f72ef775-81b3-4d2e-a18d-c8edb14aa192/tasks/b5xwm5tx1.output</output-file> <status>completed</status> <summary>Background command ".superpowers/sdd/2026-11-07-region-ha-g3-fixes/wait.sh t3" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 4.94 g CO₂e (611,321 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-g3-fixes, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/internal/host/steering_g3_test.go b/internal/host/steering_g3_test.go| index fd21becbd..b32112429 100644 |
| --- a/internal/host/steering_g3_test.go |
| +++ b/internal/host/steering_g3_test.go |
| @@ -36,12 +36,14 @@ type g3DNSChange struct { |
| // g3Route53 serves the SDK's XML protocol on loopback. Tests use NewClient, |
| // the DirStore constructor and the same pass factory as steeringLoop. |
| type g3Route53 struct { |
| + t *testing.T |
| mu sync.Mutex |
| records map[string]g3DNSRecord |
| checks map[string]types.HealthCheck |
| tags map[string][]types.Tag |
| writes, created, applied int |
| batches []int |
| + deletedChecks []string |
| } |
| func (f *g3Route53) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| @@ -147,10 +149,10 @@ func (f *g3Route53) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| }{hc}) |
| case strings.HasPrefix(path, "healthcheck/") && r.Method == "DELETE": |
| id := strings.TrimPrefix(path, "healthcheck/") |
| + f.deletedChecks = append(f.deletedChecks, id) |
| for _, rr := range f.records { |
| if rr.HealthCheckId == id { |
| - http.Error(w, "HealthCheckInUse", 400) |
| - return |
| + f.t.Errorf("deleted health check %s still referenced by %s", id, rr.Name) |
| } |
| } |
| f.writes++ |
| @@ -204,7 +206,7 @@ func (c g3LocalHTTPClient) Do(r *http.Request) (*http.Response, error) { |
| } |
| func TestSteeringG3HousekeeperPass(t *testing.T) { |
| - fake := &g3Route53{records: map[string]g3DNSRecord{}, checks: map[string]types.HealthCheck{}, tags: map[string][]types.Tag{}} |
| + fake := &g3Route53{t: t, records: map[string]g3DNSRecord{}, checks: map[string]types.HealthCheck{}, tags: map[string][]types.Tag{}} |
| server := httptest.NewServer(fake) |
| t.Cleanup(server.Close) |
| for key, value := range map[string]string{ |
diff --git a/internal/steering/g3_test.go b/internal/steering/g3_test.go| index d1b9419bc..939808128 100644 |
| --- a/internal/steering/g3_test.go |
| +++ b/internal/steering/g3_test.go |
| @@ -85,7 +85,7 @@ func TestG3RegionWinner(t *testing.T) { |
| t.Fatalf("winner=%s record=%v", winner, rr) |
| } |
| } |
| - if strings.Count(log.String(), "ERROR steering: dropped duplicate region target") != 1 { |
| + if strings.Count(log.String(), "ERROR steering: dropped duplicate region target") != 2 { |
| t.Fatalf("log=%s", log) |
| } |
| }) |
| @@ -116,36 +116,126 @@ func TestG3OneConflictAmong135(t *testing.T) { |
| } |
| } |
| -func TestG3DeleteBeforeUpsertAcrossBatches(t *testing.T) { |
| - f := newFake() |
| - var want []desiredRecord |
| - var old []r53types.ResourceRecordSet |
| - for i := 0; i < 101; i++ { |
| - rec := desiredRecord{Name: fmt.Sprintf("h%03d.example.com.", i), Box: "old", EIP: "192.0.2.1", Region: "us-east-1"} |
| - old = append(old, desiredRRSet(rec, "old-check")) |
| - rec.Box = "new" |
| - want = append(want, rec) |
| - } |
| - f.records = append(f.records, old...) |
| - changes, err := recordChanges(want, f.records, map[string]string{"192.0.2.1": "new-check"}, nil, old) |
| - if err != nil { |
| - t.Fatal(err) |
| - } |
| - if err = applyChanges(context.Background(), f, testZone, changes); err != nil { |
| - t.Fatal(err) |
| - } |
| - if len(f.records) != 101 { |
| - t.Fatalf("records=%d", len(f.records)) |
| - } |
| - for i, c := range f.submitted { |
| - if (i < 101) != (c.Action == r53types.ChangeActionDelete) { |
| - t.Fatalf("change %d out of order: %v", i, c) |
| - } |
| +func TestG3RegionWinnerPreservesReplicaHome(t *testing.T) { |
| + for _, incumbent := range []bool{false, true} { |
| + t.Run(fmt.Sprint(incumbent), func(t *testing.T) { |
| + f := newFake() |
| + home := desiredRecord{Name: "app.example.com.", Box: "z-home", EIP: "192.0.2.2", Region: "us-east-1"} |
| + want := []desiredRecord{home} |
| + if incumbent { |
| + want = append(want, desiredRecord{Name: "edge.example.com.", Box: "a-replica", EIP: "192.0.2.1", Region: "us-east-1"}) |
| + } |
| + mustConverge(t, f, want) |
| + var originalHome r53types.ResourceRecordSet |
| + for _, rr := range f.records { |
| + if aws.ToString(rr.Name) == home.Name { |
| + originalHome = rr |
| + } |
| + } |
| + bodies := [][]byte{ |
| + []byte(`{"v":1,"box":"a-replica","eip":"192.0.2.1","region":"us-east-1","hosts":{"app.example.com":{"replica":true}}}`), |
| + []byte(`{"v":1,"box":"z-home","eip":"192.0.2.2","region":"us-east-1","hosts":{"app.example.com":{}}}`), |
| + } |
| + log := captureLog(t) |
| + if err := ConvergeDeployment(context.Background(), f, testZone, []registry.Route{steeredRoute("app.example.com")}, bodies, "example.com"); err != nil { |
| + t.Fatal(err) |
| + } |
| + if len(f.records) != 2 { |
| + t.Fatalf("records=%v", f.records) |
| + } |
| + foundHome := false |
| + for _, rr := range f.records { |
| + if aws.ToString(rr.Name) == home.Name { |
| + foundHome = true |
| + if !sameRRSet(rr, originalHome) { |
| + t.Fatalf("home changed: %v", rr) |
| + } |
| + } |
| + } |
| + if !foundHome { |
| + t.Fatal("home record was deleted") |
| + } |
| + if strings.Count(log.String(), "dropped duplicate region target") != 1 || !strings.Contains(log.String(), "name=edge.example.com.") { |
| + t.Fatalf("log=%s", log) |
| + } |
| + writes := f.writes() |
| + if err := ConvergeDeployment(context.Background(), f, testZone, []registry.Route{steeredRoute("app.example.com")}, bodies, "example.com"); err != nil || f.writes() != writes { |
| + t.Fatalf("second pass err=%v writes=%d", err, f.writes()-writes) |
| + } |
| + }) |
| + } |
| +} |
| + |
| +func TestG3SwapsStayAtomicWhenSecondChunkFails(t *testing.T) { |
| + for _, refusal := range []bool{false, true} { |
| + t.Run(fmt.Sprint(refusal), func(t *testing.T) { |
| + f := newFake() |
| + var routes []registry.Route |
| + for i := 0; i < 100; i++ { |
| + routes = append(routes, steeredRoute(fmt.Sprintf("h%03d.example.com", i))) |
| + } |
| + bodies := [][]byte{ |
| + []byte(`{"v":1,"box":"old","eip":"192.0.2.1","region":"us-east-1"}`), |
| + []byte(`{"v":1,"box":"west","eip":"192.0.2.3","region":"us-west-2"}`), |
| + } |
| + if err := ConvergeDeployment(context.Background(), f, testZone, routes, bodies, "example.com"); err != nil { |
| + t.Fatal(err) |
| + } |
| + before := len(f.submitted) |
| + bodies[0] = []byte(`{"v":1,"box":"new","eip":"192.0.2.2","region":"us-east-1"}`) |
| + client := &g3FailureClient{fakeR53: f, failSecondChunk: !refusal} |
| + if refusal { |
| + client.refuseUpsertName = "h074.example.com." |
| + } |
| + log := captureLog(t) |
| + if err := ConvergeDeployment(context.Background(), client, testZone, routes, bodies, "example.com"); err == nil { |
| + t.Fatal("failed chunk reported as success") |
| + } |
| + byName := map[string]int{} |
| + old, replaced := 0, 0 |
| + for _, rr := range f.records { |
| + if rr.Region == "us-east-1" { |
| + byName[aws.ToString(rr.Name)]++ |
| + switch aws.ToString(rr.SetIdentifier) { |
| + case "old": |
| + old++ |
| + case "new": |
| + replaced++ |
| + } |
| + } |
| + } |
| + if len(f.records) != 202 || len(byName) != 101 { |
| + t.Fatalf("a name lost its record: records=%d east names=%d", len(f.records), len(byName)) |
| + } |
| + for name, count := range byName { |
| + if count != 1 { |
| + t.Fatalf("%s has %d east records", name, count) |
| + } |
| + } |
| + wantOld := 50 |
| + if refusal { |
| + wantOld = 1 |
| + } |
| + if old != wantOld || replaced != 101-wantOld { |
| + t.Fatalf("old=%d replaced=%d", old, replaced) |
| + } |
| + applied := f.submitted[before:] |
| + for i := 0; i < len(applied); i += 2 { |
| + if i+1 == len(applied) || applied[i].Action != r53types.ChangeActionDelete || applied[i+1].Action != r53types.ChangeActionUpsert || !strings.EqualFold(aws.ToString(applied[i].ResourceRecordSet.Name), aws.ToString(applied[i+1].ResourceRecordSet.Name)) { |
| + t.Fatalf("replacement split at %d: %v", i, applied) |
| + } |
| + } |
| + if !refusal && (strings.Count(log.String(), "change request failed") != 1 || !strings.Contains(log.String(), "count=100")) { |
| + t.Fatalf("failure log=%s", log) |
| + } |
| + }) |
| } |
| } |
| type g3FailureClient struct { |
| *fakeR53 |
| + failSecondChunk bool |
| + refuseUpsertName string |
| failDelete bool |
| failReadAfterWrite bool |
| uncertainWrite bool |
| @@ -154,6 +244,14 @@ type g3FailureClient struct { |
| func (f *g3FailureClient) ChangeResourceRecordSets(ctx context.Context, in *route53.ChangeResourceRecordSetsInput, opts ...func(*route53.Options)) (*route53.ChangeResourceRecordSetsOutput, error) { |
| f.calls++ |
| + if f.failSecondChunk && f.calls == 2 { |
| + return nil, errors.New("second chunk transport failure") |
| + } |
| + for _, c := range in.ChangeBatch.Changes { |
| + if c.Action == r53types.ChangeActionUpsert && aws.ToString(c.ResourceRecordSet.Name) == f.refuseUpsertName { |
| + return nil, invalidBatch("replacement refused") |
| + } |
| + } |
| if f.failDelete { |
| for _, c := range in.ChangeBatch.Changes { |
| if c.Action == r53types.ChangeActionDelete { |
diff --git a/internal/steering/route53.go b/internal/steering/route53.go| index 78998b825..83e06ea76 100644 |
| --- a/internal/steering/route53.go |
| +++ b/internal/steering/route53.go |
| @@ -319,6 +319,21 @@ func converge(ctx context.Context, client route53API, zoneID string, want []desi |
| if readErr != nil { |
| return errors.Join(applyErr, readErr) |
| } |
| + if applyErr != nil { |
| + // A timed-out write may land after this read. Keep the selected checks |
| + // for desired records, also avoiding create/delete churn on refusals. |
| + collectible := make([]ownedCheck, 0, len(owned)) |
| + wanted := make(map[string]bool) |
| + for _, rec := range want { |
| + wanted[checkByEIP[rec.EIP]] = true |
| + } |
| + for _, c := range owned { |
| + if !wanted[c.id] { |
| + collectible = append(collectible, c) |
| + } |
| + } |
| + owned = collectible |
| + } |
| return errors.Join(applyErr, gcHealthChecks(ctx, client, owned, want, surviving)) |
| } |
| @@ -508,9 +523,8 @@ func createHealthCheck(ctx context.Context, client route53API, zoneID, eip, fqdn |
| // tool, or a person. |
| // - no record SURVIVING this pass references it: not one of the records we |
| // just wrote, and not one of the zone's records we left alone (which |
| -// includes every static and foreign record). Route53 would refuse a |
| -// delete of an in-use check anyway, but failing the whole pass on that |
| -// is worse than skipping the one check and saying so. |
| +// includes every static and foreign record). Route53 permits deleting |
| +// an in-use check, so this gate must protect those references itself. |
| // |
| // A cleanup delete that fails is logged; the next tick tries it again. |
| func gcHealthChecks(ctx context.Context, client route53API, owned []ownedCheck, want []desiredRecord, existing []r53types.ResourceRecordSet) error { |
| @@ -859,8 +873,8 @@ func firstValue(rr r53types.ResourceRecordSet) string { |
| // already, by partitionManaged, and are passed in — this function only turns |
| // them into changes. |
| // |
| -// DELETEs precede UPSERTs so a retiring target releases its region slot |
| -// before its replacement is submitted, including across batch boundaries. |
| +// DELETEs precede UPSERTs. applyChanges keeps each name's changes together |
| +// so withdrawing a target and installing its replacement are atomic. |
| // |
| // A wanted key that already holds a record we do NOT manage (a foreign |
| // latency record at exactly the (name, SetIdentifier) we would create) is |
| @@ -906,34 +920,54 @@ func recordChanges(want []desiredRecord, existing []r53types.ResourceRecordSet, |
| return append(deletes, upserts...), nil |
| } |
| -// applyChanges preserves delete-before-upsert order through each split. Only |
| -// InvalidChangeBatch is bisected: retrying uncertain transport failures could |
| -// replay a DELETE that already landed. |
| +// applyChanges packs whole names into batches and bisects only between names. |
| +// A replacement must never lose its DELETE/UPSERT atomicity. Only confirmed |
| +// InvalidChangeBatch errors are split; uncertain writes are not retried here. |
| func applyChanges(ctx context.Context, client route53API, zoneID string, changes []r53types.Change) error { |
| - var apply func([]r53types.Change) error |
| - apply = func(chunk []r53types.Change) error { |
| + var groups [][]r53types.Change |
| + byName := make(map[string]int) |
| + for _, c := range changes { |
| + name := strings.ToLower(aws.ToString(c.ResourceRecordSet.Name)) |
| + i, ok := byName[name] |
| + if !ok { |
| + i = len(groups) |
| + byName[name] = i |
| + groups = append(groups, nil) |
| + } |
| + groups[i] = append(groups[i], c) |
| + } |
| + for _, group := range groups { |
| + sort.SliceStable(group, func(i, j int) bool { |
| + return group[i].Action == r53types.ChangeActionDelete && group[j].Action != r53types.ChangeActionDelete |
| + }) |
| + } |
| + var apply func([][]r53types.Change) error |
| + apply = func(batch [][]r53types.Change) error { |
| + var chunk []r53types.Change |
| + for _, group := range batch { |
| + chunk = append(chunk, group...) |
| + } |
| _, err := client.ChangeResourceRecordSets(ctx, &route53.ChangeResourceRecordSetsInput{ |
| HostedZoneId: aws.String(zoneID), |
| ChangeBatch: &r53types.ChangeBatch{Changes: chunk}, |
| }) |
| if err != nil { |
| var invalid *r53types.InvalidChangeBatch |
| - isInvalid := errors.As(err, &invalid) |
| - if isInvalid && len(chunk) > 1 { |
| - mid := len(chunk) / 2 |
| - leftErr := apply(chunk[:mid]) |
| - rightErr := apply(chunk[mid:]) |
| + if !errors.As(err, &invalid) { |
| + slog.Error("steering: change request failed", "count", len(chunk), "error", err) |
| + return err |
| + } |
| + if len(batch) > 1 { |
| + mid := len(batch) / 2 |
| + leftErr := apply(batch[:mid]) |
| + rightErr := apply(batch[mid:]) |
| return errors.Join(leftErr, rightErr) |
| } |
| - if isInvalid && len(invalid.Messages) > 0 { |
| + if len(invalid.Messages) > 0 { |
| err = fmt.Errorf("%w: %s", err, strings.Join(invalid.Messages, "; ")) |
| } |
| - message := "steering: change request failed" |
| - if isInvalid { |
| - message = "steering: refused change" |
| - } |
| for _, c := range chunk { |
| - slog.Error(message, "name", aws.ToString(c.ResourceRecordSet.Name), "set", aws.ToString(c.ResourceRecordSet.SetIdentifier), "action", c.Action, "error", err) |
| + slog.Error("steering: refused change", "name", aws.ToString(c.ResourceRecordSet.Name), "set", aws.ToString(c.ResourceRecordSet.SetIdentifier), "action", c.Action, "error", err) |
| } |
| return err |
| } |
| @@ -943,17 +977,31 @@ func applyChanges(ctx context.Context, client route53API, zoneID string, changes |
| return nil |
| } |
| var failures []error |
| - for start := 0; start < len(changes); start += changeBatchLimit { |
| - end := min(start+changeBatchLimit, len(changes)) |
| - if err := apply(changes[start:end]); err != nil { |
| - failures = append(failures, fmt.Errorf("steering: change batch %d-%d of %d in %s: %w", start, end, len(changes), zoneID, err)) |
| + for start := 0; start < len(groups); { |
| + end, count := start, 0 |
| + for end < len(groups) && count+len(groups[end]) <= changeBatchLimit { |
| + count += len(groups[end]) |
| + end++ |
| + } |
| + if end == start { |
| + // Refuse an oversized name intact; splitting could withdraw it. |
| + err := fmt.Errorf("steering: change group for %s exceeds batch limit %d", aws.ToString(groups[start][0].ResourceRecordSet.Name), changeBatchLimit) |
| + slog.Error("steering: change request failed", "count", len(groups[start]), "error", err) |
| + failures = append(failures, err) |
| + start++ |
| + continue |
| + } |
| + if err := apply(groups[start:end]); err != nil { |
| + failures = append(failures, fmt.Errorf("steering: change groups %d-%d of %d in %s: %w", start, end, len(groups), zoneID, err)) |
| } |
| + start = end |
| } |
| return errors.Join(failures...) |
| } |
| -// oneTargetPerRegion selects a deployment-wide target before any writes. |
| -// Existing latency answers win; ties and new regions use the lowest box ref. |
| +// oneTargetPerRegion ranks boxes once, with incumbents before new targets, |
| +// then by box ref. Each name takes its highest-ranked eligible box per region; |
| +// a box excluded by that name's replica mark cannot displace its home. |
| func oneTargetPerRegion(want []desiredRecord, existing []r53types.ResourceRecordSet) []desiredRecord { |
| type target struct{ region, box, eip string } |
| current := make(map[target]bool) |
| @@ -962,24 +1010,47 @@ func oneTargetPerRegion(want []desiredRecord, existing []r53types.ResourceRecord |
| current[target{string(rr.Region), aws.ToString(rr.SetIdentifier), firstValue(rr)}] = true |
| } |
| } |
| - winners := make(map[string]target) |
| + rank := make(map[target]int) |
| + var targets []target |
| + for _, rec := range want { |
| + candidate := target{rec.Region, rec.Box, rec.EIP} |
| + if _, ok := rank[candidate]; !ok { |
| + rank[candidate] = 0 |
| + targets = append(targets, candidate) |
| + } |
| + } |
| + sort.Slice(targets, func(i, j int) bool { |
| + a, b := targets[i], targets[j] |
| + if a.region != b.region { |
| + return a.region < b.region |
| + } |
| + if current[a] != current[b] { |
| + return current[a] |
| + } |
| + if a.box != b.box { |
| + return a.box < b.box |
| + } |
| + return a.eip < b.eip |
| + }) |
| + for i, candidate := range targets { |
| + rank[candidate] = i |
| + } |
| + type nameRegion struct{ name, region string } |
| + winners := make(map[nameRegion]target) |
| for _, rec := range want { |
| candidate := target{rec.Region, rec.Box, rec.EIP} |
| - kept, ok := winners[rec.Region] |
| - if !ok || (current[candidate] && !current[kept]) || (current[candidate] == current[kept] && candidate.box < kept.box) { |
| - winners[rec.Region] = candidate |
| + key := nameRegion{rec.Name, rec.Region} |
| + kept, ok := winners[key] |
| + if !ok || rank[candidate] < rank[kept] { |
| + winners[key] = candidate |
| } |
| } |
| out := make([]desiredRecord, 0, len(want)) |
| - logged := make(map[target]bool) |
| for _, rec := range want { |
| candidate := target{rec.Region, rec.Box, rec.EIP} |
| - kept := winners[rec.Region] |
| + kept := winners[nameRegion{rec.Name, rec.Region}] |
| if candidate != kept { |
| - if !logged[candidate] { |
| - slog.Error("steering: dropped duplicate region target", "region", rec.Region, "kept", kept.box, "dropped", rec.Box) |
| - logged[candidate] = true |
| - } |
| + slog.Error("steering: dropped duplicate region target", "name", rec.Name, "region", rec.Region, "kept", kept.box, "dropped", rec.Box) |
| continue |
| } |
| out = append(out, rec) |
diff --git a/internal/steering/route53_test.go b/internal/steering/route53_test.go| index f54823c67..773a25a72 100644 |
| --- a/internal/steering/route53_test.go |
| +++ b/internal/steering/route53_test.go |
| @@ -1093,18 +1093,26 @@ func TestConvergeTagFailureRemovesTheOrphan(t *testing.T) { |
| // TestConvergeChangeFailureIsLoud: a failed batch fails the pass. The |
| // housekeeper retries next tick; it must not be swallowed. |
| func TestConvergeChangeFailureIsLoud(t *testing.T) { |
| - f := newFake() |
| - f.failChange = errors.New("InvalidChangeBatch") |
| - err := converge(context.Background(), f, testZone, []desiredRecord{dublinRec}) |
| - if err == nil { |
| - t.Fatalf("a failed change batch did not fail the pass") |
| - } |
| - if !strings.Contains(err.Error(), "InvalidChangeBatch") { |
| - t.Errorf("the underlying error was not wrapped: %v", err) |
| - } |
| - // The new check has no surviving record and must be collected. |
| - if len(f.deletedChecks) != 1 { |
| - t.Errorf("unreferenced check leaked after failed record batch: %v", f.deletedChecks) |
| + for _, failure := range []error{errors.New("request timed out before write completed"), invalidBatch("record refused")} { |
| + t.Run(failure.Error(), func(t *testing.T) { |
| + f := newFake() |
| + f.failChange = failure |
| + for pass := 0; pass < 2; pass++ { |
| + err := converge(context.Background(), f, testZone, []desiredRecord{dublinRec}) |
| + if !errors.Is(err, failure) { |
| + t.Fatalf("underlying failure lost: %v", err) |
| + } |
| + if f.nCreateCheck != 1 || len(f.checks) != 1 || f.nDeleteCheck != 0 { |
| + t.Fatalf("pass %d: checks=%v created=%d deleted=%v", pass, f.checks, f.nCreateCheck, f.deletedChecks) |
| + } |
| + } |
| + // A late write or the next successful pass must use the retained check. |
| + f.failChange = nil |
| + mustConverge(t, f, []desiredRecord{dublinRec}) |
| + if f.nCreateCheck != 1 || len(f.records) != 1 || aws.ToString(f.records[0].HealthCheckId) != "hc-1" { |
| + t.Fatalf("retry did not reuse check: records=%v created=%d", f.records, f.nCreateCheck) |
| + } |
| + }) |
| } |
| } |