[ 
https://issues.apache.org/jira/browse/COUCHDB-2485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15718966#comment-15718966
 ] 

Petr Běhan commented on COUCHDB-2485:
-------------------------------------

I repeatedly encountered this on 1.6.0-0ubuntu7, but I don't know (yet) how to 
reproduce it. Our app startup depends on update_seq - read current view with 
only the data it requires instead of high-volume _all_docs, and then listen to 
low volume _changes based on received update_seq. Recently the app started to 
break from time to time during restart, because couch starts returning 
update_seq as 0. It worked for a few years on 1.1 without problems, recently I 
upgraded server environment and 1.6 couch came with it.

The period when this happens seems to be about 7 days. We have daily restart 
scheduled at every evening, and it usually breaks on Saturday restart (usually 
= happened twice so far). Which is doubly weird, because Friday restart 
completes without problems, and there is only very little traffic on weekends 
(most likely no writes and only minimal reads). Which could mean that it may 
get broken by some internal automatic couch process.

Compact db / compact views / cleanup views in futon doesn't help. Restarting 
couch server doesn't help either. No information in couch log, I'll increase 
log level and see if something comes up when it happens again. So far I only 
found one solution. Delete the dot-prefixed directory with views data, restart 
couch server, and after it generates new view data the update seq works. For a 
while.

> View unexpectedly returns result with update_seq=0
> --------------------------------------------------
>
>                 Key: COUCHDB-2485
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2485
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: ASF subversion and git services
>
> We have database with size 2Gb. We create design document in this database 
> with 3 views. Our soft gets all data from any view with parameter 
> update_seq=true, and we use update_seq for next loads from this view. But if 
> we create second design document with 3 views also and try get all data from 
> new view or old view with update_seq=true, we got update_seq equal zero 
> always.
> We produce this situation on CouchDB 1.5.0, 1.6.0 and 1.6.1.
> *Reporter*: Andrey Salnikov
> *E-mail*: [mailto:[email protected]]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to