Skip to content

pkg/sql/sqlstats/sqlstats_test: TestDataDrivenTest failed #171723

Description

@cockroach-teamcity

pkg/sql/sqlstats/sqlstats_test.TestDataDrivenTest failed on master @ e08f3f63de8991e55b632e94ecbf169e68a98221:

=== RUN   TestDataDrivenTest
    test_log_scope.go:172: test logs captured to: outputs.zip/logTestDataDrivenTest3794338179
    test_log_scope.go:82: use -show-logs to present logs inline
    sqlstats_test.go:99: -- test log scope end --
test logs left over in: outputs.zip/logTestDataDrivenTest3794338179
--- FAIL: TestDataDrivenTest (96.37s)
=== RUN   TestDataDrivenTest/plpgsql
    test_server_shim.go:168: automatically injected a shared process virtual cluster under test; see comment at top of test_server_shim.go for details.
    sqlstats_test.go:73: error executing query="CREATE TABLE IF NOT EXISTS test(a int);\n  CREATE OR REPLACE PROCEDURE insert_incremental(n INT)\n  LANGUAGE plpgsql\n  AS $$\n  DECLARE\n    i INT := 0;\n    next_val INT;\n  BEGIN\n    WHILE i < n LOOP\n      SELECT coalesce(max(a), 0) + 1 INTO next_val FROM test;\n      INSERT INTO test(a) VALUES (next_val);\n      i := i + 1;\n    END LOOP;\n  END;\n  $$;\nCALL insert_incremental(5);" args=[]: pq: function 107 does not exist
    datadriven.go:343: 
        fatal during /mnt/engflow/worker/work/3/exec/bazel-out/k8-fastbuild/bin/pkg/sql/sqlstats/sqlstats_test_/sqlstats_test.runfiles/com_github_cockroachdb_cockroach/pkg/sql/sqlstats/testdata/plpgsql:1:
        CREATE TABLE IF NOT EXISTS test(a int);
          CREATE OR REPLACE PROCEDURE insert_incremental(n INT)
          LANGUAGE plpgsql
          AS $$
          DECLARE
            i INT := 0;
            next_val INT;
          BEGIN
            WHILE i < n LOOP
              SELECT coalesce(max(a), 0) + 1 INTO next_val FROM test;
              INSERT INTO test(a) VALUES (next_val);
              i := i + 1;
            END LOOP;
          END;
          $$;
        CALL insert_incremental(5);
--- FAIL: TestDataDrivenTest/plpgsql (24.99s)

Parameters:

  • attempt=1
  • race=true
  • run=1
  • shard=1
Help

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

/cc @cockroachdb/obs-prs

This test on roachdash | Improve this report!

Jira issue: CRDB-64858

Metadata

Metadata

Assignees

Labels

A-schema-catalogRelated to the schema descriptors collection and the catalog API in general.A-sql-executorSQL txn logicC-test-failureBroken test (automatically or manually discovered).O-robotOriginated from a bot.P-2Issues/test failures with a fix SLA of 3 monthsT-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)branch-masterFailures and bugs on the master branch.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions