MagicKey should still fit the bill. With only 3 nodes in the cluster, it's
almost guaranteed that you'll find a key for any combination of 2 nodes, so
you can should be able to use a MagicKey(primaryOwner, backupOwner).


On Fri, Nov 1, 2013 at 8:13 PM, wburns <notifications@github.com> wrote:

> In
> core/src/test/java/org/infinispan/distribution/rehash/BaseTxStateTransferOverwriteTest.java:
>
> > +      // Prepare for replace/remove: put a previous value in cache0
> > +      final Object previousValue = op.getPreviousValue();
> > +      if (previousValue != null) {
> > +         primaryOwnerCache.put(key, previousValue);
> > +         assertEquals(previousValue, primaryOwnerCache.get(key));
> > +         log.tracef("Previous value inserted: %s = %s", key, previousValue);
> > +
> > +         assertEquals(previousValue, nonOwnerCache.get(key));
> > +
> > +         if (l1Enabled()) {
> > +            assertIsInL1(nonOwnerCache, key);
> > +         }
> > +      }
> > +
> > +      // This will be one of the existing owners that we will kill
> > +      AdvancedCache<Object, Object> cacheToKill = findNonCoordinatorOwner(key);
>
> Didn't mean to delete my previous comment.
>
> But the more I think about this, the problem was to find an owner who
> isn't also the coordinator. However I have a way to make this cleaner still.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/infinispan/infinispan/pull/2183/files#r7376753>
> .
>