Description
What is the problem?
Safian Ali found that we cannot restore a {{cbbackupmgr generate}}d backup, getting this error:
Error restoring cluster: sql: converting argument $1 type: uint64 values with high bit set are not supported
|
Both database/sql and SQLite do not support uint64. This error is from using MaxUint64 as the snapshot end seqno, even though Couchbase itself only uses uint48 as seqnos.
What is the solution
We should use a smaller number as the snapshot end seqno (at most MaxInt64)