Initial Load from MongoDB fails when POJO field is both SpaceRouting and SpaceId

Description

On initial load from mongodb, the space routing value of each entry is used to optimize the initial query and fetch entries relevant for each partition (instead of loading all entries for each partition and discarding the rest). see here:

This optimization fails when routing field is the same as the space id field.
Steps to recreate:
1. pull commit.
2. Build and run mongo-db suite

Workaround

None

Acceptance Test

None

Assignee

Unassigned

Reporter

Alon Shoham

Labels

None

Priority

Medium

SalesForce Case ID

None

Fix versions

None

Commitment Version/s

None

Due date

None

Product

None

Edition

Open Source

Platform

All
Configure