{"record":{"id":"1d5e5a5b95717ef3","repo":"kubernetes/kops","slug":"failed-to-apply-resource-record-set-w","errorCode":null,"errorMessage":"failed to apply resource record set: %w","messagePattern":"failed to apply resource record set: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"dnsprovider/pkg/dnsprovider/providers/scaleway/dns.go","lineNumber":388,"sourceCode":"\t\t}\n\t}\n\tif len(r.additions) > 0 {\n\t\tfor _, rrset := range r.additions {\n\t\t\tchangeBatch = putRecordToAddInChangeBatch(changeBatch, rrset, r.zone.Name())\n\t\t}\n\t}\n\tif len(r.removals) > 0 {\n\t\tfor _, rrset := range r.removals {\n\t\t\tchangeBatch = putRecordToDeleteInChangeBatch(changeBatch, rrset, r.zone.Name(), records)\n\t\t}\n\t}\n\n\t_, err = r.domainAPI.UpdateDNSZoneRecords(&domain.UpdateDNSZoneRecordsRequest{\n\t\tDNSZone: r.zone.Name(),\n\t\tChanges: changeBatch,\n\t}, scw.WithContext(ctx))\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to apply resource record set: %w\", err)\n\t}\n\n\tklog.V(2).Info(\"record change sets successfully applied\")\n\treturn nil\n}\n\n// IsEmpty returns true if a changeset is empty, false otherwise\nfunc (r *resourceRecordChangeset) IsEmpty() bool {\n\tif len(r.additions) == 0 && len(r.removals) == 0 && len(r.upserts) == 0 {\n\t\treturn true\n\t}\n\n\treturn false\n}\n\n// ResourceRecordSets returns the associated resourceRecordSets of a changeset\nfunc (r *resourceRecordChangeset) ResourceRecordSets() dnsprovider.ResourceRecordSets {\n\treturn r.rrsets","sourceCodeStart":370,"sourceCodeEnd":406,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/dnsprovider/pkg/dnsprovider/providers/scaleway/dns.go#L370-L406","documentation":"Scaleway resourceRecordChangeset.Apply wraps a failure of UpdateDNSZoneRecords, the single batched call that applies all additions/removals/upserts of a changeset. It fires when the Scaleway API rejects the change batch (invalid record data, concurrent modification, auth) — the whole changeset fails atomically.","triggerScenarios":"Thrown at dnsprovider/pkg/dnsprovider/providers/scaleway/dns.go:388 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check Scaleway credentials and DNS quota","Verify the zone exists","Retry the apply after transient errors"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}