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

ConcurrentModificationException in MOA #170

Closed
moussaoui07 opened this issue Mar 27, 2019 · 3 comments
Closed

ConcurrentModificationException in MOA #170

moussaoui07 opened this issue Mar 27, 2019 · 3 comments

Comments

@moussaoui07
Copy link

Hi,

I use MCOD for anomalies detection in stream with flink but I have an error in the code when i pass the instance to MCOD:

Caused by: java.util.ConcurrentModificationException: null
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
at java.util.ArrayList$Itr.next(ArrayList.java:859)
at moa.clusterers.outliers.MCOD.MCOD.ProcessExpiredNode(MCOD.java:360)
at moa.clusterers.outliers.MCOD.MCOD.ProcessNewStreamObj(MCOD.java:398)
at moa.clusterers.outliers.MyBaseOutlierDetector.processNewInstanceImpl(MyBaseOutlierDetector.java:157)
at etl.samoa.SamoaAnomalyDetection.mapPartition(SamoaAnomalyDetection.java:84)
at org.apache.flink.runtime.operators.MapPartitionDriver.run(MapPartitionDriver.java:103)
at org.apache.flink.runtime.operators.BatchTask.run(BatchTask.java:503)
at org.apache.flink.runtime.operators.BatchTask.invoke(BatchTask.java:368)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:704)
at java.lang.Thread.run(Thread.java:748)

the line of code that causes this error is:
outlierDetector.processNewInstanceImpl(samoaInstance);

how can we avoid this error or fix it ?

Thank's in advance !

Cordially,
Anissa

@csalperwyck
Copy link

csalperwyck commented Apr 1, 2019 via email

@moussaoui07
Copy link
Author

Hello,

Thank you for your reply !

I have already tried to put a single heart with a flink setParallelism at 1 but I always have the competition error !!

So I do not know how to correct this error.

Best,
Aniisa

@csalperwyck
Copy link

csalperwyck commented Apr 8, 2019 via email

@abifet abifet closed this as completed Mar 9, 2021
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

No branches or pull requests

3 participants