Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEE82103E0 for ; Thu, 3 Oct 2013 11:27:48 +0000 (UTC) Received: (qmail 7125 invoked by uid 500); 3 Oct 2013 11:27:47 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 6805 invoked by uid 500); 3 Oct 2013 11:27:44 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 6629 invoked by uid 99); 3 Oct 2013 11:27:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2013 11:27:42 +0000 Date: Thu, 3 Oct 2013 11:27:42 +0000 (UTC) From: "Atif Rasheed (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-1902) Success (201) response from Couchdb and document not created MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13785012#comment-13785012 ] Atif Rasheed commented on COUCHDB-1902: --------------------------------------- Hey Robert, thanks for pointing it out and yes this looks like the real cause. We will custom build tangerine after disabling delayed_commit and will keep you updated on this. But I am just getting a feeler that issue is resolved :) Thanks for your help, appreciate it. > Success (201) response from Couchdb and document not created > ------------------------------------------------------------ > > Key: COUCHDB-1902 > URL: https://issues.apache.org/jira/browse/COUCHDB-1902 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Reporter: Atif Rasheed > > We are using Tangerine for early grade assessments which basically is a couchapp. One of our field engr reported that he was doing assessments and he had saved almost 9 results when all of a sudden tablet went off (probably due to batter issue). He powered it up again and after login to Tangerine he realized that all those saved results are gone. > We took logs and database from Tablet to PC for further analysis. We realized that it's actually true as we can see those attempts in couch.log and we can also see successful HTTP PUT requests as well on same _id's. Now we took that data from couch.log and tried to push it manually (using Restful client) to couchdb; and it worked. Now we are not sure what went wrong when tangerine pushed it to couchdb. Steps we followed and relevant outputs are pasted below for your reference. Will appreciate if someone help us out here. > 0) Stage 0: > We looked into couch.logs and found a successful PUT against a particular assessment result which is not available or visible in tangerine application. > https://f.cloud.github.com/assets/4159723/1237563/744dfd8e-29da-11e3-8338-75c5478a96df.png > 1) Stage 1: > Tried to get the same document by id and the couchapp return not_found > https://f.cloud.github.com/assets/4159723/1237571/9eb12650-29da-11e3-8570-f1f8f22ab4a9.png > 2) Stage 2: > Then we manually copied last revision from that log file And posted/pushed manually via REST Client to tangerine db (couchdb) and it was successful. > https://f.cloud.github.com/assets/4159723/1237590/f3429e9c-29da-11e3-832b-05eab3688bca.PNG > https://f.cloud.github.com/assets/4159723/1237592/f819b2de-29da-11e3-81a8-953f46da7dee.PNG > Please note that the "_rev" at this stage is 34 because we hard-coded it in data file while sending through REST API. Obviously, if we remove that line from JSON, The _rev would be 1. -- This message was sent by Atlassian JIRA (v6.1#6144)