explain route select /* +read_consistency(strong) */ * from t1 where tid=2002;
cat obproxy_diagnosis.log | sed “s//n/\n/g”
ROUTE_POLICY:{replica:“10.11.253.64:2881”, idc_type:“SAME_IDC”, zone_type:“ReadWrite”, role:“FOLLOWER”, type:“FULL”, is_partition_server:true, proxy_primary_zone:“zone3”, chosen_route_type:“ROUTE_TYPE_PARTITION_UNMERGE_LOCAL”, route_policy:“MERGE_IDC_ORDER”, trans_consistency:“STRONG”, session_consistency:“STRONG”}
CONGESTION_CONTROL:{svr_addr:“10.11.253.64:2881”}
HANDLE_RESPONSE:{is_parititon_hit:“false”, send_action:“SERVER_SEND_REQUEST”, state:“CMD_COMPLETE”}
这个分区的leader在zone1 10.11.253.63
但是,在obproxy下设置了alter proxyconfig set proxy_primary_zone_name = ‘zone3’,所以才有了以上诊断信息。
问题:
1 ROUTE_POLICY:{replica:"10.11.253.64:2881 表示最终路由到这个节点?去读这个节点?
2 CONGESTION_CONTROL:{svr_addr:“10.11.253.64:2881”} 表示最终路由到这个节点?去读这个节点?
3 HANDLE_RESPONSE:{is_parititon_hit:“false” 表示在10.11.253.64:2881没有读到leader分区?
4 既然在10.11.253.64:2881没有读到,它也不告诉你它去哪里去读了,那这个路由信息有啥作用?