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

cosbench - [ERROR] java.lang.ArrayIndexOutOfBoundsException: 0 #331

Open
hoky5611 opened this issue Sep 2, 2016 · 9 comments · Fixed by open-io/cosbench#10
Open

cosbench - [ERROR] java.lang.ArrayIndexOutOfBoundsException: 0 #331

hoky5611 opened this issue Sep 2, 2016 · 9 comments · Fixed by open-io/cosbench#10

Comments

@hoky5611
Copy link

hoky5611 commented Sep 2, 2016

system.txt <---- log

cosbench version - 0.4.2
ceph jewel version - 10.2.2

Write
4KB / 128KB / 10MB -> Worker 5/10/20/40/80/160/320/640/1280/2560
Finished measurements

Read
4KB -> Woker 5/10/20
128KB -> Woker 5/10
10MB -> Woker 5/10/20/40/80/160/320
Finished measurements

Issue
Read
4KB -> Woker 40/80/160/320/640/1280/2560
128KB -> Woker 20/40/80/160/320/640/1280/2560
terminated.

Read why terminated?

Log Message
java.lang.ArrayIndexOutOfBoundsException: 0

Let us know in detail how to solve

log ------------------------------------------------------------------------------------------------------------
2016-09-02 09:16:34,815 [ERROR] [AbstractAgent] - unexpected exception
java.lang.ArrayIndexOutOfBoundsException: 0
at com.intel.cosbench.driver.operator.AbstractOperator.errorStatisticsHandle(AbstractOperator.java:117)
at com.intel.cosbench.driver.operator.Reader.doRead(Reader.java:103)
at com.intel.cosbench.driver.operator.Reader.operate(Reader.java:69)
at com.intel.cosbench.driver.operator.AbstractOperator.operate(AbstractOperator.java:76)
at com.intel.cosbench.driver.agent.WorkAgent.performOperation(WorkAgent.java:197)
at com.intel.cosbench.driver.agent.WorkAgent.doWork(WorkAgent.java:177)
at com.intel.cosbench.driver.agent.WorkAgent.execute(WorkAgent.java:134)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

1
2
4

@hoky5611
Copy link
Author

hoky5611 commented Sep 2, 2016

#323

@hoky5611
Copy link
Author

hoky5611 commented Sep 5, 2016

COSBench 0.3.3.0 (13-ww44.5)

. #20: multiple same operations
. #16: web console authentication
. #34: 0% success on write
. #11: job management
. #70: multiple main stages
. #30: no historical workloads after restart
. add histogram selector to define histogram size distribution
. #58: sleep between stage
. #84: multiple init/prepare/cleanup/dispose from config UI
. oen bug fix for java.lang.ArrayIndexOutOfBoundsException at data archiving
. #118: file-write operation - percentile zero issue
. #121: specify archive dir
. #92: using swift storage without authentication
. support auth token caching for swift testing
. #128: Use workstage name from XML rather than generic names in logs

https://github.com/intel-cloud/cosbench/blob/308db3c2cf5d5decec213fdd98593c589f3130dd/CHANGELOG

@ericychoi
Copy link

+1 here, anyone have any insight?

@IvanJobs
Copy link

+1 I met the same issue just today after a few rounds of tests.

@ShreyasC
Copy link

ShreyasC commented Apr 24, 2017

I face the same issue too, is there any work around for this issue? I am using 0.4.2.c4

@akumacxd
Copy link

I met the same issue, version 0.4.2
2017-08-11 15:17:13,707 [ERROR] [AbstractAgent] - unexpected exception
java.lang.ArrayIndexOutOfBoundsException: 0
at com.intel.cosbench.driver.operator.AbstractOperator.errorStatisticsHandle(AbstractOperator.java:117)
at com.intel.cosbench.driver.operator.Reader.doRead(Reader.java:103)
at com.intel.cosbench.driver.operator.Reader.operate(Reader.java:69)
at com.intel.cosbench.driver.operator.AbstractOperator.operate(AbstractOperator.java:76)
at com.intel.cosbench.driver.agent.WorkAgent.performOperation(WorkAgent.java:197)
at com.intel.cosbench.driver.agent.WorkAgent.doWork(WorkAgent.java:177)
at com.intel.cosbench.driver.agent.WorkAgent.execute(WorkAgent.java:134)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

@fifthpostulate
Copy link

Experiencing the same issue with version 0.4.2 as well:
2018-05-10 11:52:45,653 [ERROR] [AbstractAgent] - unexpected exception
java.lang.ArrayIndexOutOfBoundsException: 0
at com.intel.cosbench.driver.operator.AbstractOperator.errorStatisticsHandle(AbstractOperator.java:117)
at com.intel.cosbench.driver.operator.Reader.doRead(Reader.java:103)
at com.intel.cosbench.driver.operator.Reader.operate(Reader.java:69)
at com.intel.cosbench.driver.operator.AbstractOperator.operate(AbstractOperator.java:76)
at com.intel.cosbench.driver.agent.WorkAgent.performOperation(WorkAgent.java:197)
at com.intel.cosbench.driver.agent.WorkAgent.doWork(WorkAgent.java:177)
at com.intel.cosbench.driver.agent.WorkAgent.execute(WorkAgent.java:134)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44)
at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)

@Tanyy
Copy link

Tanyy commented Apr 10, 2019

and anyone fixed that or solved that?

@cryptarchnoble
Copy link

cryptarchnoble commented Jul 25, 2019

Also experiencing this issue. The odd thing for me is, it only happens when performing S3 read operations with a high number of workers (200+ per host workload server). Below this number, everything works just fine... and if doing writes, it also works fine. I can also get 500+ workers when using other protocols (swift).

fvennetier added a commit to fvennetier/cosbench that referenced this issue Dec 31, 2019
Recent JVMs run with OmitStackTraceInFastThrow enabled by default. When
an exception occurs several times, the stack trace is no more generated,
but COSBench still tries to parse it, and fails miserably. One solution
is to run COSBench with -XX:-OmitStackTraceInFastThrow. For extra
security we will also ignore such empty stack traces.

Fixes: intel-cloud#323
Fixes: intel-cloud#331
fvennetier added a commit to open-io/cosbench that referenced this issue Jan 3, 2020
Recent JVMs run with OmitStackTraceInFastThrow enabled by default. When
an exception occurs several times, the stack trace is no more generated,
but COSBench still tries to parse it, and fails miserably. One solution
is to run COSBench with -XX:-OmitStackTraceInFastThrow. For extra
security we will also ignore such empty stack traces.

Fixes: intel-cloud#323
Fixes: intel-cloud#331
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants