Bug #99102 ConcurrentModificationException when using xdevapi Client with pooling
Submitted: 28 Mar 14:37
Reporter: Vladimir Marinov Email Updates:
Status: Open Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any
Tags: XDevAPI

[28 Mar 14:37] Vladimir Marinov
Description:
There is no synchronization when new element is added to `com.mysql.cj.xdevapi.ClientImpl.activeProtocols`

```
public Session com.mysql.cj.xdevapi.ClientImpl.getSession() {
    ...
    this.activeProtocols.add(new WeakReference<>(prot));
    SessionImpl sess = new SessionImpl(prot);
    return sess;
}
```

How to repeat:
I do not want to supply instructions on how the bug I am reporting can be repeated, but this filed is required so...