Simplest thing would be a singleton guarded by some kind of lock. But I haven’t looked at the code.
> On Feb 15, 2019, at 12:59 PM, Vladimir Sitnikov <sitnikov.vladi...@gmail.com> > wrote: > > Julian> allocate a new object per request > > Josh> The Meta implementation inside of the Avatica server is a singleton, > > Julian, I don't think singletones can be allocated per request. > I don't think final fields of singletones can be changed on a per-request > basis. > > What's your suggestion then? > > I've created https://issues.apache.org/jira/browse/CALCITE-2853 > It looks like the issue was there for ages, so it does not look like a > release blocker, however the bug does break CI, and I'm tired of getting > "build's broken" mails from Apache Jenknis, especially after I commit an > innocent fix. > > Vladimir