[jira] [Created] (COUCHDB-3296) wrong config for authentication_handlers

2017-02-07 Thread Bill Carpenter (JIRA)
Bill Carpenter created COUCHDB-3296:
---

 Summary: wrong config for authentication_handlers
 Key: COUCHDB-3296
 URL: https://issues.apache.org/jira/browse/COUCHDB-3296
 Project: CouchDB
  Issue Type: Bug
  Components: HTTP Interface
Reporter: Bill Carpenter


In the current tip of the master branch (but NOT in the couchDB 2.0 release 
sources), the function set_auth_handlers/0 in file 
https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd.erl consults 
configuration:

config:get("chttpd", "authentication_handlers", AuthenticationDefault))

I believe the config section was intended to be "httpd" instead of "chttpd". At 
least, that is the section for that config item in default.ini, so the code is 
probably just a typo.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (COUCHDB-3295) CouchDB service fails to run after installation in windows 7

2017-02-07 Thread Bjorn (JIRA)
Bjorn created COUCHDB-3295:
--

 Summary: CouchDB service fails to run after installation in 
windows 7
 Key: COUCHDB-3295
 URL: https://issues.apache.org/jira/browse/COUCHDB-3295
 Project: CouchDB
  Issue Type: Bug
  Components: Setup
Reporter: Bjorn


When starting CouchDB as a service, it fails to run with this error message. 

"Windows could not start the Apache CouchDB service on local Computer. The 
service did not return an error. This could be an internal Windows error or an 
internal service error. If the problem persists, contact your system 
administrator." 

In the windows event viewer logs, Here is the error:

"Faulting application name: erl.exe, version: 0.0.0.0, time stamp: 0x576313b3
Faulting module name: MSVCR120.dll, version: 12.0.21005.1, time stamp: 
0x524f83ff
Exception code: 0xc005
Fault offset: 0x0003c798
Faulting process id: 0x1624
Faulting application start time: 0x01d2816cc07bb800
Faulting application path: C:\...\erl.exe
Faulting module path: C:\...\MSVCR120.dll
Report Id: fe3429c2-ed5f-11e6-9110-54ee757ee63d"

So there might be an issue where erlang is not running properly after 
installations



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[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").
 
 
-get(Property, State) ->
-case Property of
-db_name ->
-State#mrst.db_name;
-idx_name ->
-State#mrst.idx_name;
-signature ->
-State#mrst.sig;
-update_seq ->
-State#mrst.update_seq;
-purge_seq ->
-State#mrst.purge_seq;
-update_options ->
-Opts = State#mrst.design_opts,
-IncDesign = couch_util:get_value(<<"include_design">>, Opts, 
false),
-LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
-SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, 
false),
-KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, 
Opts, false),
-if IncDesign -> [include_design]; true -> [] end
-++ if LocalSeq -> [local_seq]; true -> [] end
-++ if KeySeqIndexed -> [keyseq_indexed]; true -> [] end
-++ if SeqIndexed -> [seq_indexed]; true -> [] end;
-fd ->
-State#mrst.fd;
-language ->
-State#mrst.language;
-views ->
-State#mrst.views;
-info ->
-#mrst{
-fd = Fd,
-sig = Sig,
-id_btree = IdBtree,
-log_btree = LogBtree,
-language = Lang,
-update_seq = UpdateSeq,
-purge_seq = PurgeSeq,
-views = Views,
-design_opts = Opts
-} = State,
-{ok, FileSize} = couch_file:bytes(Fd),
-{ok, ExternalSize} = 
couch_mrview_util:calculate_external_size(Views),
-LogBtSize = case LogBtree of
-nil ->
-0;
-_ ->
-couch_btree:size(LogBtree)
-end,
-ActiveSize = couch_btree:size(IdBtree) + LogBtSize + 
ExternalSize,
-
-IncDesign = couch_util:get_value(<<"include_design">>, Opts, 
false),
-LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
-SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, 
false),
-KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, 
Opts, false),
-UpdateOptions =
-if IncDesign -> [<<"include_design">>]; true -> [] end
-++ if LocalSeq -> [<<"local_seq">>]; true -> [] end
-++ if KeySeqIndexed -> [<<"keyseq_indexed">>]; true -> [] 
end
-++ if SeqIndexed -> [<<"seq_indexed">>]; true -> [] end,
-
-
-{ok, [
-{signature, list_to_binary(couch_index_util:hexsig(Sig))},
-{language, Lang},
-{disk_size, FileSize}, % legacy
-{data_size, ExternalSize}, % legacy
-{sizes, {[
-{file, FileSize},
-{active, ActiveSize},
-{external, ExternalSize}
-]}},
-{update_seq, UpdateSeq},
-{purge_seq, PurgeSeq},
-{update_options, UpdateOptions}
-]};
-Other ->
-throw({unknown_index_property, Other})
-end.
+get(db_name, #mrst{db_name = DbName}) ->
+DbName;
+get(idx_name, #mrst{idx_name = IdxName}) ->
+IdxName;
+get(signature, #mrst{sig = Signature}) ->
+Signature;
+get(update_seq, #mrst{update_seq = UpdateSeq}) ->
+UpdateSeq;
+get(purge_seq, #mrst{purge_seq = PurgeSeq}) ->
+PurgeSeq;
+get(update_options, #mrst{design_opts = Opts}) ->
+IncDesign = couch_util:get_value(<<"include_design">>, Opts, false),
+LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
+SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, false),
+KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, Opts, 
false),
+if IncDesign -> [include_design]; true -> [] end
+++ if LocalSeq -> [local_seq]; true -> [] end
+++ if KeySeqIndexed -> [keyseq_indexed]; true -> [] end
+++ if SeqIndexed -> [seq_indexed]; true -> [] end;
+get(fd, #mrst{fd = Fd}) ->
+Fd;
+get(language, #mrst{language = Language}) ->
+Language;
+get(views, #mrst{views = Views}) ->
+Views;
+get(info, State) ->
+#mrst{
+fd = Fd,
+

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

2017-02-07 Thread davisp
Github user davisp commented on the issue:

https://github.com/apache/couchdb-couch-mrview/pull/65
  
Also, +1 after the slight tweak.


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


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

2017-02-07 Thread davisp
Github user davisp commented on the issue:

https://github.com/apache/couchdb-couch-mrview/pull/65
  
I'll second re-using `get(update_options, State)` since those are prime 
suspects for being typoed if we ever change them.

Six-year-ago-me re-apologizes for couch_mrview.


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


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

2017-02-07 Thread davisp
Github user davisp commented on a diff in the pull request:

https://github.com/apache/couchdb-couch-mrview/pull/65#discussion_r99875440
  
--- Diff: src/couch_mrview_index.erl ---
@@ -23,84 +23,80 @@
 -include_lib("couch_mrview/include/couch_mrview.hrl").
 
 
-get(Property, State) ->
-case Property of
-db_name ->
-State#mrst.db_name;
-idx_name ->
-State#mrst.idx_name;
-signature ->
-State#mrst.sig;
-update_seq ->
-State#mrst.update_seq;
-purge_seq ->
-State#mrst.purge_seq;
-update_options ->
-Opts = State#mrst.design_opts,
-IncDesign = couch_util:get_value(<<"include_design">>, Opts, 
false),
-LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
-SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, 
false),
-KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, 
Opts, false),
-if IncDesign -> [include_design]; true -> [] end
-++ if LocalSeq -> [local_seq]; true -> [] end
-++ if KeySeqIndexed -> [keyseq_indexed]; true -> [] end
-++ if SeqIndexed -> [seq_indexed]; true -> [] end;
-fd ->
-State#mrst.fd;
-language ->
-State#mrst.language;
-views ->
-State#mrst.views;
-info ->
-#mrst{
-fd = Fd,
-sig = Sig,
-id_btree = IdBtree,
-log_btree = LogBtree,
-language = Lang,
-update_seq = UpdateSeq,
-purge_seq = PurgeSeq,
-views = Views,
-design_opts = Opts
-} = State,
-{ok, FileSize} = couch_file:bytes(Fd),
-{ok, ExternalSize} = 
couch_mrview_util:calculate_external_size(Views),
-LogBtSize = case LogBtree of
-nil ->
-0;
-_ ->
-couch_btree:size(LogBtree)
-end,
-ActiveSize = couch_btree:size(IdBtree) + LogBtSize + 
ExternalSize,
-
-IncDesign = couch_util:get_value(<<"include_design">>, Opts, 
false),
-LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
-SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, 
false),
-KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, 
Opts, false),
-UpdateOptions =
-if IncDesign -> [<<"include_design">>]; true -> [] end
-++ if LocalSeq -> [<<"local_seq">>]; true -> [] end
-++ if KeySeqIndexed -> [<<"keyseq_indexed">>]; true -> [] 
end
-++ if SeqIndexed -> [<<"seq_indexed">>]; true -> [] end,
-
-
-{ok, [
-{signature, list_to_binary(couch_index_util:hexsig(Sig))},
-{language, Lang},
-{disk_size, FileSize}, % legacy
-{data_size, ExternalSize}, % legacy
-{sizes, {[
-{file, FileSize},
-{active, ActiveSize},
-{external, ExternalSize}
-]}},
-{update_seq, UpdateSeq},
-{purge_seq, PurgeSeq},
-{update_options, UpdateOptions}
-]};
-Other ->
-throw({unknown_index_property, Other})
-end.
+get(db_name, #mrst{db_name = DbName}) ->
+DbName;
+get(idx_name, #mrst{idx_name = IdxName}) ->
+IdxName;
+get(signature, #mrst{sig = Signature}) ->
+Signature;
+get(update_seq, #mrst{update_seq = UpdateSeq}) ->
+UpdateSeq;
+get(purge_seq, #mrst{purge_seq = PurgeSeq}) ->
+PurgeSeq;
+get(update_options, #mrst{design_opts = Opts}) ->
+IncDesign = couch_util:get_value(<<"include_design">>, Opts, false),
+LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
+SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, false),
+KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, Opts, 
false),
+if IncDesign -> [include_design]; true -> [] end
+++ if LocalSeq -> [local_seq]; true -> [] end
+++ if KeySeqIndexed -> [keyseq_indexed]; true -> [] end
+++ if SeqIndexed -> [seq_indexed]; true -> [] end;
+get(fd, #mrst{fd = Fd}) ->
+Fd;
+get(language, #mrst{language = Language}) ->
+Language;
+get(views, #mrst{views = Views}) ->
+Views;
+get(info, State) ->
+#mrst{
+fd = Fd,
+

[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15856282#comment-15856282
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit f277e23c381596aecbff63bd55417cc2cde5adfe in couchdb-couch's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=f277e23 ]

Add storage engine test suite

This allows other storage engine implementations to reuse the same exact
test suite without having to resort to shenanigans like keeping vendored
copies up to date.

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15856279#comment-15856279
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit 356e5ffc4e3df5c89343475356cabc3d4d8d2705 in couchdb-couch's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=356e5ff ]

Add legacy storage engine implementation

This is the legacy storage engine code. I've kept it as part of the core
couch application because we'll always need to have at least one
storage engine available.

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15856281#comment-15856281
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit b44d0080f390a349648c8559b4b1e8de3ef0dc17 in couchdb-couch's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=b44d008 ]

Implement pluggable storage engines

This change moves the main work of storage engines to run through the
new couch_db_engine behavior. This allows us to replace the storage
engine with different implementations that can be tailored to specific
work loads and environments.

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


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

2017-02-07 Thread iilyak
Github user iilyak commented on a diff in the pull request:

https://github.com/apache/couchdb-couch-mrview/pull/65#discussion_r99859905
  
--- Diff: src/couch_mrview_index.erl ---
@@ -23,84 +23,80 @@
 -include_lib("couch_mrview/include/couch_mrview.hrl").
 
 
-get(Property, State) ->
-case Property of
-db_name ->
-State#mrst.db_name;
-idx_name ->
-State#mrst.idx_name;
-signature ->
-State#mrst.sig;
-update_seq ->
-State#mrst.update_seq;
-purge_seq ->
-State#mrst.purge_seq;
-update_options ->
-Opts = State#mrst.design_opts,
-IncDesign = couch_util:get_value(<<"include_design">>, Opts, 
false),
-LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
-SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, 
false),
-KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, 
Opts, false),
-if IncDesign -> [include_design]; true -> [] end
-++ if LocalSeq -> [local_seq]; true -> [] end
-++ if KeySeqIndexed -> [keyseq_indexed]; true -> [] end
-++ if SeqIndexed -> [seq_indexed]; true -> [] end;
-fd ->
-State#mrst.fd;
-language ->
-State#mrst.language;
-views ->
-State#mrst.views;
-info ->
-#mrst{
-fd = Fd,
-sig = Sig,
-id_btree = IdBtree,
-log_btree = LogBtree,
-language = Lang,
-update_seq = UpdateSeq,
-purge_seq = PurgeSeq,
-views = Views,
-design_opts = Opts
-} = State,
-{ok, FileSize} = couch_file:bytes(Fd),
-{ok, ExternalSize} = 
couch_mrview_util:calculate_external_size(Views),
-LogBtSize = case LogBtree of
-nil ->
-0;
-_ ->
-couch_btree:size(LogBtree)
-end,
-ActiveSize = couch_btree:size(IdBtree) + LogBtSize + 
ExternalSize,
-
-IncDesign = couch_util:get_value(<<"include_design">>, Opts, 
false),
-LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
-SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, 
false),
-KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, 
Opts, false),
-UpdateOptions =
-if IncDesign -> [<<"include_design">>]; true -> [] end
-++ if LocalSeq -> [<<"local_seq">>]; true -> [] end
-++ if KeySeqIndexed -> [<<"keyseq_indexed">>]; true -> [] 
end
-++ if SeqIndexed -> [<<"seq_indexed">>]; true -> [] end,
-
-
-{ok, [
-{signature, list_to_binary(couch_index_util:hexsig(Sig))},
-{language, Lang},
-{disk_size, FileSize}, % legacy
-{data_size, ExternalSize}, % legacy
-{sizes, {[
-{file, FileSize},
-{active, ActiveSize},
-{external, ExternalSize}
-]}},
-{update_seq, UpdateSeq},
-{purge_seq, PurgeSeq},
-{update_options, UpdateOptions}
-]};
-Other ->
-throw({unknown_index_property, Other})
-end.
+get(db_name, #mrst{db_name = DbName}) ->
+DbName;
+get(idx_name, #mrst{idx_name = IdxName}) ->
+IdxName;
+get(signature, #mrst{sig = Signature}) ->
+Signature;
+get(update_seq, #mrst{update_seq = UpdateSeq}) ->
+UpdateSeq;
+get(purge_seq, #mrst{purge_seq = PurgeSeq}) ->
+PurgeSeq;
+get(update_options, #mrst{design_opts = Opts}) ->
+IncDesign = couch_util:get_value(<<"include_design">>, Opts, false),
+LocalSeq = couch_util:get_value(<<"local_seq">>, Opts, false),
+SeqIndexed = couch_util:get_value(<<"seq_indexed">>, Opts, false),
+KeySeqIndexed = couch_util:get_value(<<"keyseq_indexed">>, Opts, 
false),
+if IncDesign -> [include_design]; true -> [] end
+++ if LocalSeq -> [local_seq]; true -> [] end
+++ if KeySeqIndexed -> [keyseq_indexed]; true -> [] end
+++ if SeqIndexed -> [seq_indexed]; true -> [] end;
+get(fd, #mrst{fd = Fd}) ->
+Fd;
+get(language, #mrst{language = Language}) ->
+Language;
+get(views, #mrst{views = Views}) ->
+Views;
+get(info, State) ->
+#mrst{
+fd = Fd,
+

[GitHub] couchdb-fauxton issue #846: more library updates

2017-02-07 Thread garrensmith
Github user garrensmith commented on the issue:

https://github.com/apache/couchdb-fauxton/pull/846
  
merged


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] couchdb-fauxton pull request #846: more library updates

2017-02-07 Thread garrensmith
Github user garrensmith closed the pull request at:

https://github.com/apache/couchdb-fauxton/pull/846


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15856172#comment-15856172
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit 872ac7716714c0236b88a8aa7995b440053bb9fc in couchdb-couch's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=872ac77 ]

Add storage engine test suite

This allows other storage engine implementations to reuse the same exact
test suite without having to resort to shenanigans like keeping vendored
copies up to date.

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15856171#comment-15856171
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit cffae019816bf28e79882d2573e1e82c5740fd02 in couchdb-couch's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=cffae01 ]

Implement pluggable storage engines

This change moves the main work of storage engines to run through the
new couch_db_engine behavior. This allows us to replace the storage
engine with different implementations that can be tailored to specific
work loads and environments.

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15856169#comment-15856169
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit 325cb9d0fefb0a921b5a130200bc7db02700abe5 in couchdb-couch's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=325cb9d ]

Add couch_db_engine module

This is the primary API for pluggable storage engines. This module
serves as both a behavior and a call dispatch module for handling the
engine state updates.

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15856170#comment-15856170
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit 2105608d2c44cd6509f927bbc37d8740f50d7ac1 in couchdb-couch's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=2105608 ]

Add legacy storage engine implementation

This is the legacy storage engine code. I've kept it as part of the core
couch application because we'll always need to have at least one
storage engine available.

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


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

2017-02-07 Thread kxepal
Github user kxepal commented on the issue:

https://github.com/apache/couchdb-couch/pull/226
  
@nickva I think this would be a nice helper. For quite specific cases, but 
nice.


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] couchdb-fauxton issue #833: remove backbone from auth

2017-02-07 Thread garrensmith
Github user garrensmith commented on the issue:

https://github.com/apache/couchdb-fauxton/pull/833
  
Sure will do. I’m traveling and then at couchdb summit. So It will take 
me a few days to get to it.

On 07 Feb 2017, 4:32 PM +0200, Tim Pinington , 
wrote:
> @garrensmith could you give this a code review ended up making a lot of 
changes
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub, or mute the thread.



---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[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 have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[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 easier to read and more idiomatic.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/cloudant/couchdb-couch-mrview 
refactor-mrview-index-get

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/couchdb-couch-mrview/pull/65.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #65


commit c079c1bb01197431b36fae11e8e287e9672bf9d9
Author: Eric Avdey 
Date:   2017-02-07T14:39:46Z

Refactor mrview_index get

This is a simple refactoring of mrview's
get function that uses function's pattern
matching instead of staircase case.

Arguably this makes code easier to read
and more idiomatic.




---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] couchdb-fauxton issue #833: remove backbone from auth

2017-02-07 Thread timmak
Github user timmak commented on the issue:

https://github.com/apache/couchdb-fauxton/pull/833
  
@garrensmith could you give this a code review ended up making a lot of 
changes


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] couchdb-fauxton pull request #846: more library updates

2017-02-07 Thread garrensmith
GitHub user garrensmith opened a pull request:

https://github.com/apache/couchdb-fauxton/pull/846

more library updates



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/garrensmith/couchdb-fauxton more-lib-updates

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/couchdb-fauxton/pull/846.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #846


commit 6a5ab79af5baf643fad53b5b09631c16a9c4f15f
Author: Garren Smith 
Date:   2017-02-07T14:22:46Z

more library updates




---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] couchdb-fauxton pull request #845: Lib upgrades

2017-02-07 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/couchdb-fauxton/pull/845


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15855997#comment-15855997
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit c8f8a40f3657c52c29358ee0efce7f85a15c649e in couchdb-fabric's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-fabric.git;h=c8f8a40 ]

Update to use new pluggable storage API

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (COUCHDB-3287) Implement pluggable storage engines

2017-02-07 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15855998#comment-15855998
 ] 

ASF subversion and git services commented on COUCHDB-3287:
--

Commit c4ae2f5fdba6c6d4563e1205a46753408247befd in couchdb-fabric's branch 
refs/heads/COUCHDB-3287-pluggable-storage-engines from [~paul.joseph.davis]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-fabric.git;h=c4ae2f5 ]

Pass the storage engine option to RPC workers

COUCHDB-3287


> Implement pluggable storage engines
> ---
>
> Key: COUCHDB-3287
> URL: https://issues.apache.org/jira/browse/COUCHDB-3287
> Project: CouchDB
>  Issue Type: Improvement
>Reporter: Paul Joseph Davis
>
> Opening branches for the pluggable storage engine work described here:
> http://mail-archives.apache.org/mod_mbox/couchdb-dev/201606.mbox/%3CCAJ_m3YDjA9xym_JRVtd6Xi7LX7Ajwc6EmH_wyCRD1jgTzk8mKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[GitHub] couchdb-fauxton pull request #845: Lib upgrades

2017-02-07 Thread garrensmith
GitHub user garrensmith opened a pull request:

https://github.com/apache/couchdb-fauxton/pull/845

Lib upgrades

Upgrading some of our dependencies

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/garrensmith/couchdb-fauxton lib-upgrades

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/couchdb-fauxton/pull/845.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #845


commit c34c24a7452d1e54b12f5d5cc37e89a4929598fa
Author: Garren Smith 
Date:   2017-02-07T12:13:07Z

update grunt and babel

commit 307a993882a4f43f42711d5febe4309fc0a58dde
Author: Garren Smith 
Date:   2017-02-07T12:28:18Z

update animate and express




---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


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

2017-02-07 Thread kxepal
Github user kxepal commented on the issue:

https://github.com/apache/couchdb-couch/pull/226
  
Good point. The `max_replication_retry_count` option is an example where 
the value is an integer, but the `infinity` is used for no limit value.


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


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

2017-02-07 Thread rnewson
Github user rnewson commented on the issue:

https://github.com/apache/couchdb-couch/pull/226
  
Can we change this so that an undefined value means 'no limit' and any set 
value, which must be an integer, is the length? I realise this means we can't 
use config:get_integer, but it seems awkward that '0' means 'infinite'.


---
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 is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Created] (COUCHDB-3294) Add an {{$allMatch}} mango selector

2017-02-07 Thread Lucas Satabin (JIRA)
Lucas Satabin created COUCHDB-3294:
--

 Summary: Add an {{$allMatch}} mango selector
 Key: COUCHDB-3294
 URL: https://issues.apache.org/jira/browse/COUCHDB-3294
 Project: CouchDB
  Issue Type: New Feature
  Components: Mango
Reporter: Lucas Satabin


Mango defines an {{$elemMatch}} selector allowing for matching arrays in which 
at least one element matches the inner selector.

The proposal is to create a similar {{$allMatch}} selector which semantics is 
that an array matches if all of its elements match the inner selector.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)