CouchDB
  1. CouchDB
  2. COUCHDB-1436

Sometimes a newly created document does not appear in the database although operation for its creating returns "ok"=true

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      None

      Description

      Sometimes after creating a document via http request a newly created document does not apper in the db (both in Web gui and when requested through API) althougho the response of the creation request returned ok=true,

        Issue Links

          Activity

          Hide
          Dave Cottlehuber added a comment -

          Hi Oleg,

          Thanks for reporting this. If doc1 is identical, then you're correct CouchDB post-deletion/compaction will not "un-delete" the revision.

          Can you confirm; if so I'll close this one as a duplicate of COUCHDB-1415?

          Show
          Dave Cottlehuber added a comment - Hi Oleg, Thanks for reporting this. If doc1 is identical, then you're correct CouchDB post-deletion/compaction will not "un-delete" the revision. Can you confirm; if so I'll close this one as a duplicate of COUCHDB-1415 ?
          Hide
          Marcello Nuccio added a comment -

          Isn't it the same as COUCHDB-1415 ?

          Show
          Marcello Nuccio added a comment - Isn't it the same as COUCHDB-1415 ?
          Hide
          Adam Kocoloski added a comment -

          What does the HTTP response look like when you submit a GET request for the document after performing the steps that you outlined?

          Show
          Adam Kocoloski added a comment - What does the HTTP response look like when you submit a GET request for the document after performing the steps that you outlined?
          Hide
          Oleg Rostanin added a comment -

          I'm using C# "Relax"-Library for querying couchdb. This is a trace.

          [Mon, 12 Mar 2012 08:44:24 GMT] [debug] [<0.21431.4>] 'PUT' /com%2Fdeere%2Frostaninnb%2Fconfig/igreen_machineconnector

          {1, 1}

          from "127.0.0.1"
          Headers: [

          {'Authorization',"Basic YWRtaW46aUdyZWVuTUM="}

          ,

          {'Content-Length',"392"}

          ,

          {'Content-Type',"application/json; charset=utf-8"}

          ,

          {"Expect","100-continue"}

          ,

          {'Host',"localhost:5984"}

          ]
          [Mon, 12 Mar 2012 08:44:24 GMT] [debug] [<0.21431.4>] OAuth Params: []
          [Mon, 12 Mar 2012 08:44:24 GMT] [info] [<0.21431.4>] 127.0.0.1 - - 'PUT' /com%2Fdeere%2Frostaninnb%2Fconfig/igreen_machineconnector 201

          I was testing the following use case:

          • I have a local document doc1 in the db1
          • Currently no replication is running
          • I delete the local document doc1
          • I trigger compaction
          • I create a new doc1
          • I get "ok=true" in my Relax-Client as an answer.

          Would it be helpful? Maybe I'm doing wrong things?

          Show
          Oleg Rostanin added a comment - I'm using C# "Relax"-Library for querying couchdb. This is a trace. [Mon, 12 Mar 2012 08:44:24 GMT] [debug] [<0.21431.4>] 'PUT' /com%2Fdeere%2Frostaninnb%2Fconfig/igreen_machineconnector {1, 1} from "127.0.0.1" Headers: [ {'Authorization',"Basic YWRtaW46aUdyZWVuTUM="} , {'Content-Length',"392"} , {'Content-Type',"application/json; charset=utf-8"} , {"Expect","100-continue"} , {'Host',"localhost:5984"} ] [Mon, 12 Mar 2012 08:44:24 GMT] [debug] [<0.21431.4>] OAuth Params: [] [Mon, 12 Mar 2012 08:44:24 GMT] [info] [<0.21431.4>] 127.0.0.1 - - 'PUT' /com%2Fdeere%2Frostaninnb%2Fconfig/igreen_machineconnector 201 I was testing the following use case: I have a local document doc1 in the db1 Currently no replication is running I delete the local document doc1 I trigger compaction I create a new doc1 I get "ok=true" in my Relax-Client as an answer. Would it be helpful? Maybe I'm doing wrong things?
          Hide
          Robert Newson added a comment -

          Do you have any more details than this? A trace of a curl session would be useful. As it stands, this report is unactionable.

          Show
          Robert Newson added a comment - Do you have any more details than this? A trace of a curl session would be useful. As it stands, this report is unactionable.

            People

            • Assignee:
              Unassigned
              Reporter:
              Oleg Rostanin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development