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

ERROR: relation "xxxx" does not exist, during data copy phase. #875

Open
VaibhaveS opened this issue Aug 27, 2024 · 0 comments
Open

ERROR: relation "xxxx" does not exist, during data copy phase. #875

VaibhaveS opened this issue Aug 27, 2024 · 0 comments

Comments

@VaibhaveS
Copy link
Contributor

2024-07-16 20:55:09.167 249 ERROR  pgsql.c:2331              [SOURCE 351740] ERROR:  relation "ora.xyz" does not exist
2024-07-16 20:55:09.168 249 ERROR  pgsql.c:2331              [SOURCE 351740] ERROR:  relation "ora.xyz" does not exist
2024-07-16 20:55:09.168 249 ERROR  pgsql.c:2342              [SOURCE 351740] SQL query: LOCK TABLE ONLY ora."xyz" IN ACCESS SHARE MODE
2024-07-16 20:55:09.168 249 ERROR  pgsql.c:2350              [SOURCE 351740] SQL params:  
2024-07-16 20:55:09.168 249 ERROR  table-data.c:1523         Failed to LOCK table ora."xyz" in ACCESS SHARE mode
2024-07-16 20:55:09.170 249 ERROR  pgsql.c:2331              [SOURCE 351740] ERROR:  current transaction is aborted, commands ignored until end of transaction block

In copydb_check_table_exists we do the following,

check if it exists -> lock -> check if it exists.

The situation is that the lock query failed because the table was dropped, and it appears we are verifying its existence within the same transaction, but since its invalid we error out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant