We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
public void afterBulk(long arg0, BulkRequest arg1, Throwable arg2) { logger.error("bulk got exception:", arg2); for(ActionRequest request : arg1.requests()){ addFailedMsg(request); } }
该方法中的addFailedMsg(request)传入的参数为ActionRequest,而 addFailedMsg(Object msg):
addFailedMsg(request)
ActionRequest
public void addFailedMsg(Object msg) { if (msg instanceof Map) { super.addFailedMsg(msg); return; } throw new IllegalArgumentException("addFailedMsg only accept Map instance"); }
中实际处理时候做了msg是否为 Map 的判断,所以从这里进去的数据永远不会被添加到 failedMsgQueue,从而导致数据丢失
msg
Map
failedMsgQueue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
该方法中的
addFailedMsg(request)
传入的参数为ActionRequest
,而 addFailedMsg(Object msg):中实际处理时候做了
msg
是否为Map
的判断,所以从这里进去的数据永远不会被添加到failedMsgQueue
,从而导致数据丢失The text was updated successfully, but these errors were encountered: