Concurrent writing to the session.

Avatar

Avatar

chandramohanred

Avatar

chandramohanred

chandramohanred

22-03-2021

Hi Team,

 

We are frequently getting alerts as concurrently writing to this session alerts.

 

19.03.2021 19:47:56.215 *WARN* [10.43.0.33 [1616183252926] GET /content/ingredion/ingredients/na/thermflo-06810107.html HTTP/1.1] org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate Attempted to perform hasProperty while thread 10.43.0.33 [1616183246828] GET /content/ingredion/ingredients/na/globe-24-de-corn-syrupglucose-solids-019240.html HTTP/1.1 was concurrently writing to this session. Blocked until the other thread finished using this session. Please review your code to avoid concurrent use of a session.

 

Could you please suggest how to avoid or handle this?

 

Accepted Solutions (1)

Accepted Solutions (1)

Answers (3)

Answers (3)

Avatar

Avatar

Anudeep_Garnepudi

MVP

Avatar

Anudeep_Garnepudi

MVP

Anudeep_Garnepudi
MVP

23-03-2021

Avatar

Avatar

KiranVedantam1992

Avatar

KiranVedantam1992

KiranVedantam1992

22-03-2021

Hi @chandramohanred,

 

Please check my answer here on how to use sessions, resource resolvers to avoid session leaks.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

Avatar

Avatar

asutosh_j3

Avatar

asutosh_j3

asutosh_j3

22-03-2021

Hi @chandramohanred 

Are you trying to do anything in a loop somewhere in code with "hasProperty" ?
Also can you please provide some more info like which version of AEM and which service pack?

Thanks!