-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
test: sharding non existent #1719
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1719 +/- ##
==========================================
+ Coverage 83.32% 85.27% +1.94%
==========================================
Files 134 134
Lines 6878 6884 +6
==========================================
+ Hits 5731 5870 +139
+ Misses 1147 1014 -133
Continue to review full report at Codecov.
|
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
This is expected as the KVSearchDriver removes the non-found documents. |
In this case we index |
The expected result is that u will get in output as many documents as they are found in the |
And if it is the case, u need What is happening in this test is that, the first shard finishing returns its results. And that is why u just get a portion, what u would maybe see is 2 respones |
Yes
Good point. However, I tried it out with |
what traversal paths are used there? |
As discussed with @JoanFM supporting sharding for plain kv-indexers would be usefull but still requires some conceptual thinking and might take some time to implement. |
ReduceAllDriver ... |
def _apply_root( | ||
self, | ||
docs: 'DocumentSet', | ||
field: str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we say is None
, should we also hide field
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
field
contains "docs"
.
The context_doc
is set to None
docs.append(doc) | ||
request = self.msg.request | ||
request.body.ClearField(field) | ||
request.docs.extend(docs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I guess you saw the problem I had?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoanFM The problem was that the docs were stored in the body.docs
as well as in docs
?
1b3c851
to
3227b64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some quick clarifications
…arding-non-existent
@property | ||
def docs(self): | ||
if self.expect_parts > 1: | ||
return (d for r in reversed(self.partial_reqs) for d in r.docs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoanFM do we reverse the requests in order to wait for the last one to arrive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was like this, so to be honest not sure why it was there in the first place
@hanxiao could you review this? |
Needs to be fixed. We insert 201 documents but only get 101 back.