cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
29.96k stars 3.79k forks source link

pkg/server/application_api/application_api_test: TestThrottlingMetadata failed #131630

Open github-actions[bot] opened 5 hours ago

github-actions[bot] commented 5 hours ago

pkg/server/application_api/application_api_test.TestThrottlingMetadata failed on master @ 827df499036e74200af981a38c99a0b518e6bce6:

                            - TelemetryDeadlineSeconds: (int64) 1727650154,
                            - LastTelemetryReceivedSeconds: (int64) 1727045354,
                            + TelemetryDeadlineSeconds: (int64) 604800,
                            + LastTelemetryReceivedSeconds: (int64) 0,
                              NodeIdsWithTelemetryProblems: ([]string) (len=3) {
            Test:           TestThrottlingMetadata/free_license_telemetry_missing_and_telemetry_deadline_over
    --- FAIL: TestThrottlingMetadata/free_license_telemetry_missing_and_telemetry_deadline_over (0.01s)
=== RUN   TestThrottlingMetadata/free_license_with_missing_telemetry
    telemetry_test.go:325: 
            Error Trace:    pkg/server/application_api/application_api_test_test/pkg/server/application_api/telemetry_test.go:325
            Error:          Not equal: 
                            expected: serverpb.GetThrottlingMetadataResponse{Throttled:false, ThrottleExplanation:"", HasGracePeriod:true, GracePeriodEndSeconds:1730332154, HasTelemetryDeadline:true, TelemetryDeadlineSeconds:1728168554, LastTelemetryReceivedSeconds:1727563754, NodeIdsWithTelemetryProblems:[]string{"1", "2", "3"}}
                            actual  : serverpb.GetThrottlingMetadataResponse{Throttled:true, ThrottleExplanation:"The maximum number of concurrently open transactions has been reached because the license requires diagnostic reporting, but none has been received by Cockroach Labs.", HasGracePeriod:true, GracePeriodEndSeconds:1730332154, HasTelemetryDeadline:true, TelemetryDeadlineSeconds:604800, LastTelemetryReceivedSeconds:0, NodeIdsWithTelemetryProblems:[]string{"1", "2", "3"}}

                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1,4 +1,4 @@
                             (serverpb.GetThrottlingMetadataResponse) {
                            - Throttled: (bool) false,
                            - ThrottleExplanation: (string) "",
                            + Throttled: (bool) true,
                            + ThrottleExplanation: (string) (len=166) "The maximum number of concurrently open transactions has been reached because the license requires diagnostic reporting, but none has been received by Cockroach Labs.",
                              HasGracePeriod: (bool) true,
                            @@ -6,4 +6,4 @@
                              HasTelemetryDeadline: (bool) true,
                            - TelemetryDeadlineSeconds: (int64) 1728168554,
                            - LastTelemetryReceivedSeconds: (int64) 1727563754,
                            + TelemetryDeadlineSeconds: (int64) 604800,
                            + LastTelemetryReceivedSeconds: (int64) 0,
                              NodeIdsWithTelemetryProblems: ([]string) (len=3) {
            Test:           TestThrottlingMetadata/free_license_with_missing_telemetry
    --- FAIL: TestThrottlingMetadata/free_license_with_missing_telemetry (0.01s)
=== RUN   TestThrottlingMetadata/no_license
    telemetry_test.go:325: 
            Error Trace:    pkg/server/application_api/application_api_test_test/pkg/server/application_api/telemetry_test.go:325
            Error:          Not equal: 
                            expected: serverpb.GetThrottlingMetadataResponse{Throttled:false, ThrottleExplanation:"", HasGracePeriod:true, GracePeriodEndSeconds:1728341348, HasTelemetryDeadline:false, TelemetryDeadlineSeconds:0, LastTelemetryReceivedSeconds:0, NodeIdsWithTelemetryProblems:[]string{}}
                            actual  : serverpb.GetThrottlingMetadataResponse{Throttled:false, ThrottleExplanation:"", HasGracePeriod:true, GracePeriodEndSeconds:1728341353, HasTelemetryDeadline:false, TelemetryDeadlineSeconds:0, LastTelemetryReceivedSeconds:0, NodeIdsWithTelemetryProblems:[]string{}}

                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -4,3 +4,3 @@
                              HasGracePeriod: (bool) true,
                            - GracePeriodEndSeconds: (int64) 1728341348,
                            + GracePeriodEndSeconds: (int64) 1728341353,
                              HasTelemetryDeadline: (bool) false,
            Test:           TestThrottlingMetadata/no_license
    --- FAIL: TestThrottlingMetadata/no_license (0.42s)

Parameters:

See also: How To Investigate a Go Test Failure (internal)

/cc @cockroachdb/unowned

This test on roachdash | Improve this report!

Jira issue: CRDB-42635

cockroach-teamcity commented 3 hours ago

pkg/server/application_api/application_api_test.TestThrottlingMetadata failed with artifacts on master @ 8d4573ae633c98f6abae86745e5f7b971b0ff8e7:

                             (serverpb.GetThrottlingMetadataResponse) {
                            - Throttled: (bool) false,
                            - ThrottleExplanation: (string) "",
                            + Throttled: (bool) true,
                            + ThrottleExplanation: (string) (len=166) "The maximum number of concurrently open transactions has been reached because the license requires diagnostic reporting, but none has been received by Cockroach Labs.",
                              HasGracePeriod: (bool) true,
                            @@ -6,5 +6,7 @@
                              HasTelemetryDeadline: (bool) true,
                            - TelemetryDeadlineSeconds: (int64) 1728348773,
                            - LastTelemetryReceivedSeconds: (int64) 1727743973,
                            - NodeIdsWithTelemetryProblems: ([]string) {
                            + TelemetryDeadlineSeconds: (int64) 604800,
                            + LastTelemetryReceivedSeconds: (int64) 0,
                            + NodeIdsWithTelemetryProblems: ([]string) (len=2) {
                            +  (string) (len=1) "2",
                            +  (string) (len=1) "3"
                              }
            Test:           TestThrottlingMetadata/free_license
    --- FAIL: TestThrottlingMetadata/free_license (0.03s)
=== RUN   TestThrottlingMetadata/free_license_expired
    telemetry_test.go:325: 
            Error Trace:    pkg/server/application_api/application_api_test_test/pkg/server/application_api/telemetry_test.go:325
            Error:          Not equal: 
                            expected: serverpb.GetThrottlingMetadataResponse{Throttled:false, ThrottleExplanation:"", HasGracePeriod:true, GracePeriodEndSeconds:1730332373, HasTelemetryDeadline:true, TelemetryDeadlineSeconds:1728348773, LastTelemetryReceivedSeconds:1727743973, NodeIdsWithTelemetryProblems:[]string{}}
                            actual  : serverpb.GetThrottlingMetadataResponse{Throttled:true, ThrottleExplanation:"The maximum number of concurrently open transactions has been reached because the license requires diagnostic reporting, but none has been received by Cockroach Labs.", HasGracePeriod:true, GracePeriodEndSeconds:1730332373, HasTelemetryDeadline:true, TelemetryDeadlineSeconds:604800, LastTelemetryReceivedSeconds:0, NodeIdsWithTelemetryProblems:[]string{"1", "2", "3"}}

                            Diff:
                            --- Expected
                            +++ Actual
                            @@ -1,4 +1,4 @@
                             (serverpb.GetThrottlingMetadataResponse) {
                            - Throttled: (bool) false,
                            - ThrottleExplanation: (string) "",
                            + Throttled: (bool) true,
                            + ThrottleExplanation: (string) (len=166) "The maximum number of concurrently open transactions has been reached because the license requires diagnostic reporting, but none has been received by Cockroach Labs.",
                              HasGracePeriod: (bool) true,
                            @@ -6,5 +6,8 @@
                              HasTelemetryDeadline: (bool) true,
                            - TelemetryDeadlineSeconds: (int64) 1728348773,
                            - LastTelemetryReceivedSeconds: (int64) 1727743973,
                            - NodeIdsWithTelemetryProblems: ([]string) {
                            + TelemetryDeadlineSeconds: (int64) 604800,
                            + LastTelemetryReceivedSeconds: (int64) 0,
                            + NodeIdsWithTelemetryProblems: ([]string) (len=3) {
                            +  (string) (len=1) "1",
                            +  (string) (len=1) "2",
                            +  (string) (len=1) "3"
                              }
            Test:           TestThrottlingMetadata/free_license_expired
    --- FAIL: TestThrottlingMetadata/free_license_expired (0.03s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

This test on roachdash | Improve this report!