You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/07/01 20:04:41 UTC
[GitHub] [couchdb] jiahuili430 opened a new pull request #3653: Comment out [couchdb]: max_document_size
jiahuili430 opened a new pull request #3653:
URL: https://github.com/apache/couchdb/pull/3653
## Overview
Normalize config options, comment out `[couchdb]: max_document_size`.
## Testing recommendations
## Related Issues or Pull Requests
https://github.com/apache/couchdb/pull/3636
## Checklist
- [x] Code is written and works correctly
- [ ] Changes are covered by tests
- [ ] Any new configurable parameters are documented in `rel/overlay/etc/default.ini`
- [ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation
--
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
[GitHub] [couchdb] nickva merged pull request #3653: Comment out [couchdb]: max_document_size
Posted by GitBox <gi...@apache.org>.
nickva merged pull request #3653:
URL: https://github.com/apache/couchdb/pull/3653
--
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
[GitHub] [couchdb] jiahuili430 commented on a change in pull request #3653: Comment out [couchdb]: max_document_size
Posted by GitBox <gi...@apache.org>.
jiahuili430 commented on a change in pull request #3653:
URL: https://github.com/apache/couchdb/pull/3653#discussion_r663046885
##########
File path: test/elixir/test/bulk_docs_test.exs
##########
@@ -133,7 +133,8 @@ defmodule BulkDocsTest do
@tag :with_db
test "bulk docs raises error for transaction larger than 10MB", ctx do
docs = [%{_id: "0", a: random_string(16_000_000)}]
- old_size = Couch.get("/_node/node1@127.0.0.1/_config/couchdb/max_document_size").body
+# old_size = Couch.get("/_node/node1@127.0.0.1/_config/couchdb/max_document_size").body
+ old_size = "8000000"
set_config_raw("couchdb", "max_document_size", "67108864") # 64M
resp = Couch.post("/#{ctx[:db_name]}/_bulk_docs", body: %{docs: docs})
set_config_raw("couchdb", "max_document_size", old_size) # set back
Review comment:
Thanks for the review
--
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
[GitHub] [couchdb] nickva commented on a change in pull request #3653: Comment out [couchdb]: max_document_size
Posted by GitBox <gi...@apache.org>.
nickva commented on a change in pull request #3653:
URL: https://github.com/apache/couchdb/pull/3653#discussion_r662589774
##########
File path: test/elixir/test/bulk_docs_test.exs
##########
@@ -133,7 +133,8 @@ defmodule BulkDocsTest do
@tag :with_db
test "bulk docs raises error for transaction larger than 10MB", ctx do
docs = [%{_id: "0", a: random_string(16_000_000)}]
- old_size = Couch.get("/_node/node1@127.0.0.1/_config/couchdb/max_document_size").body
+# old_size = Couch.get("/_node/node1@127.0.0.1/_config/couchdb/max_document_size").body
+ old_size = "8000000"
set_config_raw("couchdb", "max_document_size", "67108864") # 64M
resp = Couch.post("/#{ctx[:db_name]}/_bulk_docs", body: %{docs: docs})
set_config_raw("couchdb", "max_document_size", old_size) # set back
Review comment:
We can skip reading the old size and re-setting it as the default is 8Mb. We could even lower the random_string size a bit too.
--
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