[GitHub] couchdb-ets-lru pull request #6: Remove unused var in tests

2017-09-01 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-ets-lru/pull/6 Remove unused var in tests Trivial fix to remove a variable in one of the tests' teardown function to avoid "Unused variable" warning. You can merge this pull request into a Git

[GitHub] couchdb-couch-mrview issue #72: Fix end-point _local_docs

2017-05-01 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/72 Ported to apache/couchdb#488 --- 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

[GitHub] couchdb-couch-mrview pull request #72: Fix end-point _local_docs

2017-05-01 Thread eiri
Github user eiri closed the pull request at: https://github.com/apache/couchdb-couch-mrview/pull/72 --- 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-mrview pull request #73: Fix unused variables warning

2017-03-31 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch-mrview/pull/73 Fix unused variables warning This cleans up the artifacts left after [refactoring of `couch_mrview_index:get/2`](https://github.com/apache/couchdb-couch-mrview/pull/65) You can merge

[GitHub] couchdb-couch-mrview pull request #72: Fix end-point _local_docs

2017-03-21 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch-mrview/pull/72#discussion_r107330320 --- Diff: src/couch_mrview.erl --- @@ -653,6 +653,18 @@ make_meta(Args, UpdateSeq, Base) -> end. +get_total_rows(

[GitHub] couchdb-couch-mrview pull request #72: Fix end-point _local_docs

2017-03-21 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch-mrview/pull/72#discussion_r107325855 --- Diff: test/couch_mrview_local_docs_tests.erl --- @@ -0,0 +1,134 @@ +% Licensed under the Apache License, Version 2.0 (the "License&q

[GitHub] couchdb-couch-mrview pull request #72: Fix end-point _local_docs

2017-03-21 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch-mrview/pull/72#discussion_r107318756 --- Diff: src/couch_mrview.erl --- @@ -653,6 +653,18 @@ make_meta(Args, UpdateSeq, Base) -> end. +get_total_rows(

[GitHub] couchdb-couch-mrview issue #72: Fix end-point _local_docs

2017-03-21 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/72 @davisp @iilyak Can you take a look, please, whenever you'll have time. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well

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

2017-03-15 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/239 Travis failed with infamous `gnutls_handshake() failed`, but fwiw local tests all passed: ``` module 'chttpd_endpoints_tests

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

2017-03-15 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/239 Prof looks promising. Can you add tests, just to be on a safe side? Feel free to pull from here: https://github.com/cloudant/couchdb-couch/commit/4358b8d678ab15d0153530a41f68ff7867b633a5

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

2017-03-14 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/237 Looks good to me. For a reference [here is what I came up with](https://github.com/apache/couchdb-couch/compare/master...cloudant:add-lru-excluded-option) --- If your project is set up

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

2017-03-14 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @davisp ok, I'm not talking about the issue we had, I'm talking about this whole change - we effectively not using lru as eviction policy anymore, so there are no point of tracking shards access

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

2017-03-14 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @davisp @nickva I think I haven't made myself clear. If we are closing _everything_ idle, sys and none-sys, then that means when we are hitting max_dbs_open we have max_dbs_open number of none

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

2017-03-14 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/236 @davisp, @nickva I think I'm a bit confused here: if we don't use `lru` to decide what to evict, what the point of having it? I mean, with this change we indiscriminately removing anything

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

2017-03-13 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/236 I ran some tests and this approach not working very well. Since `close_db_if_idle` removes records from ets, but not from lru, "system" dbs pushing "normal" dbs out of et

[GitHub] couchdb-couch-replicator pull request #62: Don't scan empty replicator datab...

2017-03-09 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch-replicator/pull/62#discussion_r105249451 --- Diff: src/couch_replicator_manager.erl --- @@ -1005,6 +1013,38 @@ get_json_value(Key, Props, Default) when is_binary(Key) ->

[GitHub] couchdb-couch-replicator pull request #62: Don't scan empty replicator datab...

2017-03-09 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch-replicator/pull/62#discussion_r105246600 --- Diff: src/couch_replicator_manager.erl --- @@ -1005,6 +1013,38 @@ get_json_value(Key, Props, Default) when is_binary(Key) ->

[GitHub] couchdb-couch issue #232: Efficiently bypass vhost handling if there are non...

2017-03-06 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/232 +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 pull request #227: Add test_request:delete/3

2017-02-08 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/227#discussion_r100148952 --- Diff: src/test_request.erl --- @@ -51,6 +51,9 @@ delete(Url) -> delete(Url, Opts) -> request(delete, Url, [], [], Opts). -

[GitHub] couchdb-couch-mrview pull request #65: Refactor mrview_index get

2017-02-08 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch-mrview/pull/65#discussion_r100131808 --- Diff: src/couch_mrview_index.erl --- @@ -23,84 +23,77 @@ -include_lib("couch_mrview/include/couch_mrview.hrl").

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

2017-02-08 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-replicator/pull/56 lgtm --- 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-mrview pull request #65: Refactor mrview_index get

2017-02-07 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch-mrview/pull/65#discussion_r99881145 --- Diff: src/couch_mrview_index.erl --- @@ -23,84 +23,80 @@ -include_lib("couch_mrview/include/couch_mrview.hrl").

[GitHub] couchdb-couch-mrview pull request #65: Refactor mrview_index get

2017-02-07 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch-mrview/pull/65 Refactor mrview_index get This is a simple refactoring of mrview's `get/2` function that uses function's pattern matching instead of staircase case. Arguably this makes code

[GitHub] couchdb-couch pull request #224: Don't crash on unexpected validation's erro...

2017-01-30 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/224 Don't crash on unexpected validation's error type Validation function can throw JSON with error type different than forbidden or unauthorized. This patch makes couch return

[GitHub] couchdb-couch-replicator issue #53: Fix shards db name typo from previous co...

2017-01-25 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-replicator/pull/53 +1 note: the failing tests due to gnutls badness, `fatal: unable to access 'https://git-wip-us.apache.org/repos/asf/couchdb-couch-epi.git/': gnutls_handshake() failed: A TLS

[GitHub] couchdb-fabric pull request #85: Add admin ctx on open ddoc in group_info

2017-01-24 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-fabric/pull/85 Add admin ctx on open ddoc in group_info Group info on ddocs in _users database require admin privileges. COUCHDB-3279 You can merge this pull request into a Git repository by running

[GitHub] couchdb pull request #451: Updated couch dependencies

2017-01-20 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb/pull/451 Updated couch dependencies List of changes: * Reset EOF if a partial write was possible ([COUCHDB-3274](https://issues.apache.org/jira/browse/COUCHDB-3274)) * Merge remote branch

[GitHub] couchdb pull request #450: Bump dependencies for couch, chttpd and fabric

2017-01-20 Thread eiri
Github user eiri closed the pull request at: https://github.com/apache/couchdb/pull/450 --- 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 pull request #450: Bump dependencies for couch, chttpd and fabric

2017-01-18 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb/pull/450 Bump dependencies for couch, chttpd and fabric List of changes: chttpd: cb0f20..90648a * allow w parameter for attachments fabric: 205064..998cf2 * Handle no_pass message

[GitHub] couchdb-couch issue #221: Improve errors on invalid "count" parameter in /_u...

2017-01-18 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/221 @kxepal I agree on tests, but it's a bit awkward, with handler been here and tests need to be in `chttpd`, so they guarantee to fail. I'll add them after this get merged and added to rebar's

[GitHub] couchdb-couch pull request #221: Improve errors on invalid "count" parameter...

2017-01-18 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/221 Improve errors on invalid "count" parameter in /_uuids Added validation on "count" parameter to be positive and changed return code for "count" exceeding ma

[GitHub] couchdb-couch issue #220: Fix couchdb_views tests

2017-01-05 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/220 @iilyak yes, this seems to be a better approach, updated. --- 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

[GitHub] couchdb-couch-mrview pull request #64: Fix convertion of view states

2017-01-05 Thread eiri
Github user eiri closed the pull request at: https://github.com/apache/couchdb-couch-mrview/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

[GitHub] couchdb-couch-mrview issue #64: Fix convertion of view states

2017-01-05 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/64 All right, this is incorrect. In `#mrview` record the fields `update_seq` and `purge_seq` should always be set to the latest db update/purge seq that altered the view, because sole

[GitHub] couchdb-couch-mrview pull request #64: Fix convertion of view states

2017-01-05 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch-mrview/pull/64 Fix convertion of view states It is possible to have one or multiple view states to be nil when their views do not emit documents. As a result update and purge sequences could

[GitHub] couchdb pull request #447: Bump dependencies

2016-12-12 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb/pull/447 Bump dependencies This update brings all the dependencies up to date. The commits are grouping updates as they've been merged on according masters and done in chronological order. You can merge

[GitHub] couchdb-couch-mrview issue #63: Convert pid of indexer to binary

2016-12-01 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/63 +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-mem3 pull request #26: Chunk missing revisions before attempting to ...

2016-11-24 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-mem3/pull/26 Chunk missing revisions before attempting to save on target In cases with pathological documents revision patterns (e.g., 1 open conflicts and tree depth of 30 on a single document

[GitHub] couchdb-couch issue #214: Handle open_result message that arrives after the ...

2016-11-23 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/214 +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-mrview pull request #61: Remove side effect from accumulate_mo...

2016-11-18 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch-mrview/pull/61 Remove side effect from accumulate_more In mrview's updater we regulate the size of processed docs batch either by number of items or by memory it allocates. We are comparing threshold

[GitHub] couchdb-couch pull request #213: Add test for filter _changes by filters fun...

2016-11-11 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/213 Add test for filter _changes by filters function This adds tests for basic filtering of _changes feed by "filters" function both for filtering by doc attributes and by passed in requ

[GitHub] couchdb-chttpd pull request #150: Include user_ctx in db open options

2016-11-11 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-chttpd/pull/150#discussion_r87641585 --- Diff: src/chttpd_db.erl --- @@ -83,7 +83,8 @@ handle_changes_req(#httpd{path_parts=[_,<<"_changes">>]}=Req, _Db) -> h

[GitHub] couchdb-chttpd pull request #150: Include user_ctx in db open options

2016-11-11 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-chttpd/pull/150 Include user_ctx in db open options Previously original `Db` record was kept on `filter_fun` tuple in `#changes_args` and passed to the filters. Now we are throwing it away and including `Db

[GitHub] couchdb-couch issue #210: Include file_path on errors from couch_file

2016-11-04 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/210 Not sure why travis is stuck here, but locally tests are passing. +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

[GitHub] couchdb-couch pull request #210: Include file_path on errors from couch_file

2016-11-04 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/210#discussion_r86540764 --- Diff: src/couch_file.erl --- @@ -625,10 +627,12 @@ read_raw_iolist_int(#file{fd = Fd, pread_limit = Limit} = F, Pos, Len) -> case

[GitHub] couchdb-couch pull request #210: Include file_path on errors from couch_file

2016-11-03 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch/pull/210#discussion_r86384849 --- Diff: src/couch_file.erl --- @@ -625,10 +627,12 @@ read_raw_iolist_int(#file{fd = Fd, pread_limit = Limit} = F, Pos, Len) -> case

[GitHub] couchdb-couch issue #200: Adding test suite for trancated _update

2016-10-04 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/200 Passed locally. LGTM. ``` Compiled test/couchdb_mrview_tests.erl EUnit module 'couchdb_mrview_tests' Check show

[GitHub] couchdb-chttpd issue #140: Handle disconnect when receiving body

2016-10-04 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-chttpd/pull/140 Let's make the error "Invalid request body", to cover cases with `max_document_size` exceeded and because we seems to use more verbose forms on `bad_request` and +1 --- If your proj

[GitHub] couchdb-couch-replicator pull request #47: Validate boolean parameters in /_...

2016-09-01 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch-replicator/pull/47 Validate boolean parameters in /_replicate payload Unlike `/_replicator`, end-point `/_replicate` doesn't check type for the boolean parameters in payload, which leads replicator

[GitHub] couchdb-couch issue #193: Fix validation for ddoc and _local id

2016-09-01 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/193 @rnewson I did it at first, but then decided to go with less confusing error message for the users sake. If you think it's not a problem here then sure, I'll use guards. --- If your project

[GitHub] couchdb-couch pull request #193: Fix validation for ddoc and _local id

2016-09-01 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/193 Fix validation for ddoc and _local id Because binary match treats end of binary as `<<>>` we are validating "_design/" and "_local/" as proper ids.

[GitHub] couchdb-couch-mrview issue #54: Reset row_sent at end of query

2016-08-25 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/54 Tested and this is the correct fix +1. But can we wrap that line at 80 chars, please? --- If your project is set up for it, you can reply to this email and have your reply appear

[GitHub] couchdb-couch issue #190: Unblock waiting processes during idle process remo...

2016-08-15 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/190 Closing in favour of #191 --- 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-couch pull request #190: Unblock waiting processes during idle proce...

2016-08-15 Thread eiri
Github user eiri closed the pull request at: https://github.com/apache/couchdb-couch/pull/190 --- 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 #191: Simplify proc manager by moving assignment logic i...

2016-08-15 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/191 @davisp Here is the redo we talked about. --- 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 #191: Simplify proc manager by moving assignment logic i...

2016-08-15 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/191 Reference on conversation about this change #190 --- 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 pull request #191: Simplify proc manager by moving assignment ...

2016-08-15 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/191 Simplify proc manager by moving assignment logic in one place This changes how proc manager handles proc assignment. Instead of doing this in three different places: `get_proc` call handler

[GitHub] couchdb-couch issue #190: Unblock waiting processes during idle process remo...

2016-08-10 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/190 Okey-dokey, I'll redo this with `maybe_teach_ddoc`. Should I add a feature to disable hard limit as well? Right now it's not possible, unless setting it to something with a lot of zeros

[GitHub] couchdb-couch issue #190: Unblock waiting processes during idle process remo...

2016-08-09 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/190 Well, my reasoning was that the waiters got into wait because hard limit was reached, i.e. we haven't found idle process that already know about requestor's ddoc, we haven't found idle process

[GitHub] couchdb-couch issue #190: Unblock waiting processes during idle process remo...

2016-08-05 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/190 @davisp Can you please take a look if this looks like a right solution for you? I know it solves the issue with "query_protocol_error", doesn't lead to waiters timeouts and doesn't

[GitHub] couchdb-couch pull request #190: Unblock waiting processes during idle proce...

2016-08-05 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/190 Unblock waiting processes during idle process remove To clarify the description of the problem here is some terminology used in the process manager: - idle process - a running os

[GitHub] couchdb-fabric pull request #61: Ignore already received replies for same sh...

2016-07-08 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-fabric/pull/61#discussion_r70139806 --- Diff: src/fabric_group_info.erl --- @@ -58,17 +58,23 @@ handle_message({rexi_EXIT, Reason}, Shard, {Counters, Acc, Ushards}) ->

[GitHub] couchdb-fabric pull request #61: Ignore already received replies for same sh...

2016-07-08 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-fabric/pull/61#discussion_r70134251 --- Diff: src/fabric_group_info.erl --- @@ -58,17 +58,23 @@ handle_message({rexi_EXIT, Reason}, Shard, {Counters, Acc, Ushards}) ->

[GitHub] couchdb-chttpd issue #126: Return error 410 on temporary view request

2016-07-06 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-chttpd/pull/126 Closing this, going to look into re-enabling temp views instead. --- 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 #181: Fix changed feed view filter for clustered access

2016-06-24 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch/pull/181 @davisp here is the short fix we've discussed on Monday. --- 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

[GitHub] couchdb-chttpd issue #125: Don't expect #vacc as a response of end_delayed_j...

2016-06-15 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-chttpd/pull/125 @iilyak `design_doc_view` used with POST and keys and that I did check, works fine. I haven't specially checked `all_docs_view`, but at first glance it looks like it should be good: vacc

[GitHub] couchdb-fabric issue #58: Fix match in fabric_doc_open_revs reply

2016-06-14 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-fabric/pull/58 @davisp check it out, I've noticed it by a chance. --- 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-fabric pull request #58: Fix match in fabric_doc_open_revs reply

2016-06-14 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-fabric/pull/58 Fix match in fabric_doc_open_revs reply Message handler in `fabric_doc_open_revs` returns tagged with 'ok' list of the replies and not expected `{ok, Reply}` tuple. This makes reply to go

[GitHub] couchdb-couch-mrview issue #48: Allow json_decode in parse_params to be opti...

2016-06-13 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/48 @rnewson Changes it to use your suggestion. --- 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-fabric pull request #56: Fix fabric_db_update_listener rexi_DOWN han...

2016-06-10 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-fabric/pull/56#discussion_r2235 --- Diff: src/fabric_db_update_listener.erl --- @@ -155,4 +162,11 @@ handle_message(done, _, _) -> {stop,

[GitHub] couchdb-fabric pull request #56: Fix fabric_db_update_listener rexi_DOWN han...

2016-06-10 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-fabric/pull/56#discussion_r66659877 --- Diff: src/fabric_db_update_listener.erl --- @@ -155,4 +162,11 @@ handle_message(done, _, _) -> {stop,

[GitHub] couchdb-fabric issue #56: Fix fabric_db_update_listener rexi_DOWN handling

2016-06-10 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-fabric/pull/56 it works. +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-mrview pull request #47: Don't try to decode non-stringified J...

2016-06-09 Thread eiri
Github user eiri closed the pull request at: https://github.com/apache/couchdb-couch-mrview/pull/47 --- 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-mrview issue #47: Don't try to decode non-stringified JSON in ...

2016-06-09 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/47 Ah yes, I thought we are talking about this particular JSON_DECODE. So the guard on `is_list` here is not to tell json from a term apart, but for optimization reasons? Passing

[GitHub] couchdb-couch-mrview issue #47: Don't try to decode non-stringified JSON in ...

2016-06-08 Thread eiri
Github user eiri commented on the issue: https://github.com/apache/couchdb-couch-mrview/pull/47 We are _not_ calling JSON_DECODE twice, this is not the problem here. We are getting list of query attributes as a json payload, decoding it [here](https://github.com/apache/couchdb-chttpd

[GitHub] couchdb-couch-mrview pull request #47: Don't try to decode non-stringified J...

2016-06-08 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-couch-mrview/pull/47#discussion_r66324338 --- Diff: src/couch_mrview_http.erl --- @@ -576,6 +576,9 @@ check_view_etag(Sig, Acc0, Req) -> parse_json(V) when is_lis

[GitHub] couchdb-chttpd pull request #125: Don't expect #vacc as a response of end_de...

2016-06-08 Thread eiri
Github user eiri commented on a diff in the pull request: https://github.com/apache/couchdb-chttpd/pull/125#discussion_r66286884 --- Diff: src/chttpd_view.erl --- @@ -33,8 +33,7 @@ multi_query_view(Req, Db, DDoc, ViewName, Queries) -> Acc1 end, VA

[GitHub] couchdb-chttpd pull request #126: Return error 400 on temporary view request

2016-06-07 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-chttpd/pull/126 Return error 400 on temporary view request The request for temporary view is currently returning "403 Forbidden" error, which is implying a permissions issue. Error "400 Bad

[GitHub] couchdb-couch-mrview pull request #47: Don't try to decode non-stringified J...

2016-06-07 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch-mrview/pull/47 Don't try to decode non-stringified JSON in params It is possible for the params "key", "keys", "startkey" and "endkey" to receive already d

[GitHub] couchdb-chttpd pull request #125: Don't expect #vacc as a response of end_de...

2016-06-07 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-chttpd/pull/125 Don't expect #vacc as a response of end_delayed_json_response in multi_query_view When `multi_query_view` is calling `chttpd:end_delayed_json_response/1` it is passing it the response

[GitHub] couchdb-chttpd pull request: Fix _node/$node/_system endpoint

2016-05-27 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-chttpd/pull/123 Fix _node/$node/_system endpoint The endpoint is using the same handler as a backdoor interface, which only works for the requests to a local $node. For rpc calls to the remote nodes, as it's

[GitHub] couchdb pull request: Set default_security for the tests to everyo...

2016-05-25 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb/pull/421 Set default_security for the tests to everyone This sets default security for the eunit tests to "everyone" to allow them pass again You can merge this pull request into a Git repository

[GitHub] couchdb pull request: Bump deps

2016-05-25 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb/pull/420#issuecomment-221594599 +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

[GitHub] couchdb-couch-mrview pull request: Fix some type errors

2016-05-25 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-couch-mrview/pull/46#issuecomment-221553269 nice findings! +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

[GitHub] couchdb pull request: Implement a way to disable recompaction

2016-05-24 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb/pull/419#issuecomment-221388487 +1 ```bash $ make check apps=couch_index skip_deps=couch_epi < skip > module 'couch_index' Compaction tests

[GitHub] couchdb-couch pull request: Fix vhosts oauth tests

2016-05-19 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/175 Fix vhosts oauth tests In eunits the default security is "admin_local" and default security object for it was recently changed. This sets default_security for oauth tests to

[GitHub] couchdb-fabric pull request: Fix return type in get_all_security

2016-05-19 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-fabric/pull/51#issuecomment-220305078 +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

[GitHub] couchdb-couch pull request: add *.d to .gitignore

2016-05-18 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-couch/pull/28#issuecomment-220097203 @kxepal @davisp : Bump for a great justice. *.d files in question appears to be "deps files" generated by rebar's [port_compiler](https://github.com/r

[GitHub] couchdb pull request: Update to the latest mrview

2016-05-18 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb/pull/416#issuecomment-220007461 @kxepal Yes, apache/couchdb-couch part got in rebar.config as it happened to be downstream of admin_local work, so mrview's bit got left behind. The test failures

[GitHub] couchdb pull request: Update to the latest mrview

2016-05-17 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb/pull/416#issuecomment-219858120 @kxepal can you take a look, please? this bumps mrview up to HEAD and should resolve one of those pesky test failures we have on travis. --- If your project is set up

[GitHub] couchdb-couch pull request: Add config parameter to limit maximum ...

2016-05-17 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-couch/pull/173#issuecomment-219835491 @davisp Can you take a quick look, please? --- 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: Prevent reading beyond end of file and...

2016-05-16 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/173 Prevent reading beyond end of file and add config parameter to limit maxium pread size When a database file goes corrupt it is possible that pread will receive bogus length and place a large

[GitHub] couchdb pull request: Update to the latest mrview

2016-05-16 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb/pull/416 Update to the latest mrview This includes all the changes made to couch_mrview since the last deps update You can merge this pull request into a Git repository by running: $ git pull https

[GitHub] couchdb-couch pull request:

2016-05-15 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-couch/commit/78f575ec2cac823605561f1b38e0761d8170ac5f#commitcomment-17481247 @janl Travis was throwing those errors because this change affects two repos - #161 and [couchdb-couch-mrview#44

[GitHub] couchdb-couch pull request: Raise better exception on attempt to d...

2016-05-03 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch/pull/169 Raise better exception on attempt to decompress corrupt binary Right now when a binary without compression prefix passed on `couch_compress:decompress/1` (for example if a database file got

[GitHub] couchdb-couch pull request: Extend rename_on_delete behaviour on c...

2016-04-26 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-couch/pull/161#issuecomment-214780198 Companion PR apache/couchdb-couch-mrview#44 --- 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-mrview pull request: Use couch_file:delete/3 in view...

2016-04-26 Thread eiri
GitHub user eiri opened a pull request: https://github.com/apache/couchdb-couch-mrview/pull/44 Use couch_file:delete/3 in views cleanup Use `couch_file:delete/3` directly instead of one-op front function. All the tests moved in `couch_file_tests`. Depends on apache

[GitHub] couchdb-couch pull request: Extend rename_on_delete behaviour on c...

2016-04-19 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-couch/pull/161#issuecomment-211923314 @davisp I thought there are performance penalty on deleting a lot of files in deep filesystem hierarchy, I remember @rnewson mentioned this while we've been

[GitHub] couchdb-couch pull request: Extend rename_on_delete behaviour on c...

2016-04-13 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-couch/pull/161#issuecomment-209616524 @rnewson View compaction files handled in `couch_file:deleted/3` function which does what the first PR comment describes and you are commenting

[GitHub] couchdb-couch pull request: Extend rename_on_delete behaviour on c...

2016-04-08 Thread eiri
Github user eiri commented on the pull request: https://github.com/apache/couchdb-couch/pull/161#issuecomment-207643204 @rnewson My goal was not change the delete process, but to preserve existing behaviour and the code does _exactly_ what've been done here previously. My

  1   2   3   >