Skip to content
New issue

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

ExecuteJobServerOnlineShardingTask createLocalShard occurs ArrayIndexOutOfBoundsException #441

Closed
heziai opened this issue Jun 25, 2018 · 0 comments

Comments

@heziai
Copy link
Member

heziai commented Jun 25, 2018

异常堆栈如下:

[2018-06-25 17:13:47.993] [ERROR] [it-saturn-Worker] [c.v.s.job.sharding.task.AbstractAsyncShardingTask] >>> 3
java.lang.ArrayIndexOutOfBoundsException: 3
	at com.vip.saturn.job.sharding.task.ExecuteJobServerOnlineShardingTask.createLocalShard(ExecuteJobServerOnlineShardingTask.java:65)
	at com.vip.saturn.job.sharding.task.ExecuteJobServerOnlineShardingTask.pickIntelligent(ExecuteJobServerOnlineShardingTask.java:209)
	at com.vip.saturn.job.sharding.task.ExecuteJobServerOnlineShardingTask.pick(ExecuteJobServerOnlineShardingTask.java:311)
	at com.vip.saturn.job.sharding.task.AbstractAsyncShardingTask.run(AbstractAsyncShardingTask.java:83)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

发生的场景举例如下:
本地作业,4个Executor在线。->
下线分片为0、1、2的Executor。->
上线一个Executor。

Note:虽然会抛异常,但是上层会catch该异常,并进行全量分片,所以仍然能正常工作。

@heziai heziai added this to the 3.1.0 milestone Jun 25, 2018
@heziai heziai self-assigned this Jun 25, 2018
heziai added a commit that referenced this issue Jun 25, 2018
@heziai heziai added the done label Jun 25, 2018
@kfchu kfchu closed this as completed Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants