FE由两个节点组成,一个是master,一个是observer
连接observer
jdbc:mysql:loadbalance://[observer host]:9030/db?useServerPrepStmts=true
执行
INSERT INTO profile_zy_oneid_pending(identity_code, identity_value, matched_req_id, req_id, tmp_oneid, biz_time,
create_time, identity_map)
VALUES ('id_card', '729943242', 'id_card_729943242_1725989086642', 'id_card_729943242_1725989086642', 0, null, now(), '[{"identityCode":"id_card","identityValue":"729943242","bizTime":1713248404507,"isRequiredIdentity":false}]')
返回:
java.sql.SQLException: errCode = 2, detailMessage = Unexpected exception: -1
observer是不是不能接这样的insert。
如果想继续使用loadbalance,是不是只能把observer改成follower