Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ccl/backupccl: TestDataDriven_user_defined_functions failed #120819

Closed
cockroach-teamcity opened this issue Mar 21, 2024 · 2 comments · Fixed by #121146
Closed

ccl/backupccl: TestDataDriven_user_defined_functions failed #120819

cockroach-teamcity opened this issue Mar 21, 2024 · 2 comments · Fixed by #121146
Assignees
Labels
A-disaster-recovery branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. P-0 Issues/test failures with a fix SLA of 2 weeks release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. T-disaster-recovery
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Mar 21, 2024

ccl/backupccl.TestDataDriven_user_defined_functions failed on master @ 3060756a084cc437114d64265e79ace5720a7317:

        pq: cannot set schema on relation "tbl1" because function "f1" depends on it
        HINT: consider dropping "f1" first.
    datadriven.go:144: 
        /var/lib/engflow/worker/work/1/exec/bazel-out/k8-fastbuild/bin/pkg/ccl/backupccl/backupccl_test_/backupccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/backupccl/testdata/backup-restore/user-defined-functions:306:
        exec-sql [0 args]
        DROP TYPE sc1.enum1
        ----
        pq: cannot drop type "enum1" because other objects ([db1.sc1.f1]) still depend on it
    test_server_shim.go:157: automatically injected a shared process virtual cluster under test; see comment at top of test_server_shim.go for details.
    datadriven.go:144: 
        /var/lib/engflow/worker/work/1/exec/bazel-out/k8-fastbuild/bin/pkg/ccl/backupccl/backupccl_test_/backupccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/backupccl/testdata/backup-restore/user-defined-functions:313:
        new-cluster [1 args]
        <no input to command>
        ----
    datadriven.go:144: 
        /var/lib/engflow/worker/work/1/exec/bazel-out/k8-fastbuild/bin/pkg/ccl/backupccl/backupccl_test_/backupccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/backupccl/testdata/backup-restore/user-defined-functions:316:
        exec-sql [1 args]
        CREATE DATABASE db1;
        CREATE SCHEMA sc1;
        CREATE TABLE sc1.t(a INT PRIMARY KEY);
        CREATE FUNCTION sc1.f() RETURNS INT LANGUAGE SQL AS $$ SELECT 1 $$;
        ----
    datadriven.go:144: 
        /var/lib/engflow/worker/work/1/exec/bazel-out/k8-fastbuild/bin/pkg/ccl/backupccl/backupccl_test_/backupccl_test.runfiles/com_github_cockroachdb_cockroach/pkg/ccl/backupccl/testdata/backup-restore/user-defined-functions:324:
         WITH db_id AS (
          SELECT id FROM system.namespace WHERE name = 'defaultdb'
        ),
        schema_id AS (
          SELECT ns.id
          FROM system.namespace AS ns
          JOIN db_id ON ns."parentID" = db_id.id
          WHERE ns.name = 'sc1'
        )
        SELECT id FROM schema_id;
        expected:
        109
        
        found:
        111
    testutils.go:289: no Invalid Descriptors
    testutils.go:289: no Invalid Descriptors
    testutils.go:289: no Invalid Descriptors
    testutils.go:289: no Invalid Descriptors
    testutils.go:266: Warning: Could not check for invalid descriptors: sql: database is closed
    testutils.go:266: Warning: Could not check for invalid descriptors: sql: database is closed
    testutils.go:266: Warning: Could not check for invalid descriptors: sql: database is closed
    testutils.go:266: Warning: Could not check for invalid descriptors: sql: database is closed
    panic.go:626: -- test log scope end --
test logs left over in: outputs.zip/logTestDataDriven_user_defined_functions3812214637
--- FAIL: TestDataDriven_user_defined_functions (13.11s)

Parameters:

  • attempt=1
  • run=2
  • shard=24
Help

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

/cc @cockroachdb/test-eng

This test on roachdash | Improve this report!

Jira issue: CRDB-36881

@cockroach-teamcity cockroach-teamcity added branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. T-testeng TestEng Team labels Mar 21, 2024
@cockroach-teamcity cockroach-teamcity added this to the 24.1 milestone Mar 21, 2024
Copy link

blathers-crl bot commented Mar 21, 2024

cc @cockroachdb/disaster-recovery

@renatolabs renatolabs removed the T-testeng TestEng Team label Mar 21, 2024
@msbutler
Copy link
Collaborator

this may have similar root cause as #120929, but I'll wait for input from sql-foundations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-disaster-recovery branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-robot Originated from a bot. P-0 Issues/test failures with a fix SLA of 2 weeks release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. T-disaster-recovery
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants