-
Notifications
You must be signed in to change notification settings - Fork 19
[Bug]: failure to refresh table location #20
Description
Check Before Asking
- Please check the issue list and confirm this bug is encountered for the first time.
- Please try full text in English and attach precise description.
Environment
* client version:
name = "obkv-table-client-rs"
version = "0.1.0"
source = "git+https://github.com/oceanbase/obkv-table-client-rs.git?rev=211e5718630577a7f8c1a2d74055bad4d31dea57#211e5718630577a7f8c1a2d74055bad4d31dea57"
* server version: 1477Fast Reproduce Steps
On the production environment, it is common to see such error without any operations.
Actual Behavior
The error log:
2023-03-09 10:56:46.103 ERRO [/root/.cargo/git/checkouts/obkv-table-client-rs-4fa64c39e1be7389/211e571/src/client/table_client.rs:1124] ObTableClientInner::refresh_all_table_entries fail to refresh table entry for table: wal_wal_20230310000000_000059, err: Common error, code:PartitionError, err:Location::get_table_location_from_remote: partition num=0 has no leader, table=TableEntry { table_id: 1100611140084534, partition_num: 1, refresh_time_mills: 1678330494602, partition_info: None, table_location: TableLocation { replica_locations: [ReplicaLocation { addr: ObServerAddr { ip: "11.34.28.233", sql_port: 2881, svr_port: 2882, priority: 0, grant_priority_times: 0 }, info: ObServerInfo { stop_time: 0, status: Active }, role: Follower }, ReplicaLocation { addr: ObServerAddr { ip: "33.141.30.4", sql_port: 2881, svr_port: 2882, priority: 0, grant_priority_times: 0 }, info: ObServerInfo { stop_time: 0, status: Active }, role: Follower }, ReplicaLocation { addr: ObServerAddr { ip: "33.144.36.65", sql_port: 2881, svr_port: 2882, priority: 0, grant_priority_times: 0 }, info: ObServerInfo { stop_time: 0, status: Active }, role: Leader }] }, partition_entry: Some(ObPartitionEntry { parititon_location: {0: ObPartitionLocation { leader: Some(ReplicaLocation { addr: ObServerAddr { ip: "33.144.36.65", sql_port: 2881, svr_port: 2882, priority: 0, grant_priority_times: 0 }, info: ObServerInfo { stop_time: 0, status: Active }, role: Leader }), followers: [ReplicaLocation { addr: ObServerAddr { ip: "11.34.28.233", sql_port: 2881, svr_port: 2882, priority: 0, grant_priority_times: 0 }, info: ObServerInfo { stop_time: 0, status: Active }, role: Follower }, ReplicaLocation { addr: ObServerAddr { ip: "33.141.30.4", sql_port: 2881, svr_port: 2882, priority: 0, grant_priority_times: 0 }, info: ObServerInfo { stop_time: 0, status: Active }, role: Follower }] }} }), row_key_element: {} }, locations={0: ObPartitionLocation { leader: None, followers: [ReplicaLocation { addr: ObServerAddr { ip: "11.34.28.233", sql_port: 2881, svr_port: 2882, priority: 0, grant_priority_times: 0 }, info: ObServerInfo { stop_time: 0, status: Active }, role: Follower }, ReplicaLocation { addr: ObServerAddr { ip: "33.141.30.4", sql_port: 2881, svr_port: 2882, priority: 0, grant_priority_times: 0 }, info: ObServerInfo { stop_time: 0, status: Active }, role: Follower }] }}.
Expected Behavior
Succeed in refreshing table location.
Other Information
No response