网站平台规划,上海外包公司排行,唐山seo快速排名,做司法亲子鉴定网站我使用多jdbc执行全表查询以进行数据迁移。 当我使用并行的75个jdbc查询每个表有近3000000行的差异表时#xff0c;我发现MySQL在所有数据返回到jdbc之前中止了一个连接。慢日志#xff1a;Time: 160919 9:09:38UserHost: test[test] [10.142.90.20]Thread_id: 349 Schema: …我使用多jdbc执行全表查询以进行数据迁移。 当我使用并行的75个jdbc查询每个表有近3000000行的差异表时我发现MySQL在所有数据返回到jdbc之前中止了一个连接。慢日志Time: 160919 9:09:38UserHost: test[test] [10.142.90.20]Thread_id: 349 Schema: mmig_1005 QC_hit: NoQuery_time: 161.997180 Lock_time: 0.000560 Rows_sent: 619246 Rows_examined: 619246Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: NoFilesort: No Filesort_on_disk: No Merge_passes: 0explain: id select_type table type possible_keys key key_len ref rows Extraexplain: 1 SIMPLE CAR_NEW_6 ALL NULL NULL NULL NULL 2923495use mmig_1005;SET timestamp1474247378;SELECT version, name, id, sharding_id, modelFROM CAR_NEW_6;表mmig_1005.car_new_6中有近3000000行但MySQL仅发送619246行并中止了该连接。 线程ID为349然后我在mysql-err日志中找到了此中止的连接349。160919 9:09:38 [Warning] Aborted connection 349 to db: mmig_1005 user: test host: 10.142.90.20 (Unknown error)160919 9:09:38 [Warning] Aborted connection 305 to db: mmig_1001 user: test host: 10.142.90.20 (Unknown error)MySQL参数connect_timeout 10deadlock_timeout_long 50000000deadlock_timeout_short 10000delayed_insert_timeout 300innodb_flush_log_at_timeout 1innodb_lock_wait_timeout 45innodb_rollback_on_timeout OFFinteractive_timeout 1800lock_wait_timeout 600net_read_timeout 7200net_write_timeout 7200rpl_semi_sync_master_timeout 10000slave_net_timeout 30sqlasyntimeout 10sqlasynwarntimeout 3thread_pool_idle_timeout 60wait_timeout 1800innodb_log_buffer_size 134217728max_allowed_packet 1073741824为什么MySQL在发送所有数据之前中止该连接