#7 ArrayIndexOutOfBoundsException in init of stagewrapper

open
nobody
5
2003-07-30
2003-07-30
Anonymous
No

Modify the GenStage1 of the test/basic .
Set the thread pool to min 3, max 10, init 5.

Race condition between thread pool controller
sizing down the thread pool, and the init sequence.

partial output:

TP <GenStage1>: initial 5, min 3, max 10, blockTime
1000, idleTime 1000
TP <GenStage1>: Adding 5 threads to pool, size 5
TP <GenStage1>: Starting 5 threads, maxBatch=-1
TP <GenStage1>: stopping thread, size 4
TP <GenStage1>: stopping thread, size 3
Sandstorm: Caught exception initializing stage
GenStage1: java.lang.ArrayIndexOutOfBoundsException: 3 >= 3

java.lang.ArrayIndexOutOfBoundsException: 3 >= 3
at java.util.Vector.elementAt(Vector.java:427)
at
seda.sandStorm.internal.ThreadPool.start(ThreadPool.java:180)
at
seda.sandStorm.internal.TPSThreadManager$stageRunnable.<init>(TPSThreadManager.java:160)
at
seda.sandStorm.internal.TPSThreadManager.register(TPSThreadManager.java:71)
at
seda.sandStorm.internal.StageWrapper.init(StageWrapper.java:113)
at
seda.sandStorm.internal.sandStormMgr.initStages(sandStormMgr.java:281)
at
seda.sandStorm.internal.sandStormMgr.start(sandStormMgr.java:102)
at seda.sandStorm.main.Sandstorm.<init>(Sandstorm.java:79)
at seda.sandStorm.main.Main.main(Main.java:96)

Discussion


Log in to post a comment.