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

ysql: master fatal when row locking system table #8967

Closed
jaki opened this issue Jun 17, 2021 · 3 comments
Closed

ysql: master fatal when row locking system table #8967

jaki opened this issue Jun 17, 2021 · 3 comments
Assignees
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug priority/medium Medium priority issue

Comments

@jaki
Copy link
Contributor

jaki commented Jun 17, 2021

Jira Link: DB-1676
Easily get master fatal when doing row lock select on a system table.

BEGIN;
SELECT * FROM pg_tablespace FOR SHARE;

output:

ERROR:  Not implemented: Read request with row mark types must be part of a transaction

master logs:

F0617 11:06:08.744676 21158 inbound_call.cc:163] 0x0000000004470b50 -> Call yb.tserver.TabletServerService.Read 127.0.0.11:58199 => 127.0.0.11:7100 (request call id 147): Already marked as completed

I tried row marks UPDATE and SHARE. I tried tables pg_class and pg_tablespace.

keywords: row lock, FOR UPDATE, FOR SHARE, FOR NO KEY UPDATE, FOR KEY SHARE

@jaki jaki added kind/bug This issue is a bug area/ysql Yugabyte SQL (YSQL) labels Jun 17, 2021
@m-iancu m-iancu added this to YQL-beta Dec 7, 2021
@def-
Copy link
Contributor

def- commented Jan 25, 2022

Also seen this with ther simple queries with a for share:

select  
  ref_0.collctype as c0
from 
  pg_catalog.pg_collation as ref_0
where ref_0.collcollate <> ref_0.collname
limit 138
 for share;

@bmatican
Copy link
Contributor

I think these are all instances of #11066 probably
Sergei has an almost ready fix for that here: https://phabricator.dev.yugabyte.com/D14943

@yugabyte-ci yugabyte-ci added the priority/medium Medium priority issue label Jun 8, 2022
@sushantrmishra
Copy link

2.19.3 (latest master).
I did not see FATAL in logs.

localhost:5433 yugabyte@yugabyte=# BEGIN;
BEGIN
Time: 0.612 ms
localhost:5433 yugabyte@yugabyte=#* SELECT * FROM pg_tablespace FOR SHARE;
ERROR: Read request with row mark types must be part of a transaction: OPERATION_NOT_SUPPORTED
Time: 16.896 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug priority/medium Medium priority issue
Projects
Status: Done
Status: Done
Development

No branches or pull requests

6 participants