You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "mibo (Jira)" <ji...@apache.org> on 2023/10/15 12:09:00 UTC
[jira] [Updated] (OLINGO-1586) ConcurrentModificationException while accessing EDM object
[ https://issues.apache.org/jira/browse/OLINGO-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
mibo updated OLINGO-1586:
-------------------------
Fix Version/s: (was: (Java) V4 4.8.0)
> ConcurrentModificationException while accessing EDM object
> ----------------------------------------------------------
>
> Key: OLINGO-1586
> URL: https://issues.apache.org/jira/browse/OLINGO-1586
> Project: Olingo
> Issue Type: Bug
> Components: odata4-client
> Reporter: Prasanth Ganesh Rao
> Priority: Critical
>
> We have implement a cache that keeps the EDM object and then reuses the same in subsequent calls. What we are observing is when we try to access the EDM object via multiple threads concurrently, at times we get ConcurrentModificationException exception. The issue is typically observed right after updating the cache with new EDM object.
> Stacktrace:
> java.util.ConcurrentModificationException
> at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:911)
> at java.util.ArrayList$Itr.next(ArrayList.java:861)
> at org.apache.olingo.commons.core.edm.EdmProviderImpl.compareAnnotations(EdmProviderImpl.java:970)
> at org.apache.olingo.commons.core.edm.EdmProviderImpl.addAnnotationsOnPropertiesOfStructuralType(EdmProviderImpl.java:510)
> at org.apache.olingo.commons.core.edm.EdmProviderImpl.updateAnnotationsOnStructuralProperties(EdmProviderImpl.java:490)
> at org.apache.olingo.commons.core.edm.EdmProviderImpl.addStructuralTypeAnnotations(EdmProviderImpl.java:283)
> at org.apache.olingo.commons.core.edm.EdmSchemaImpl.createEntityTypes(EdmSchemaImpl.java:200)
> at org.apache.olingo.commons.core.edm.EdmSchemaImpl.<init>(EdmSchemaImpl.java:82)
> at org.apache.olingo.commons.core.edm.EdmProviderImpl.createSchemas(EdmProviderImpl.java:907)
> at org.apache.olingo.commons.core.edm.AbstractEdm.initSchemas(AbstractEdm.java:126)
> at org.apache.olingo.commons.core.edm.AbstractEdm.getSchemas(AbstractEdm.java:106)
> at com.sap.gw.core.ip.converter.EdmUtils.getSchemaName(EdmUtils.java:119)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)