Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Concurrent writing to the session.

chandramohanred
Level 1
Level 1

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?

 

1 Accepted Solution
bilal_ahmad
Correct answer by
Level 5
Level 5
4 Replies
asutosh_jena
Community Advisor
Community Advisor

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!

KiranVedantam1992
Community Advisor
Community Advisor

Hi @chandramohanred,

 

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

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

bilal_ahmad
Correct answer by
Level 5
Level 5