You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Benoit Chesneau (JIRA)" <ji...@apache.org> on 2009/01/06 01:59:44 UTC

[jira] Created: (COUCHDB-198) Can't upload attachments > 410MB

Can't upload attachments > 410MB
--------------------------------

                 Key: COUCHDB-198
                 URL: https://issues.apache.org/jira/browse/COUCHDB-198
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core
    Affects Versions: 0.9
         Environment: linux 2.6.26 (debian) or Openbsd 4.4-current
            Reporter: Benoit Chesneau


Can't upload attachments > 410MB in a document.


Steps to reproduce :

1) Create empty db "test" with an empty document with id "blah"
2) Create fake file of 410MB : 
dd if=/dev/zero of=test.mp3 bs=1024 count=420000
3) upload it with curl :
curl -X PUT --data-binary "@test.mp3" --header "Accept: application/json" --header "Content-Type: application/mpeg" --header "Transfer-Encoding: chunked" --header "Expect:" -v http://127.0.0.1:5984/test/blah/test?rev=2559770741

Result :

in curl :
* About to connect() to 127.0.0.1 port 5984 (#0)
*   Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
> PUT /test/blah/test?rev=2559770741 HTTP/1.1
> User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
> Host: 127.0.0.1:5984
> Accept: application/json
> Content-Type: application/mpeg
> Transfer-Encoding: chunked
> 
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
curl: (52) Empty reply from server
* Closing connection #0

Couchdb :
[debug] [<0.61.0>] 'PUT' /test/blah/test?rev=2559770741 {1,1}
Headers: [{'Accept',"application/json"},
          {'Content-Type',"application/mpeg"},
          {'Host',"127.0.0.1:5984"},
          {'Transfer-Encoding',"chunked"},
          {'User-Agent',"curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18"}]


Then all the machine seem to freeze (core duo amd64 4400+ with 2 Go of ram) and connection failed.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (COUCHDB-198) Can't upload attachments > 410MB

Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lehnardt closed COUCHDB-198.
--------------------------------

    Resolution: Invalid

Closed by request of reporter.

> Can't upload attachments > 410MB
> --------------------------------
>
>                 Key: COUCHDB-198
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-198
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.9
>         Environment: linux 2.6.26 (debian) or Openbsd 4.4-current
>            Reporter: Benoit Chesneau
>            Assignee: Jan Lehnardt
>
> Can't upload attachments > 410MB in a document.
> Steps to reproduce :
> 1) Create empty db "test" with an empty document with id "blah"
> 2) Create fake file of 410MB : 
> dd if=/dev/zero of=test.mp3 bs=1024 count=420000
> 3) upload it with curl :
> curl -X PUT --data-binary "@test.mp3" --header "Accept: application/json" --header "Content-Type: application/mpeg" --header "Transfer-Encoding: chunked" --header "Expect:" -v http://127.0.0.1:5984/test/blah/test?rev=2559770741
> Result :
> in curl :
> * About to connect() to 127.0.0.1 port 5984 (#0)
> *   Trying 127.0.0.1... connected
> * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
> > PUT /test/blah/test?rev=2559770741 HTTP/1.1
> > User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
> > Host: 127.0.0.1:5984
> > Accept: application/json
> > Content-Type: application/mpeg
> > Transfer-Encoding: chunked
> > 
> * Empty reply from server
> * Connection #0 to host 127.0.0.1 left intact
> curl: (52) Empty reply from server
> * Closing connection #0
> Couchdb :
> [debug] [<0.61.0>] 'PUT' /test/blah/test?rev=2559770741 {1,1}
> Headers: [{'Accept',"application/json"},
>           {'Content-Type',"application/mpeg"},
>           {'Host',"127.0.0.1:5984"},
>           {'Transfer-Encoding',"chunked"},
>           {'User-Agent',"curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18"}]
> Then all the machine seem to freeze (core duo amd64 4400+ with 2 Go of ram) and connection failed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-198) Can't upload attachments > 410MB

Posted by "Benoit Chesneau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661093#action_12661093 ] 

Benoit Chesneau commented on COUCHDB-198:
-----------------------------------------

just to add more info, i tested size of 410Mb and lower without any problem.

> Can't upload attachments > 410MB
> --------------------------------
>
>                 Key: COUCHDB-198
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-198
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.9
>         Environment: linux 2.6.26 (debian) or Openbsd 4.4-current
>            Reporter: Benoit Chesneau
>
> Can't upload attachments > 410MB in a document.
> Steps to reproduce :
> 1) Create empty db "test" with an empty document with id "blah"
> 2) Create fake file of 410MB : 
> dd if=/dev/zero of=test.mp3 bs=1024 count=420000
> 3) upload it with curl :
> curl -X PUT --data-binary "@test.mp3" --header "Accept: application/json" --header "Content-Type: application/mpeg" --header "Transfer-Encoding: chunked" --header "Expect:" -v http://127.0.0.1:5984/test/blah/test?rev=2559770741
> Result :
> in curl :
> * About to connect() to 127.0.0.1 port 5984 (#0)
> *   Trying 127.0.0.1... connected
> * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
> > PUT /test/blah/test?rev=2559770741 HTTP/1.1
> > User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
> > Host: 127.0.0.1:5984
> > Accept: application/json
> > Content-Type: application/mpeg
> > Transfer-Encoding: chunked
> > 
> * Empty reply from server
> * Connection #0 to host 127.0.0.1 left intact
> curl: (52) Empty reply from server
> * Closing connection #0
> Couchdb :
> [debug] [<0.61.0>] 'PUT' /test/blah/test?rev=2559770741 {1,1}
> Headers: [{'Accept',"application/json"},
>           {'Content-Type',"application/mpeg"},
>           {'Host',"127.0.0.1:5984"},
>           {'Transfer-Encoding',"chunked"},
>           {'User-Agent',"curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18"}]
> Then all the machine seem to freeze (core duo amd64 4400+ with 2 Go of ram) and connection failed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (COUCHDB-198) Can't upload attachments > 410MB

Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lehnardt reassigned COUCHDB-198:
------------------------------------

    Assignee: Jan Lehnardt

> Can't upload attachments > 410MB
> --------------------------------
>
>                 Key: COUCHDB-198
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-198
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.9
>         Environment: linux 2.6.26 (debian) or Openbsd 4.4-current
>            Reporter: Benoit Chesneau
>            Assignee: Jan Lehnardt
>
> Can't upload attachments > 410MB in a document.
> Steps to reproduce :
> 1) Create empty db "test" with an empty document with id "blah"
> 2) Create fake file of 410MB : 
> dd if=/dev/zero of=test.mp3 bs=1024 count=420000
> 3) upload it with curl :
> curl -X PUT --data-binary "@test.mp3" --header "Accept: application/json" --header "Content-Type: application/mpeg" --header "Transfer-Encoding: chunked" --header "Expect:" -v http://127.0.0.1:5984/test/blah/test?rev=2559770741
> Result :
> in curl :
> * About to connect() to 127.0.0.1 port 5984 (#0)
> *   Trying 127.0.0.1... connected
> * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0)
> > PUT /test/blah/test?rev=2559770741 HTTP/1.1
> > User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
> > Host: 127.0.0.1:5984
> > Accept: application/json
> > Content-Type: application/mpeg
> > Transfer-Encoding: chunked
> > 
> * Empty reply from server
> * Connection #0 to host 127.0.0.1 left intact
> curl: (52) Empty reply from server
> * Closing connection #0
> Couchdb :
> [debug] [<0.61.0>] 'PUT' /test/blah/test?rev=2559770741 {1,1}
> Headers: [{'Accept',"application/json"},
>           {'Content-Type',"application/mpeg"},
>           {'Host',"127.0.0.1:5984"},
>           {'Transfer-Encoding',"chunked"},
>           {'User-Agent',"curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18"}]
> Then all the machine seem to freeze (core duo amd64 4400+ with 2 Go of ram) and connection failed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.