Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection.filter returns documents from other partitions #28

Open
thomaslevesque opened this issue Jun 22, 2018 · 2 comments
Open

Collection.filter returns documents from other partitions #28

thomaslevesque opened this issue Jun 22, 2018 · 2 comments

Comments

@thomaslevesque
Copy link
Contributor

I just noticed that Collection.filter returns documents from other partitions.

I have a SP in a partitioned collection. The client specifies the partition key when calling the SP. However, a query like this:

var result = __.filter(
    doc => doc.type === 'foo',
    callback);

returns documents from other partitions.

On the other hand, an equivalent query using queryDocuments only returns documents from the current partition, as expected:

    var result = __.queryDocuments(
        __.getSelfLink(),
        "select * from c where c.type = 'foo'",
        callback);

Honestly, a bug like this is really scary. SP are supposed to run in the context of a single partition. How is it even possible that I get results from other partitions?

@thomaslevesque
Copy link
Contributor Author

I can still reproduce this. Guys, this is a serious bug! I reported it more than one year ago. Is nobody monitoring issues in this repo?

@cowens-genvidtech
Copy link

This is still occurring, and I agree this is a serious problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants