You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Adam Kocoloski (JIRA)" <ji...@apache.org> on 2010/11/18 15:55:13 UTC

[jira] Commented: (COUCHDB-956) Return all _seq values as strings not integers

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

Adam Kocoloski commented on COUCHDB-956:
----------------------------------------

The replicator sorts sequence values from the rows it has processed in the _changes feed to ensure that it always checkpoints at the highest one possible.  Sorting them as strings results in the replicator skipping checkpoints after it reaches a sequence with a number of leading 9s.

> Return all _seq values as strings not integers
> ----------------------------------------------
>
>                 Key: COUCHDB-956
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-956
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Robert Newson
>
> Some fields are returned as strings in db_info and other places to protect against numeric overflow;
> {"db_name":"db","doc_count":0,"doc_del_count":0,"update_seq":0,"purge_seq":0,"compact_running":false,"disk_size":79,"instance_start_time":"1290088043619158","disk_format_version":5,"committed_update_seq":0}
> here, instance_start_time is protected but, more critically, update_seq is not.
> If update_seq were to be wrapped due to precision issues, what breaks?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.