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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
监听器执行前获得的消息数量比升级生成的事件少
问题复现步骤:
DMLExecutionEventBus.register(new DMLExecutionEventListener() { @Override public String getName() { return "test"; } @Subscribe @AllowConcurrentEvents public void subscribe(final DMLExecutionEvent event) { ...... } });
String sql = "INSERT INTO `t_order`(`order_id`, `user_id`, `status`) VALUES (?,?,?)"; try ( Connection connection = shardingDataSource.getConnection(); PreparedStatement preparedStatement = connection.prepareStatement(sql)) { preparedStatement.setInt(1, 3101); preparedStatement.setInt(2, 11); preparedStatement.setString(3, "BATCH"); preparedStatement.addBatch(); preparedStatement.setInt(1, 3102); preparedStatement.setInt(2, 12); preparedStatement.setString(3, "BATCH"); preparedStatement.addBatch(); preparedStatement.setInt(1, 3111); preparedStatement.setInt(2, 21); preparedStatement.setString(3, "BATCH"); preparedStatement.addBatch(); preparedStatement.setInt(1, 3112); preparedStatement.setInt(2, 22); preparedStatement.setString(3, "BATCH"); preparedStatement.addBatch(); int[] result = preparedStatement.executeBatch(); }
期望的表现:
subscribe收到的事件的数量应该为8,4条 BEFORE类型,4条SUCCESS类型
观察到的表现:
subscribe收到的事件的数量应该为8,2条 BEFORE类型,4条SUCCESS类型
Sharding-JDBC版本: [1.4.0] 操作系统及版本: [OSX]
The text was updated successfully, but these errors were encountered:
78b31ef
fixed apache#201 Batch execution event sending misses pre-execution e…
d1b5abd
…vent send
No branches or pull requests
监听器执行前获得的消息数量比升级生成的事件少
问题复现步骤:
期望的表现:
subscribe收到的事件的数量应该为8,4条 BEFORE类型,4条SUCCESS类型
观察到的表现:
subscribe收到的事件的数量应该为8,2条 BEFORE类型,4条SUCCESS类型
Sharding-JDBC版本: [1.4.0]
操作系统及版本: [OSX]
The text was updated successfully, but these errors were encountered: