
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/EIIe18hVngo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/72a73fcc-cb95-4723-afd9-5ed5cb027313n%40googlegroups.com.
Now we found how to reproduce the problem:- In a Gerrit which have a large number of private changes- With a user, which have no read permission to these private, anonymous user also can reproduce- try to query the status:merged, the request will take long time and at last get 50x error, and there will be a more endless http threadBut in a Gerrit of Google like partner-android-review.googlesource.com, if try to reproduce this problem, will get a error "Error 400: cannot exceed 10000 results (after filtering for visibility)", in here [1] Shawn Pearce explained:“To answer Johannes original question, the search index server limits at 10,000 raw results in our indexing system. Gerrit is then filtering changes based on ACLs to only those changes that are visible. A private change for example is going to be hidden from your results view. If there are 100 private changes in the first 10,000 results than you can only get 9,900 results back. Tweaking your query to have fewer results (e.g. scoping per project and issuing a query per project) will get you a larger set of changes, but each query is still limited to that 10,000 raw results.”And here [2], someone said: “FWIW I think the cannot exceed 10000 results (after filtering for visibility) error is something specific to Google's internal version of Gerrit; that error message does not exist in the open source version.”So my question is, is there anyone from Google can provide some instructions about how to limit the results Lucene query so we can avoid the problem?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/8d134391-e959-48fd-a7d8-46c4047dc914n%40googlegroups.com.
-Martin
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/20230306150107.GA2570080%40mfick2-lnx.qualcomm.com.
Hi, Martin,I still can get the error "Error 400: cannot exceed 10000 results (after filtering for visibility)" in Gerrit of google (3.7), which Shawn Pearce explained the cause in 2017-10, so I don't think the pagination you mentioned is same with the issue I am talking about, that issue happen before pagination.
Martin Fick <quic_...@quicinc.com> 于2023年3月6日周一 23:01写道:On Thu, Mar 02, 2023 at 10:42:08PM -0800, Chunlin Zhang wrote:
> Now we found how to reproduce the problem:
> - In a Gerrit which have a large number of private changes
> - With a user, which have no read permission to these private, anonymous
> user also can reproduce
> - try to query the status:merged, the request will take long time and at
> last get 50x error, and there will be a more endless http thread
...
> So my question is, is there anyone from Google can provide *some
> instructions about how to limit the results Lucene query* so we can avoid
> the problem?
The latest versions of Gerrit have been modified to paginate these
queries internally to avoid this sort of issue, so upgrading to any tip
version of Gerrit 3.5.x or later is likely to solve this for you. We are
now able to stream over 4M changes in a query with our Gerrit 3.5.5
Lucene (and ES) setups without issues,
-Martin
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAG2rzAmv%3DL9kvjDt2Xx6dgmJkQ61PbBfSNHVR0A8EPbFR5%3DYFQ%40mail.gmail.com.
On Mon, Mar 6, 2023 at 6:51 PM Chunlin Zhang <zhangc...@gmail.com> wrote:Hi, Martin,I still can get the error "Error 400: cannot exceed 10000 results (after filtering for visibility)" in Gerrit of google (3.7), which Shawn Pearce explained the cause in 2017-10, so I don't think the pagination you mentioned is same with the issue I am talking about, that issue happen before pagination.You would need 3.7.1 to have the changes Martin is referring to. Please also try to interleave your responses instead of top-posting.