{"record":{"id":"9af82757ccc8c883","repo":"temporalio/temporal","slug":"w-provided-endpoint-version-v-current-endpoint","errorCode":null,"errorMessage":"%w. provided endpoint version: %v current endpoint version: %v","messagePattern":"%w\\. provided endpoint version: (.+?) current endpoint version: (.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/persistence/cassandra/nexus_endpoint_store.go","lineNumber":152,"sourceCode":"\t\t}\n\n\t\tcurrentTableVersion, err := getTypedFieldFromRow[int64](\"version\", previousPartitionStatus)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error retrieving current table version: %w\", err)\n\t\t}\n\t\tif currentTableVersion != request.LastKnownTableVersion {\n\t\t\treturn fmt.Errorf(\"%w. provided table version: %v current table version: %v\",\n\t\t\t\tp.ErrNexusTableVersionConflict,\n\t\t\t\trequest.LastKnownTableVersion,\n\t\t\t\tcurrentTableVersion)\n\t\t}\n\n\t\tcurrentVersion, err := getTypedFieldFromRow[int64](\"version\", previousEndpoint)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error retrieving current endpoint version: %w\", err)\n\t\t}\n\t\tif currentVersion != request.Endpoint.Version {\n\t\t\treturn fmt.Errorf(\"%w. provided endpoint version: %v current endpoint version: %v\",\n\t\t\t\tp.ErrNexusEndpointVersionConflict,\n\t\t\t\trequest.Endpoint.Version,\n\t\t\t\tcurrentVersion)\n\t\t}\n\n\t\t// This should never happen. This means the request had the correct versions and gocql did not\n\t\t// return an error but for some reason the update was not applied.\n\t\treturn serviceerror.NewInternal(\"CreateOrUpdateNexusEndpoint failed.\")\n\t}\n\n\treturn nil\n}\n\nfunc (s *NexusEndpointStore) GetNexusEndpoint(\n\tctx context.Context,\n\trequest *p.GetNexusEndpointRequest,\n) (*p.InternalNexusEndpoint, error) {\n\tquery := s.session.Query(templateGetEndpointByIdQuery, rowTypeNexusEndpoint, request.ID).WithContext(ctx)","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/common/persistence/cassandra/nexus_endpoint_store.go#L134-L170","documentation":"Error \"%w. provided endpoint version: %v current endpoint version: %v\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at common/persistence/cassandra/nexus_endpoint_store.go:152 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}