<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Thu Jun 20 06:07:12 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/MB-6763/MB-6763.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>[MB-6763] XDCR Error Logging </title>
                <link>http://www.couchbase.com/issues/browse/MB-6763</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>* Place holder for adding error logging on the Source XDCR cluster.&lt;br/&gt;
- Will add more as we come across more use-cases/scenarios.&lt;br/&gt;
&lt;br/&gt;
Replication failure due to the following reason should be logged - This will be helpful for support to troubleshoot errors and for any end-user.&lt;br/&gt;
*Today most of the replication failures are debugged using ns_server logs, we should move the error displaying on the UI as well.&lt;br/&gt;
&lt;br/&gt;
Errors&lt;br/&gt;
-----------------&lt;br/&gt;
- Source replication cluster reference cannot be deleted if there is a replication is set up (another bug to track this - &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6843&quot; title=&quot;Correctly handle deleting cluster reference that&amp;#39;s used by currently defined replications&quot;&gt;&lt;strike&gt;MB-6843&lt;/strike&gt;&lt;/a&gt;) &lt;br/&gt;
- Source replication is deleted - issue user-visible log message saying &amp;quot;Replication has been deleted&amp;quot;  on source cluster &lt;br/&gt;
- Source bucket is deleted - (1) Issue warning message to the user on delete bucket that replication is going on (2). issue user-visible log message saying &amp;quot;Bucket has been deleted, replication to remote bucket has stopped&amp;quot;  on source cluster (3) Error message in the XDCR page on the replication impacted saying &amp;quot;Bucket has been delete, XDCR has stopped&amp;quot;  &lt;br/&gt;
- Source bucket is flushed - Cannot be done. &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
For errors on the destination node and replication times out: raise this error on the source node . &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
</description>
                <environment></environment>
            <key id="19948">MB-6763</key>
            <summary>XDCR Error Logging </summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="alkondratenko">Aleksey Kondratenko</assignee>
                                <reporter username="ketaki">Ketaki Gangal</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Sep 2012 13:13:12 -0500</created>
                <updated>Thu, 10 Jan 2013 01:14:17 -0600</updated>
                    <resolved>Wed, 10 Oct 2012 14:18:41 -0500</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0</fixVersion>
                                <component>cross-datacenter-replication</component>
                                <votes>0</votes>
                        <watches>2</watches>
                                                    <comments>
                    <comment id="39961" author="abhinav" created="Fri, 28 Sep 2012 15:46:22 -0500"  >fyi, .. &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5611&quot;&gt;http://www.couchbase.com/issues/browse/MB-5611&lt;/a&gt;</comment>
                    <comment id="40172" author="dipti" created="Tue, 2 Oct 2012 17:21:15 -0500"  >Pasting useful message that we need to provide better errors on from &lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-5611&quot; title=&quot;XDCR: UI should show the reason why replication failed &quot;&gt;&lt;strike&gt;MB-5611&lt;/strike&gt;&lt;/a&gt; &lt;br/&gt;
&lt;br/&gt;
Some common XDCR failure reasons: &lt;br/&gt;
&lt;br/&gt;
1 db_not_found error: when node is unresponsive, for e.g: &lt;br/&gt;
&amp;quot;could not open &lt;a href=&quot;http://Administrator:&quot;&gt;http://Administrator:&lt;/a&gt; &lt;br/&gt;
*****@10.3.3.28:8092/default%2f120%3b093c0a978eb59342ea52d87eae424bb3/&amp;quot; &lt;br/&gt;
&lt;br/&gt;
2 badmatch,{error,corrupted_data}, Erlang-related corruption &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[{couch_compress,decompress,1}, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{couch_doc,with_uncompressed_body,1}, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{couch_doc,to_json_base64,1}, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{xdc_vbucket_rep_worker,maybe_flush_docs,3}, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{lists,foldl,3}, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{xdc_vbucket_rep_worker,local_process_batch,5}, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{xdc_vbucket_rep_worker,queue_fetch_loop,4}] &lt;br/&gt;
&lt;br/&gt;
3 checkpoint_commit_failure &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{bad_return_value, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{checkpoint_commit_failure, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&amp;lt;&amp;quot;Failure on target commit: {error,&amp;lt;&amp;lt;\&amp;quot;not_found\&amp;quot;&amp;gt;&amp;gt;}&amp;quot;&amp;gt;&amp;gt;}} &lt;br/&gt;
&lt;br/&gt;
4 http_request_failed &lt;br/&gt;
xdc_replicator:handle_info:282] Worker &amp;lt;0.11173.72&amp;gt; died with reason: {http_request_failed,&amp;quot;POST&amp;quot;, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;&lt;a href=&quot;http://10.3.121.33:8092/default%2F684/_bulk_docs&quot;&gt;http://10.3.121.33:8092/default%2F684/_bulk_docs&lt;/a&gt;&amp;quot;, &lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{error,{code,500}}} &lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;Replicator: couldn&amp;#39;t write document &lt;br/&gt;
xdc_replicator_worker:flush_docs:111] Replicator: couldn&amp;#39;t &lt;br/&gt;
write document ``, revision ``, &lt;br/&gt;
to target database `&lt;a href=&quot;http://10.3.121.33:8092/default%2F683/&quot;&gt;http://10.3.121.33:8092/default%2F683/&lt;/a&gt;`. Error: ``, reason: ``. &lt;br/&gt;
&lt;br/&gt;
5 replicator_died &lt;br/&gt;
{replicator_died, {&amp;#39;EXIT&amp;#39;,&amp;lt;15849.2212.0&amp;gt;, {badmatch,{error,closed}}}} &lt;br/&gt;
&lt;br/&gt;
6 bulk_set_vbucket_state_failed &lt;br/&gt;
General error seen when rebalance fails due to vbucket_map not ready (possibly) &lt;br/&gt;
that may cause replication to fail.</comment>
                    <comment id="40734" author="junyi" created="Mon, 8 Oct 2012 20:23:44 -0500"  >Hi Dipti,&lt;br/&gt;
&lt;br/&gt;
Thanks for organizing the meeting.   Actually today XDCR has already have the API to expose errors to ns_server. The API is within XDCR replication manager (xdc_rep_manager:latest_errors()) and when called, it will return the last 10 errors for each bucket which are actively replicating.  Alk will expose these errors (or at least some of them) on UI. Alk will also determine where to expose these msgs. &lt;br/&gt;
&lt;br/&gt;
If users feel these error msgs are hard to understand, we can change it later to make it more user-friendly.  At this time, we just need to ask Alk expose them to UI.   Let me know if any other questions.  &lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
Thanks!&lt;br/&gt;
&lt;br/&gt;
Junyi</comment>
                    <comment id="40736" author="junyi" created="Mon, 8 Oct 2012 20:25:17 -0500"  >Nothing to do within XDCR. All ns_server work.</comment>
                    <comment id="40960" author="alkondratenko" created="Wed, 10 Oct 2012 14:18:41 -0500"  >Fixed &amp;amp; approved but still sits in gerrit: &lt;a href=&quot;http://review.couchbase.org/#/c/21459/&quot;&gt;http://review.couchbase.org/#/c/21459/&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
it is naive, but so are &amp;#39;errors&amp;#39; from xdcr</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Fri, 28 Sep 2012 15:46:22 -0500</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                                                                                                                                                                <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>3925</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                                                                                <customfield id="customfield_10052" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Sprint Status</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10027"><![CDATA[Current Sprint]]></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>