<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Tue May 21 08:14:49 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/CBMA-16/CBMA-16.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[CBMA-16] Replication crashes when WIFI connectivity falls back to 3G</title>
                <link>http://www.couchbase.com/issues/browse/CBMA-16</link>
                <project id="10043" key="CBMA">Couchbase Mobile Android</project>
                        <description>When a pull replication from the server to the client is going on via WIFI and WIFI connectivity gets lost (i.e. turned of via settings), the fallback to 3G connectivity fails. Instead of falling back to 3G and continuing the replication there is a crash (see attached log output).&lt;br/&gt;
&lt;br/&gt;
The behaviour is reproducable.</description>
                <environment>CouchDB Version on client: 2.0 Developer Preview&lt;br/&gt;
Device: Samsung Galaxy Tab (Android 2.2)</environment>
            <key id="15366">CBMA-16</key>
            <summary>Replication crashes when WIFI connectivity falls back to 3G</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                                <assignee username="farshid">Farshid Ghods</assignee>
                                <reporter username="akloeber">Andreas Kl&#246;ber</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Oct 2011 05:40:04 -0500</created>
                <updated>Fri, 31 Aug 2012 00:41:16 -0500</updated>
                    <resolved>Fri, 31 Aug 2012 00:41:16 -0500</resolved>
                                            <fixVersion>2.0</fixVersion>
                                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="22364" author="jchrisa" created="Mon, 10 Oct 2011 09:24:59 -0500"  >Filipe,&lt;br/&gt;
&lt;br/&gt;
Is this fixed by your new retry logic? If so, then the fix for mobile will just be a matter of merging your patch.&lt;br/&gt;
&lt;br/&gt;
The logfile has a fairly obvious stacktrace, so it should be easy for you to see if this will fix it.&lt;br/&gt;
&lt;br/&gt;
Chris</comment>
                    <comment id="22366" author="Filipe Manana" created="Mon, 10 Oct 2011 09:33:05 -0500"  >Maybe, There&amp;#39;s nothing like trying out the latest source.&lt;br/&gt;
Are there more complete logs? I want the full, long, stack traces.</comment>
                    <comment id="22382" author="jchrisa" created="Wed, 12 Oct 2011 07:41:15 -0500"  >I think the request in this ticket, is not so much to get to the bottom of what error might occur when the connection changes modes (as the error we see in Couch may be different depending on exactly when the connection changes). Really what we want is a way to ensure that replication retries automatically anytime it sees that it&amp;#39;s stopped making progress.&lt;br/&gt;
&lt;br/&gt;
The preferred way to set up persistant replications (which have more robust retry capabilities) is via the replicator db. The replicator db is documented here:&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/832610&quot;&gt;https://gist.github.com/832610&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
Essentially you just save documents to the replicator db, that have the same JSON as a replicator POST command. You can then query those documents to see what state the replication is in. There is a config entry which governs the amount of retries that are done: replication_retry_count&lt;br/&gt;
&lt;br/&gt;
As an alternative, assuming that in your current code, the POST to _replicate returns a failure at this point, you can just re-POST when you see that failure.&lt;br/&gt;
</comment>
                    <comment id="22505" author="jchrisa" created="Tue, 1 Nov 2011 19:34:33 -0500"  >We need to document this and verify that using replicator_db causes the replication to be more tenacious.</comment>
                    <comment id="22527" author="jchrisa" created="Wed, 2 Nov 2011 16:56:27 -0500"  >This will need to be fixed (or given a well-documented work around via the replicator_db by the time of the Android GA release)</comment>
                </comments>
                    <attachments>
                    <attachment id="11739" name="couch.log" size="2448" author="akloeber" created="Mon, 10 Oct 2011 05:40:04 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>10133</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>