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

roachtest: sqlsmith/setup=tpcc/setting=ddl-nodrop failed #95641

Closed
cockroach-teamcity opened this issue Jan 21, 2023 · 12 comments
Closed

roachtest: sqlsmith/setup=tpcc/setting=ddl-nodrop failed #95641

cockroach-teamcity opened this issue Jan 21, 2023 · 12 comments
Assignees
Labels
branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Jan 21, 2023

roachtest.sqlsmith/setup=tpcc/setting=ddl-nodrop failed with artifacts on master @ 2861a4ee05fac1cc13f87bf00f368a65ea8700dc:

test artifacts and logs in: /artifacts/sqlsmith/setup=tpcc/setting=ddl-nodrop/run_1
(sqlsmith.go:238).func3: error: pq: internal error: executing declarative schema change PostCommitPhase stage 2 of 7 with 1 BackfillType op (rollback=false) for ALTER TABLE: failed to construct index entries during backfill: ResolveFunctionByOID unimplemented
stmt:
ALTER TABLE defaultdb.public.item ADD COLUMN c̈ol14 REGPROCEDURE DEFAULT (9:::OID::OID);

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

/cc @cockroachdb/sql-queries

This test on roachdash | Improve this report!

Jira issue: CRDB-23644

@cockroach-teamcity cockroach-teamcity added branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. labels Jan 21, 2023
@cockroach-teamcity cockroach-teamcity added this to the 23.1 milestone Jan 21, 2023
@blathers-crl blathers-crl bot added the T-sql-queries SQL Queries Team label Jan 21, 2023
@cockroach-teamcity
Copy link
Member Author

roachtest.sqlsmith/setup=tpcc/setting=ddl-nodrop failed with artifacts on master @ b21379bb56dd206e6f63cc7d07ca72e85db7a4c4:

test artifacts and logs in: /artifacts/sqlsmith/setup=tpcc/setting=ddl-nodrop/run_1
(sqlsmith.go:238).func3: error: pq: internal error: executing declarative schema change PostCommitPhase stage 2 of 7 with 1 BackfillType op (rollback=false) for ALTER TABLE: failed to construct index entries during backfill: ResolveFunctionByOID unimplemented
stmt:
ALTER TABLE defaultdb.public.new_order ADD COLUMN "%vcol78" REGPROC DEFAULT (440462301:::OID) NOT NULL;

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

roachtest.sqlsmith/setup=tpcc/setting=ddl-nodrop failed with artifacts on master @ dc974cd698364a4db5acb630162dd8b1856cfad6:

test artifacts and logs in: /artifacts/sqlsmith/setup=tpcc/setting=ddl-nodrop/run_1
(sqlsmith.go:238).func3: error: pq: internal error: executing declarative schema change PostCommitPhase stage 2 of 7 with 1 BackfillType op (rollback=false) for ALTER TABLE: failed to construct index entries during backfill: ResolveFunctionByOID unimplemented
stmt:
ALTER TABLE defaultdb.public.customer ADD COLUMN col28 REGPROCEDURE DEFAULT (5:::OID::OID) NULL CHECK (true::BOOL);

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

roachtest.sqlsmith/setup=tpcc/setting=ddl-nodrop failed with artifacts on master @ 78fe59d0536be35fcec68280142746fb91515551:

test artifacts and logs in: /artifacts/sqlsmith/setup=tpcc/setting=ddl-nodrop/run_1
(sqlsmith.go:238).func3: error: pq: internal error: executing declarative schema change PostCommitPhase stage 2 of 7 with 1 BackfillType op (rollback=false) for ALTER TABLE: failed to construct index entries during backfill: ResolveFunctionByOID unimplemented
stmt:
ALTER TABLE defaultdb.public.warehouse
	ADD COLUMN "co% l20" REGPROCEDURE DEFAULT (1296736401:::OID) CHECK (false) CHECK (false);

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

Same failure on other branches

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

roachtest.sqlsmith/setup=tpcc/setting=ddl-nodrop failed with artifacts on master @ 69dd453d0e61e258f402c5751de310405743cd18:

test artifacts and logs in: /artifacts/sqlsmith/setup=tpcc/setting=ddl-nodrop/run_1
(sqlsmith.go:238).func3: error: pq: internal error: executing declarative schema change PostCommitPhase stage 2 of 7 with 1 BackfillType op (rollback=false) for ALTER TABLE: failed to construct index entries during backfill: ResolveFunctionByOID unimplemented
stmt:
ALTER TABLE defaultdb.public.item ADD COLUMN "col 9" REGPROCEDURE DEFAULT (3039363388:::OID) NOT NULL;

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

Same failure on other branches

This test on roachdash | Improve this report!

@ajwerner
Copy link
Contributor

@chengxiong-ruan maybe the answer should be that we disallow adding such a column, but then randgen would need to be told about that. For what it's worth, I think this behavior is sort of legit and the error message is terrible.

@ajwerner
Copy link
Contributor

One approach is to reject adding columns of type REGPROCEDURE. Things are a little bit funny here because on some level it's the logic to do the cast we injected recently @mgartner that leads to the error.

@mgartner
Copy link
Collaborator

What prevents us from implementing ResolveFunctionByOID in the backfiller?

@ajwerner
Copy link
Contributor

Deep down I think the actual problem here is our cast from int to regprocedure is not like postgres's. In postgres it's infallible (or so it seems).

postgres=# create table t( i int primary key);
CREATE TABLE
postgres=# insert into t values (1);
INSERT 0 1
postgres=# insert into t values (1);
INSERT 0 1
postgres=# alter table t add column j regprocedure default 12345678;
ALTER TABLE
postgres=# select * from t;
 i |    j     
---+----------
 1 | 12345678
(1 row)

postgres=# select 12345678::regprocedure;
 regprocedure 
--------------
 12345678
(1 row)

@chengxiong-ruan
Copy link
Contributor

What prevents us from implementing ResolveFunctionByOID in the backfiller?

Nothing prevent us, we'll need it eventually for things like column default values.

@chengxiong-ruan
Copy link
Contributor

Hmm...I guess it's not easy to plumb things through into the DummyEvalPlanner

@ajwerner
Copy link
Contributor

ajwerner commented Feb 1, 2023

Let's also be real, this is not something our customers actually want to do. It's an esoteric feature that maybe maybe would be useful to some far future management of schema objects by some tooling that certainly wouldn't work in cockroach today. Whatever we can do to make this test just not fail in an expedient way is what we should do here.

mgartner added a commit to mgartner/cockroach that referenced this issue Feb 1, 2023
@mgartner
Copy link
Collaborator

mgartner commented Feb 1, 2023

Fair enough: #96346

craig bot pushed a commit that referenced this issue Feb 1, 2023
96193: roachtest/awsdms: add large data replication test r=otan a=Jeremyyang920

This commit adds a test that will create a dms task to full load 200M rows into a crdb cluster.

Fixes: #95329
Release note: None

96292: rpc: Make it explicit that we only Version from Settings r=knz a=andrewbaptist

Cleaning up some of the code in this package, the entire Settings object was stored in the HeartbeatService. Only the Version was required.

This PR removes the unnecessary struct.

Epic: none
Release note: None

96313: backupccl: fix key rewriter race in generative split and scatter processor r=rhu713 a=rhu713

The generative split and scatter processor is currently causing tests to fail under race because there are many goroutines that are operating with the same splitAndScatterer, which cannot be used concurrently as the underlying key rewriter cannot be used concurrently. Modify the processor so that every worker that uses the splitAndScatterer now uses its own instance.

Fixes: #95808

Release note: None

96325: ci: update bazel builder image r=rickystewart a=cockroach-teamcity

Release note: None
Epic: None


96346: randgen: do not generate REGPROC and REGPROCEDURE columns r=mgartner a=mgartner

Informs #95641

Epic: None

Release note: None

96371: cli: close listeners and all open connections on disk stall r=nicktrav a=jbowens

Forwardport of #96145.

----

Disk stalls prevent a node from making progress. Any ranges for which the stalled node is leaseholder may also be prevented from making progress while the stalled node remains online but incapacitated. CockroachDB nodes detect stalls within their stores through timing all write filesystem operations. Previously, when a stall was detected, Cockroach would simply fatal the process. However, a process blocked on disk IO cannot be terminated. The process would enter the zombie state, but would be unable to be reaped.

This commit adds a new step to disk stall handling, closing all open sockets.

Epic: None
Release note (bug fix): Fix a bug where a node with a disk stall would continue to accept new connections and preserve existing connections until the disk stall abated.

Co-authored-by: Jeremy Yang <[email protected]>
Co-authored-by: Andrew Baptist <[email protected]>
Co-authored-by: Rui Hu <[email protected]>
Co-authored-by: cockroach-teamcity <[email protected]>
Co-authored-by: Marcus Gartner <[email protected]>
Co-authored-by: Jackson Owens <[email protected]>
blathers-crl bot pushed a commit that referenced this issue Feb 6, 2023
@exalate-issue-sync exalate-issue-sync bot removed the T-sql-queries SQL Queries Team label Feb 17, 2023
@exalate-issue-sync exalate-issue-sync bot added T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) and removed T-sql-schema-deprecated Use T-sql-foundations instead labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
None yet
Development

No branches or pull requests

4 participants