yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.87k stars 1.05k forks source link

[YCQL] Confusing message Table system.peers_v2 not found: OBJECT_NOT_FOUND (master error 3) #16820

Open arybochkin opened 1 year ago

arybochkin commented 1 year ago

Jira Link: DB-6171

Description

While doing a stress testing using yb-sample-apps I've got more than 3700 messages in the log:

W0410 19:11:11.373992 31872 cql_processor.cc:380] Unsupported driver option DRIVER_NAME = DataStax Python Driver
I0410 19:11:11.430335 14756 client_master_rpc.cc:76] 0x0000563d02f57a58 -> GetTableSchemaRpc(table_identifier: table_name: "peers_v2" namespace { name: "system" database_type: YQL_DATABASE_CQL }, num_attempts: 1): Failed, got resp error: Not found (yb/master/catalog_manager.cc:5176): Table system.peers_v2 not found: OBJECT_NOT_FOUND (master error 3)
W0410 19:11:11.430382 14756 client-internal.cc:1396] GetTableSchemaRpc(table_identifier: table_name: "peers_v2" namespace { name: "system" database_type: YQL_DATABASE_CQL }, num_attempts: 1) failed: Not found (yb/master/catalog_manager.cc:5176): Table system.peers_v2 not found: OBJECT_NOT_FOUND (master error 3)
W0410 19:11:11.430429 31876 process_context.cc:185] SQL Error: Object Not Found

And there's no table system.peers_v2 in the system but there's system.peers. I believe the driver is smart enough to use the second table if the first one is not found, but can the driver be smarter to understand (on base of db version or whatever) when system.peers_v2 cannot exist for connected DB and not trying to access this table through the time? I know customers are also confused with these messages and keep asking support team if it a signal to some issue.

Please also pay attention to Unsupported driver option DRIVER_NAME = DataStax Python Driver -- not sure this is the same issue.

Warning: Please confirm that this issue does not contain any sensitive information

arybochkin commented 1 year ago

Looks like yb-sample-apps contains a bit old version <version>3.8.0-yb-5</version>, while I see the latest available version is <version>4.6.0-yb-12</version> now. Maybe the latest version does not have such behaviour (however <version>4.6.0-yb-11</version> still tries to access system.peers_v2 spawning mentioned errors).

datavisorzhizhu commented 6 months ago

Any feedback on this?