Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid panic in handleValuePostings (dgraph-io#5652)
Fixes: DGRAPH-1608 srcFn.n should be equal to len(q.UidList.Uids) for implementation DivideAndRule and calculate to work correctly. But we have seen some panics while forming DataKey in calculate(). panic is of the form "index out of range [4] with length 1". We have tried to reproduce this but couldn't find any edge case which will result in this panic. So for now we are just logging when srcFn.n != len(q.UidList.Uids) and returning error when this happens.
- Loading branch information