Re: Development environment

2011-04-28 Thread Nathan Stott
Originally, (until 0.11 I think?) CouchDB was developed without unit tests. I take it from this thread it was also developed then without step-by-step debugging. It's amazing how stable it is and has been in light of those two facts. On Thu, Apr 28, 2011 at 7:40 PM, till wrote: > On Fri, Apr 29

Re: Development environment

2011-04-28 Thread till
On Fri, Apr 29, 2011 at 2:38 AM, Miles Fidelman wrote: > Andrey Somov wrote: >> >> On Fri, Apr 29, 2011 at 1:01 AM, Paul >> Daviswrote: >> >> >>> >>> On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott  wrote: >>> So couchdb is really developed without using step-by-step debugging at all?

Re: Development environment

2011-04-28 Thread Miles Fidelman
Andrey Somov wrote: On Fri, Apr 29, 2011 at 1:01 AM, Paul Daviswrote: On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott wrote: So couchdb is really developed without using step-by-step debugging at all? That seems quite odd. I never use step by step debugging on any project i

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 8:21 PM, Andrey Somov wrote: > On Fri, Apr 29, 2011 at 1:01 AM, Paul Davis > wrote: > >> On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott wrote: >> > So couchdb is really developed without using step-by-step debugging at >> > all?  That seems quite odd. >> > >> >> I never us

Re: Development environment

2011-04-28 Thread Andrey Somov
On Fri, Apr 29, 2011 at 1:01 AM, Paul Davis wrote: > On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott wrote: > > So couchdb is really developed without using step-by-step debugging at > > all? That seems quite odd. > > > > I never use step by step debugging on any project in any language. > I've ne

Re: Development environment

2011-04-28 Thread Randall Leeds
On Thu, Apr 28, 2011 at 15:57, Nathan Stott wrote: > So couchdb is really developed without using step-by-step debugging at > all?  That seems quite odd. > Most of the time, when I've written couchdb patches and they're wrong I immediately get dying processes, stack traces and errors. The number

Sporadically failing tests.

2011-04-28 Thread Paul Davis
In preparing to roll the 1.0.3 release I've noticed a couple etap tests failing sporadically. Specifically 090 and 140 have both failed. Neither is easy to trigger. 140 at least looks like its related to a race condition error on a socket closing somewhere. Anyone want to look into either of these

Re: Development environment

2011-04-28 Thread Andrew Tunnell-Jones
Tracing seems more common in Erlang. Have you looked at the debugger or redbug? On 28/04/2011, at 10:57 PM, Nathan Stott wrote: > So couchdb is really developed without using step-by-step debugging at > all? That seems quite odd. > > On Thu, Apr 28, 2011 at 5:52 PM, Paul Davis > wrote: >> On

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 6:57 PM, Nathan Stott wrote: > So couchdb is really developed without using step-by-step debugging at > all?  That seems quite odd. > I never use step by step debugging on any project in any language. I've never found it that useful.

Re: Development environment

2011-04-28 Thread Nathan Stott
So couchdb is really developed without using step-by-step debugging at all? That seems quite odd. On Thu, Apr 28, 2011 at 5:52 PM, Paul Davis wrote: > On Thu, Apr 28, 2011 at 6:45 PM, Andrey Somov > wrote: >> On Thu, Apr 28, 2011 at 7:43 PM, Miles Fidelman >> wrote: >> >>> I'm not 100% sure, b

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 6:45 PM, Andrey Somov wrote: > On Thu, Apr 28, 2011 at 7:43 PM, Miles Fidelman > wrote: > >> I'm not 100% sure, but I expect Erlide might fill the bill - it's an Erlang >> IDE that runs under Eclipse.  Now how much further that takes you into the >> guts of CouchDB is anoth

Re: Development environment

2011-04-28 Thread Andrey Somov
On Thu, Apr 28, 2011 at 7:43 PM, Miles Fidelman wrote: > I'm not 100% sure, but I expect Erlide might fill the bill - it's an Erlang > IDE that runs under Eclipse. Now how much further that takes you into the > guts of CouchDB is another story. > > I tried to use erlIDE but I did not find a way t

[jira] [Commented] (COUCHDB-1123) Longpolling changes feed with filter and accidental Content-Length header stalls

2011-04-28 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026740#comment-13026740 ] Paul Joseph Davis commented on COUCHDB-1123: I love you man. > Longpolling

[jira] [Commented] (COUCHDB-1123) Longpolling changes feed with filter and accidental Content-Length header stalls

2011-04-28 Thread Randall Leeds (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026729#comment-13026729 ] Randall Leeds commented on COUCHDB-1123: http://www.youtube.com/watch?v=TpP8N-X1

[jira] [Updated] (COUCHDB-1146) Content-Length ignored on GET requests

2011-04-28 Thread Nathan Vander Wilt (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nathan Vander Wilt updated COUCHDB-1146: Description: In the case of a GET request, CouchDB does not wait for the client t

[jira] [Updated] (COUCHDB-1146) Content-Length ignored on GET requests

2011-04-28 Thread Nathan Vander Wilt (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nathan Vander Wilt updated COUCHDB-1146: Description: In the case of a GET request, CouchDB does not wait for the client t

[jira] [Commented] (COUCHDB-1123) Longpolling changes feed with filter and accidental Content-Length header stalls

2011-04-28 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026713#comment-13026713 ] Paul Joseph Davis commented on COUCHDB-1123: Pretty sure it needs to go down

[jira] [Commented] (COUCHDB-1123) Longpolling changes feed with filter and accidental Content-Length header stalls

2011-04-28 Thread Randall Leeds (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026706#comment-13026706 ] Randall Leeds commented on COUCHDB-1123: Without looking I think throwing here w

[jira] [Commented] (COUCHDB-1123) Longpolling changes feed with filter and accidental Content-Length header stalls

2011-04-28 Thread Randall Leeds (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026709#comment-13026709 ] Randall Leeds commented on COUCHDB-1123: But, yeah. that looks like the right pl

[jira] [Commented] (COUCHDB-1123) Longpolling changes feed with filter and accidental Content-Length header stalls

2011-04-28 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026682#comment-13026682 ] Paul Joseph Davis commented on COUCHDB-1123: First pass at a patch: Index:

[jira] [Commented] (COUCHDB-1123) Longpolling changes feed with filter and accidental Content-Length header stalls

2011-04-28 Thread Nathan Vander Wilt (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026676#comment-13026676 ] Nathan Vander Wilt commented on COUCHDB-1123: - I think this is a symptom of

[jira] [Created] (COUCHDB-1147) Compact fails during copy_doc_attachments

2011-04-28 Thread Sean Halliday (JIRA)
Compact fails during copy_doc_attachments - Key: COUCHDB-1147 URL: https://issues.apache.org/jira/browse/COUCHDB-1147 Project: CouchDB Issue Type: Bug Components: Database Core Affects Ve

[jira] [Created] (COUCHDB-1146) Content-Length ignored on GET requests

2011-04-28 Thread Nathan Vander Wilt (JIRA)
Content-Length ignored on GET requests -- Key: COUCHDB-1146 URL: https://issues.apache.org/jira/browse/COUCHDB-1146 Project: CouchDB Issue Type: Bug Components: HTTP Interface Reporte

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 3:19 PM, Benoit Chesneau wrote: > On Thursday, April 28, 2011, Paul Davis wrote: >> On Thu, Apr 28, 2011 at 12:15 PM, Andrey Somov >> wrote: >>> Thank you, but the question is not how to run but how to DEBUG (and watch >>> all the values, function calls etc) >>> Just the

Re: Development environment

2011-04-28 Thread Benoit Chesneau
On Thursday, April 28, 2011, Paul Davis wrote: > On Thu, Apr 28, 2011 at 12:15 PM, Andrey Somov > wrote: >> Thank you, but the question is not how to run but how to DEBUG (and watch >> all the values, function calls etc) >> Just the ability to run CouchDB does not help to understand who is callin

Re: Development environment

2011-04-28 Thread Randall Leeds
The simplest thing is just: make dev ./utils/run -i This will launch couch and drop you into an interacting erlang session. >From there you can use erlang calls to inspect processes, enable tracing, etc. As far as an interactive step debugger I don't know. Never tried. On Thu, Apr 28, 2011 at 1

[jira] [Created] (COUCHDB-1145) As a CouchApp developer, I'd like access to a listing of local-only (_local) docs.

2011-04-28 Thread Benjamin Young (JIRA)
As a CouchApp developer, I'd like access to a listing of local-only (_local) docs. -- Key: COUCHDB-1145 URL: https://issues.apache.org/jira/browse/COUCHDB-1145 Project: C

[jira] [Updated] (COUCHDB-1136) cleanup views does not work when a design document has no views

2011-04-28 Thread Randall Leeds (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Randall Leeds updated COUCHDB-1136: --- Attachment: view_cleanup_etap.patch Passing etap test. Ship it! > cleanup views does not w

[jira] [Commented] (COUCHDB-1144) oauth requests with non-percent-encoded realms result in function_clause error in HTTP request

2011-04-28 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026401#comment-13026401 ] Paul Joseph Davis commented on COUCHDB-1144: Crux of the issue is that oauth

[jira] [Updated] (COUCHDB-1144) oauth requests with non-percent-encoded realms result in function_clause error in HTTP request

2011-04-28 Thread Joan Touzet (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joan Touzet updated COUCHDB-1144: - Attachment: oauth_uri.erl Patch to fix this in 1.0.x/1.1. > oauth requests with non-percent-en

[jira] [Commented] (COUCHDB-1144) oauth requests with non-percent-encoded realms result in function_clause error in HTTP request

2011-04-28 Thread Joan Touzet (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026395#comment-13026395 ] Joan Touzet commented on COUCHDB-1144: -- After chatting with davisp in IRC, we agree

Re: Development environment

2011-04-28 Thread Miles Fidelman
I'm not 100% sure, but I expect Erlide might fill the bill - it's an Erlang IDE that runs under Eclipse. Now how much further that takes you into the guts of CouchDB is another story. Andrey Somov wrote: Thank you, but the question is not how to run but how to DEBUG (and watch all the values,

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 12:15 PM, Andrey Somov wrote: > Thank you, but the question is not how to run but how to DEBUG (and watch > all the values, function calls etc) > Just the ability to run CouchDB does not help to understand who is calling > whom, when, how, with which arguments... > Oh, got

[jira] [Updated] (COUCHDB-1144) oauth requests with non-percent-encoded realms result in function_clause error in HTTP request

2011-04-28 Thread Joan Touzet (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joan Touzet updated COUCHDB-1144: - Attachment: oauth-realm-test.patch Applying this patch to 1.0.2/1.1 will cause the oauth test t

[jira] [Updated] (COUCHDB-1144) oauth requests with non-percent-encoded realms result in function_clause error in HTTP request

2011-04-28 Thread Joan Touzet (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joan Touzet updated COUCHDB-1144: - Priority: Minor (was: Critical) Description: As illustrated in this Wireshark packet du

[jira] [Commented] (COUCHDB-1144) oauth requests with URL realms result in function_clause error in HTTP request

2011-04-28 Thread Joan Touzet (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026369#comment-13026369 ] Joan Touzet commented on COUCHDB-1144: -- CouchDB only errors when the OAuth request

Re: Development environment

2011-04-28 Thread Andrey Somov
Thank you, but the question is not how to run but how to DEBUG (and watch all the values, function calls etc) Just the ability to run CouchDB does not help to understand who is calling whom, when, how, with which arguments... - Andrey On Thu, Apr 28, 2011 at 6:10 PM, Paul Davis wrote: > On Thu,

Re: Development environment

2011-04-28 Thread Paul Davis
On Thu, Apr 28, 2011 at 12:03 PM, Andrey Somov wrote: > Hi all, > in order to understand how CouchDB works I want be able to run the > application under debugger. Unfortunately it does not look like an easy > task. > The information provided on the wiiki ( > http://wiki.apache.org/couchdb/Running%

Development environment

2011-04-28 Thread Andrey Somov
Hi all, in order to understand how CouchDB works I want be able to run the application under debugger. Unfortunately it does not look like an easy task. The information provided on the wiiki ( http://wiki.apache.org/couchdb/Running%20CouchDB%20in%20Dev%20Mode) may be enough for a professional Erlan