Thanks. If I try AffinityRun with collection of caches and the affinity key, I'd get NPE with cache.localpeek using the primary key of the dependent cache/table but the cache query itself succeeds. Is there a working example?
On Wed, May 13, 2020 at 8:10 AM Stephen Darlington < stephen.darling...@gridgain.com> wrote: > Yes, but you also need to make sure you use the correct affinityRun > method. There’s one where you specify multiple caches and you need to use > that one. > > > On 13 May 2020, at 12:50, narges saleh <snarges...@gmail.com> wrote: > > > > Hi All, > > If I have these two caches/tables defined via query entities, in a > config file, > > Employee (partitioned) > > employee-id > > company-id > > name > > primary key(employee-id, company-id), affinity(company-id) > > > > Company (partitioned) > > company-id. > > name > > primary key(company-id) > > > > If I do AffinityRun or mapkeystonodes with two server ignite nodes > running on the same physical box, shouldn't I see the employee records with > the same company-id and the company record with the same company-id on the > same ignite node? > > > > thanks. > > > > >