[GitHub] couchdb-snappy issue #9: Fix memory bug in SnappyNifSink::Append

2018-10-16 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-snappy/pull/9 To check for memory leaks ran the snappy compression decompression test in a loop ``` rebar shell ==> couchdb-snappy (shell) Erlang/OTP 20 [erts-9.3.3.1] [source] [64-

[GitHub] couchdb-ibrowse issue #1: ibrowse: enable inet6 from upstream

2018-10-03 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-ibrowse/pull/1 Noticed there was another ibrowse commit after that which fixed an issue related to ipv6 being the new default: https://github.com/cmullaparthi/ibrowse/commit

[GitHub] couchdb-snappy issue #7: Build with Erlang 21

2018-06-21 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-snappy/pull/7 Yap, merged it via ASF. Still not sure why build failed. I had tried compiling with rebar3 locally and that worked as well. A different C compiler or libc version... who knows... ---

[GitHub] couchdb-snappy pull request #8: Test commit

2018-06-21 Thread nickva
Github user nickva closed the pull request at: https://github.com/apache/couchdb-snappy/pull/8 ---

[GitHub] couchdb-snappy issue #7: Build with Erlang 21

2018-06-21 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-snappy/pull/7 Yap all travis builds fail apparently now. Here is a change to the README file: https://travis-ci.org/apache/couchdb-snappy/builds/395127559?utm_source=github_status&utm_medium=notification ---

[GitHub] couchdb-snappy pull request #8: Test commit

2018-06-21 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-snappy/pull/8 Test commit TEST DON'T MERGE You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-snappy test-branch Alternatively yo

[GitHub] couchdb-snappy issue #7: Build with Erlang 21

2018-06-21 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-snappy/pull/7 Trying to use rebar3 maybe and it can't build the nif properly? ---

[GitHub] couchdb-snappy issue #7: Build with Erlang 21

2018-06-20 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-snappy/pull/7 Not sure why travis doesn't work but local tests do pass with 21: ``` make check rebar compile ==> snappy (compile) rebar eunit ==> snappy (eunit) C

[GitHub] couchdb-snappy pull request #7: Build with Erlang 21

2018-06-20 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-snappy/pull/7 Build with Erlang 21 Issue #1396 You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-snappy allow-erlang-21 Alternatively you

[GitHub] couchdb-config pull request #18: Use callback directive for config_listener ...

2018-02-14 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-config/pull/18 Use callback directive for config_listener behaviour This knocks out a few dialyzer errors such as: `Callback info about the config_listener behaviour is not available` It is

[GitHub] couchdb-khash pull request #9: Handle deprecated random module

2017-10-03 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-khash/pull/9 Handle deprecated random module Use a compile time check for platform versions, then a macro conditional in a separate rand module. Removed redunant beam file compile rule from

[GitHub] couchdb-khash pull request #8: Fix iterator expiry test

2017-10-02 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-khash/pull/8 Fix iterator expiry test This test started failing with Erlang 20.0 release. The reason is that opaaque NIF resources stopped being identifed as empty binaries in Erlang so previously

[GitHub] couchdb-khash issue #7: Replace deprecated random module

2017-10-02 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-khash/pull/7 Will do! Good idea. I just noticed it was wonky ---

[GitHub] couchdb-khash pull request #7: Replace deprecated random module

2017-10-02 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-khash/pull/7 Replace deprecated random module Replaced with crypto:rand_uniform functions. You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/couchdb

[GitHub] couchdb-config pull request #16: Add longer timeouts for operations which co...

2017-07-21 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-config/pull/16 Add longer timeouts for operations which could write to disk It turns out that 5 seconds is often not enough in a severly throttled test environment, and simple operations like config:set

[GitHub] couchdb-ets-lru issue #5: Fix flaky tests

2017-07-13 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-ets-lru/pull/5 +1 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-05-25 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 Closing, moved to monorepo PR https://github.com/apache/couchdb/pull/539 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your

[GitHub] couchdb-couch pull request #236: Close idle dbs

2017-05-25 Thread nickva
Github user nickva closed the pull request at: https://github.com/apache/couchdb-couch/pull/236 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature

[GitHub] couchdb-couch-replicator pull request #64: 63012 scheduler

2017-04-13 Thread nickva
Github user nickva closed the pull request at: https://github.com/apache/couchdb-couch-replicator/pull/64 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if

[GitHub] couchdb-couch-replicator issue #64: 63012 scheduler

2017-04-04 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch-replicator/pull/64 Another, cleaned up version of this PR was issued after the monorepo merge. https://github.com/apache/couchdb/pull/470 Keep this one open for a bit longer just in

[GitHub] couchdb-chttpd issue #158: 63012 scheduler

2017-04-04 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-chttpd/pull/158 Closing this PR. Another one was issued after the monorepo merge. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your

[GitHub] couchdb-chttpd pull request #158: 63012 scheduler

2017-04-04 Thread nickva
Github user nickva closed the pull request at: https://github.com/apache/couchdb-chttpd/pull/158 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the

[GitHub] couchdb-couch pull request #238: Add _replication_start_time to the doc fiel...

2017-04-04 Thread nickva
Github user nickva closed the pull request at: https://github.com/apache/couchdb-couch/pull/238 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature

[GitHub] couchdb-couch issue #238: Add _replication_start_time to the doc field valid...

2017-04-04 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/238 Closing this one. A new PR was issued after the monorepo merge --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project

[GitHub] couchdb-couch-mrview issue #73: Fix unused variables warning

2017-03-31 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/73 +1 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if

[GitHub] couchdb-couch issue #239: An ETS based couch_lru

2017-03-15 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/239 I ended up not using `update_counter` because update_counter/4 is not available in R16B which CouchDB still supports. Tried simply replacing update_element with update_counter/3 but that

[GitHub] couchdb-couch-mrview pull request #69: Allow limiting maximum document body ...

2017-03-15 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-mrview/pull/69 Allow limiting maximum document body size This is a companion commit to this one: https://github.com/apache/couchdb-couch/pull/235 COUCHDB-2992 You can merge this pull

[GitHub] couchdb-couch pull request #239: An ETS based couch_lru

2017-03-15 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/239#discussion_r106270691 --- Diff: src/couch_lru.erl --- @@ -16,48 +16,57 @@ -include_lib("couch/include/couch_db.hrl"). new() -> -{g

[GitHub] couchdb-couch pull request #239: An ETS based couch_lru

2017-03-15 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/239#discussion_r106269371 --- Diff: src/couch_lru.erl --- @@ -16,48 +16,57 @@ -include_lib("couch/include/couch_db.hrl"). new() -> -{g

[GitHub] couchdb-couch pull request #239: An ETS based couch_lru

2017-03-15 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/239#discussion_r106262038 --- Diff: src/couch_lru.erl --- @@ -16,48 +16,57 @@ -include_lib("couch/include/couch_db.hrl"). new() -> -{g

[GitHub] couchdb-couch issue #239: An ETS based couch_lru

2017-03-15 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/239 @davisp @eiri I tried a 5 minute eprof run. At default 500 max_dbs_open. Cluster had 20 continuous 1-to-n replications. ``` master + ETS lru (this PR

[GitHub] couchdb-couch pull request #239: An ETS based couch_lru

2017-03-15 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch/pull/239 An ETS based couch_lru The interface is the same as previous couch_lru. You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb

[GitHub] couchdb-couch issue #237: Add sys_dbs to the LRU

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/237 Tried it locally. Looks good. +1 After tests are fixed. We'd want to performance tests this at some point. --- If your project is set up for it, you can reply to this

[GitHub] couchdb-chttpd pull request #158: 63012 scheduler

2017-03-14 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-chttpd/pull/158 63012 scheduler This is part of a set of PRs to merge the new scheduling replicator Main PR is this: apache/couchdb-couch-replicator#64 Top level PR to gather and help test

[GitHub] couchdb-couch pull request #238: Add _replication_start_time to the doc fiel...

2017-03-14 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch/pull/238 Add _replication_start_time to the doc field validation section. This is part of a set of PRs to merge the new scheduling replicator Main PR is this: https://github.com/apache/couchdb

[GitHub] couchdb-couch-replicator pull request #64: 63012 scheduler

2017-03-14 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/64 63012 scheduler Pull request to merge scheduling replicator work to ASF master. This repository has most of the changes. The feature overall consists of updates to 3

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 And it would be non-portable (on windows at least) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @davisp python has a way to check file descriptor limits, I am not sure erlang has it: ``` In [9]: resource.getrlimit(resource.RLIMIT_NOFILE) Out[9]: (65536, 65536

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 Updated with using hibernate `wakeup` trick and not having the silly timer in there as well --- If your project is set up for it, you can reply to this email and have your reply appear on

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @eiri the eviction policy would be used when we are bumping against the limit. This could happen under a minute time-frame. A minute could be for example 1 hour (maybe it should be?). Then if

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @eiri lru would be used to remove and makes room immediately if we are bumping against the limit, specifically it would remove non sys db shards first. idle-based remove is to clean

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 Hibernate thing can be simplified then. I'll give that a try. On _users I see it with a few replications running. And I see replication sources and _users shard appear in the ets

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 Ah makes sense we don't do that on delete so was wondering about that. You're right will update code. Also what do you think of not using hibernate and instead just a gc

[GitHub] couchdb-couch pull request #236: Close idle dbs

2017-03-14 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/236#discussion_r105918717 --- Diff: src/couch_db_updater.erl --- @@ -1454,3 +1468,44 @@ default_security_object(_DbName) -> "

[GitHub] couchdb-couch issue #235: Allow limiting maximum document body size

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/235 @sagelywizard should be a bit better now. But ended up with another pr for fabric as well. --- If your project is set up for it, you can reply to this email and have your reply appear on

[GitHub] couchdb-couch issue #235: Allow limiting maximum document body size

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/235 Related pr: * https://github.com/apache/couchdb-fabric/pull/91 * https://github.com/apache/couchdb-chttpd/pull/157 --- If your project is set up for it, you can reply to

[GitHub] couchdb-fabric pull request #91: Allow limiting maximum document body size

2017-03-14 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-fabric/pull/91 Allow limiting maximum document body size Update doc function to check and validate document body sizes Main implementation is in PR: https://github.com/apache/couchdb-couch

[GitHub] couchdb-fabric issue #91: Allow limiting maximum document body size

2017-03-14 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-fabric/pull/91 Related to: https://github.com/apache/couchdb-couch/pull/235 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project

[GitHub] couchdb-couch issue #235: Allow limiting maximum document body size

2017-03-13 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/235 @sagelywizard I added a validating version of the function. The other code like cleanup_index_files can still call the old function and not crash on size limit change. --- If your project is

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-13 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 I updated the code to both bump down the open dbs count on close as well as remove entries from Lru. The last bit was shamelessly stolen from Eric. --- If your project is set up for it, you

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-13 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @eiri Nice find. Thank you. Yap I see when we delete a non-sys_db we forget to handle lru properly. --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] couchdb-couch pull request #236: Close idle dbs

2017-03-13 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/236#discussion_r105822402 --- Diff: src/couch_server.erl --- @@ -173,6 +174,15 @@ hash_admin_passwords(Persist) -> config:set("admins"

[GitHub] couchdb-couch pull request #236: Close idle dbs

2017-03-13 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/236#discussion_r105822026 --- Diff: src/couch_db_updater.erl --- @@ -1454,3 +1468,28 @@ default_security_object(_DbName) -> "

[GitHub] couchdb-couch pull request #235: Allow limiting maximum document body size

2017-03-13 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/235#discussion_r105816177 --- Diff: src/couch_doc.erl --- @@ -125,7 +125,14 @@ doc_to_json_obj(#doc{id=Id,deleted=Del,body=Body,revs={Start, RevIds

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-13 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 Since first (dirty) is_idle check was moved to `couch_db_updater` wonder if it is even worth doing this additional read in couch_server ``` close_db_if_idle(DbName) -> c

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-13 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @davisp @sagelywizard Used process dictionary to fix two issues: 1) Lack of configuration. Configuration is now read from `couchdb.idle_check_timeout` with a default of 6

[GitHub] couchdb-couch issue #236: Close idle dbs

2017-03-13 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @sagelywizard we are doing a check first is see if shard is idle to hopefully avoid backing up couch_server with messages. Also because this will close idle shards, couch_server should

[GitHub] couchdb-couch pull request #236: Close idle dbs

2017-03-13 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch/pull/236 Close idle dbs Previously idle dbs, especially sys_dbs like _replicator shards once opened once for scanning would stay open forever. In a large cluster with many _replicator shards

[GitHub] couchdb-chttpd issue #157: Allow limiting maximum document body size

2017-03-13 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-chttpd/pull/157 Tests are failing because it needs changes from https://github.com/apache/couchdb-couch/pull/235 --- If your project is set up for it, you can reply to this email and have your reply appear

[GitHub] couchdb-chttpd pull request #157: Allow limiting maximum document body size

2017-03-13 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-chttpd/pull/157 Allow limiting maximum document body size This is the HTTP layer and some tests. The actual checking is done in couch application's from_json_obj/1 function. If a document i

[GitHub] couchdb-couch pull request #235: Allow limiting maximum document body size

2017-03-13 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch/pull/235 Allow limiting maximum document body size Configuration is via the `couchdb.max_document_size`. In the past that was implemented as a maximum http request body size and this finally

[GitHub] couchdb-couch-replicator pull request #63: Prevent change feeds from being s...

2017-03-10 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/63 Prevent change feeds from being stuck You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch-replicator

[GitHub] couchdb-couch-replicator issue #62: Don't scan empty replicator databases

2017-03-09 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch-replicator/pull/62 +1 Tested it seems to work well. Log shows ``` ignoring empty shards/8000-9fff/blah/_replicator.1489084820 ``` --- If your project is set up

[GitHub] couchdb-documentation pull request #105: Add documentation for the new `max_...

2017-03-07 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-documentation/pull/105 Add documentation for the new `max_http_request_size` parameter COUCHDB-2992 You can merge this pull request into a Git repository by running: $ git pull https://github.com

[GitHub] couchdb-documentation issue #91: clarify $db/_security section

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-documentation/pull/91 +1 Thanks, Robert I will rebase and merge. Had indent the shell line a bit so it renders appropriately. --- If your project is set up for it, you can reply to this

[GitHub] couchdb-documentation issue #104: Some grammar corrections

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-documentation/pull/104 +1 Thank you, @flimzy ! I'll rebase on latest master and merge. --- If your project is set up for it, you can reply to this email and have your reply appear on G

[GitHub] couchdb-documentation issue #98: Dependency correction for basic build

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-documentation/pull/98 +1 Thank you, @Lars I'll rebase on master, remove an extra empty to line keep linter happy, and then merge your change --- If your project is set up for it, yo

[GitHub] couchdb-documentation issue #95: Grammar and an inaccuracy.

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-documentation/pull/95 +1 Thank you for your contribution! I'll rebase on latest master, fix the tests and merge it --- If your project is set up for it, you can reply to this email and have

[GitHub] couchdb-documentation issue #102: Fix Shard documentation: typos, minor clar...

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-documentation/pull/102 +1 Thank you for your contribution. I'll rebase and merge. Make check fails because some lines are longer than 80 chars long. I'll fix that du

[GitHub] couchdb-documentation issue #99: Fix documentation contribution guidelines

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-documentation/pull/99 +1 Very nice! Much appreciated I'll merge it --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If

[GitHub] couchdb-documentation issue #101: Add documentation for the `$allMatch` sele...

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-documentation/pull/101 +1 Thanks you @satabin --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this

[GitHub] couchdb-chttpd pull request #156: Introduce max_http_request_size to replace...

2017-03-07 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-chttpd/pull/156#discussion_r104803991 --- Diff: src/chttpd.erl --- @@ -630,7 +630,7 @@ body(#httpd{mochi_req=MochiReq, req_body=ReqBody}) -> undefi

[GitHub] couchdb-chttpd pull request #156: Introduce max_http_request_size to replace...

2017-03-07 Thread nickva
Github user nickva commented on a diff in the pull request: https://github.com/apache/couchdb-chttpd/pull/156#discussion_r104803095 --- Diff: src/chttpd.erl --- @@ -630,7 +630,7 @@ body(#httpd{mochi_req=MochiReq, req_body=ReqBody}) -> undefi

[GitHub] couchdb-couch issue #233: Rename max_document_size to max_http_request_size

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/233 Related PRs: * https://github.com/apache/couchdb-couch-replicator/pull/61 * https://github.com/apache/couchdb-chttpd/pull/156 --- If your project is set up for it, you can reply

[GitHub] couchdb-couch-replicator pull request #61: Fix unit test after renaming max_...

2017-03-07 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/61 Fix unit test after renaming max_document_size config parameter `couchdb.max_document_size` was renamed to `httpd.max_http_request_size` The unit tests was testing how

[GitHub] couchdb-chttpd issue #156: Introduce max_http_request_size to replace max_do...

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-chttpd/pull/156 Related PR for couch: https://github.com/apache/couchdb-couch/pull/233 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your

[GitHub] couchdb-couch pull request #233: Rename max_document_size to max_http_reques...

2017-03-07 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch/pull/233 Rename max_document_size to max_http_request_size `max_document_size` is implemented as `max_http_request_size`. There was no real check for document size. In some cases the implementation

[GitHub] couchdb-chttpd issue #156: Introduce max_http_request_size to replace max_do...

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-chttpd/pull/156 I think for simplicity I'll try `httpd` since the setting is used by both clustered and un-clustered interface. And have 2 more prs for couch and replicator (it used in a test

[GitHub] couchdb-chttpd issue #156: Introduce max_http_request_size to replace max_do...

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-chttpd/pull/156 Wonder if we should use the httpd config section since `max_http_request_size` related more the HTTP layer than db core. --- If your project is set up for it, you can reply to this email and

[GitHub] couchdb-couch-replicator pull request #60: Remove unused mp_parse_doc functi...

2017-03-07 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/60 Remove unused mp_parse_doc function from replicator It was left accidentally when merging Cloudant's dbcore work. COUCHDB-2992 You can merge this pull request into

[GitHub] couchdb-chttpd issue #156: Introduce max_http_request_size to replace max_do...

2017-03-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-chttpd/pull/156 Hmm I don't see where we are using this additional mp_parse_doc function from replicator: https://github.com/apache/couchdb-couch-replicator/blob/maste

[GitHub] couchdb-couch pull request #231: Fix `badarith` error in couch_db:get_db_inf...

2017-03-02 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch/pull/231 Fix `badarith` error in couch_db:get_db_info call When folding we account for a previous `null`, `undefined`, or a number. However btree:size/1 returns 0, `nil` or a number

[GitHub] couchdb-couch-replicator pull request #59: Make sure to log db as well as do...

2017-03-02 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/59 Make sure to log db as well as doc in replicator logs. COUCHDB-3316 You can merge this pull request into a Git repository by running: $ git pull https://github.com

[GitHub] couchdb-couch-replicator issue #58: Prevent couch_replicator_manager crashin...

2017-03-01 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch-replicator/pull/58 +1 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so

[GitHub] couchdb-couch-replicator pull request #57: Restore adding some jitter-ed sle...

2017-02-28 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/57 Restore adding some jitter-ed sleep to shard scanning code. Otherwise a large cluster will flood replicator manager with potentially hundreds of thousands of `{resume, Shard

[GitHub] couchdb-couch issue #230: Add sys db callbacks only once per db open

2017-02-23 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/230 It seems functionally there is a difference between the current code path and the new one: If we don't add callbacks in case db is found, we don't update `Options` to inclu

[GitHub] couchdb-fabric issue #89: Prevent attachment upload from timing out during u...

2017-02-21 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-fabric/pull/89 Can now PUT aprox a 1Gb attachment Could never do that before: ``` ./attach_large.py --size=10 --mintime=120 ... > sent data in 0.000 sec res: N

[GitHub] couchdb-fabric pull request #89: Prevent attachment upload from timing out d...

2017-02-21 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-fabric/pull/89 Prevent attachment upload from timing out during update_docs fabric call Currently if an attachment was large enough or the connection was slow enough such that it took more than

[GitHub] couchdb-fabric issue #88: Use RealReplyCount to distinguish worker replies a...

2017-02-10 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-fabric/pull/88 _bulk_get and open_revs=all work +1 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this

[GitHub] couchdb-chttpd issue #155: Mock config module in tests

2017-02-09 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-chttpd/pull/155 Note: I couldn't reproduce this error locally. However I have seen similar failure when working on couch pr resulting from config being in the path of basic doc operations. The fi

[GitHub] couchdb-chttpd issue #155: Mock config module in tests

2017-02-09 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-chttpd/pull/155 +1 ``` chttpd_error_info_tests: error_info_test (module 'chttpd_error_info_tests')...[0.010 s] ok === All

[GitHub] couchdb-documentation issue #100: Some documentation improvements

2017-02-09 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-documentation/pull/100 +1 Thank you! I'll merge the commit and update master --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as

[GitHub] couchdb-couch-replicator pull request #56: Use string formatting to shorten ...

2017-02-08 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/56 Use string formatting to shorten document ID during logging. Previously used an explicit lists:sublist call but value was never used anywhere besides the log message

[GitHub] couchdb-couch issue #226: Allow limiting length of document ID

2017-02-08 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/226 @rnewson @kxepal pr to use infinity for replicator as well https://github.com/apache/couchdb-couch-replicator/pull/55 --- If your project is set up for it, you can reply to this email and

[GitHub] couchdb-couch-replicator pull request #55: Switch replicator max_document_id...

2017-02-08 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/55 Switch replicator max_document_id_length config to use infinity Default value switched to be `infinity` instead of 0 COUCHDB-3291 You can merge this pull request into a Git

[GitHub] couchdb-couch issue #226: Allow limiting length of document ID

2017-02-07 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/226 Will do. Maybe we should even have it as a config function get_integer_or_infinity? But that's for another PR... --- If your project is set up for it, you can reply to this email and

[GitHub] couchdb-couch issue #226: Allow limiting length of document ID

2017-02-06 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch/pull/226 Before setting the limit (python code): ``` d1 = {"_id":"2"*21} d.update([d1]) >>> [(True, u'2'

[GitHub] couchdb-couch pull request #226: Allow limiting length of document ID

2017-02-06 Thread nickva
GitHub user nickva opened a pull request: https://github.com/apache/couchdb-couch/pull/226 Allow limiting length of document ID Previously it was not possibly to define a maxum document ID size. That meant large document ID would hit various limitations and corner cases. For

[GitHub] couchdb-couch-replicator issue #54: Allow configuring maximum document ID le...

2017-02-06 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-couch-replicator/pull/54 Thanks @iilyak ! --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled

[GitHub] couchdb-fabric issue #86: Return Error When Workers Crash

2017-02-06 Thread nickva
Github user nickva commented on the issue: https://github.com/apache/couchdb-fabric/pull/86 @tonysun83 Yap it will still end up retrying in open_revs. It is not ideal but for now we can keep it like that --- If your project is set up for it, you can reply to this email and have your

  1   2   3   4   >