You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "jiahuili430 (via GitHub)" <gi...@apache.org> on 2023/06/20 23:19:23 UTC

[GitHub] [couchdb] jiahuili430 commented on a diff in pull request #4518: Add key range check for _all_docs

jiahuili430 commented on code in PR #4518:
URL: https://github.com/apache/couchdb/pull/4518#discussion_r1235996328


##########
src/couch_mrview/src/couch_mrview_util.erl:
##########
@@ -533,6 +533,7 @@ apply_limit(ViewPartitioned, Args) ->
 
 validate_all_docs_args(Db, Args0) ->
     Args = validate_args(Args0),
+    check_range_all_docs(Args),

Review Comment:
   Tried that before but it fails in mango tests related to `_find` endpoint.
   https://ci-couchdb.apache.org/blue/organizations/jenkins/jenkins-cm1%2FPullRequests/detail/PR-4518/9/pipeline/
   ```
   ERROR: test_gte_respsects_unicode_collation (03-operator-test.OperatorJSONTests)
   ----------------------------------------------------------------------
   Traceback (most recent call last):
    File "/home/jenkins/workspace/jenkins-cm1_PullRequests_PR-4518/25.3/build/apache-couchdb-3.3.2-04ead65/src/mango/test/03-operator-test.py", line 187, in test_gte_respsects_unicode_collation
      docs = self.db.find({"ordered": {"$gte": "a"}})
    File "/home/jenkins/workspace/jenkins-cm1_PullRequests_PR-4518/25.3/build/apache-couchdb-3.3.2-04ead65/src/mango/test/mango.py", line 280, in find
      r.raise_for_status()
    File "/home/jenkins/workspace/jenkins-cm1_PullRequests_PR-4518/25.3/build/apache-couchdb-3.3.2-04ead65/src/mango/.venv/lib/python3.9/site-packages/requests/models.py", line 960, in raise_for_status
      raise HTTPError(http_error_msg, response=self)
   requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://127.0.0.1:15984/mango_test_cad95f52e95341e097ce2c1d861c1457/_find
   ======================================================================
   ERROR: test_old_selector_with_no_selector_still_supported (16-index-selectors-test.IndexSelectorJson)
   ... ...
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org