Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-13196

Make Fabric compatible with CouchDB 2.3

    XMLWordPrintable

    Details

      Description

      From fabric-peer-endorser-committer channel, it is reported that upgrading to CouchDB 2.3 will cause an error:

      Error during CouchDB CreateDatabaseIfNotExist() for system dbName: _users  error: json: cannot unmarshal string into Go struct field DBInfo.purge_seq of type int
      

      couchdb has changed the data type in response for `CreateDatabaseIfNotExist()` check from purge_seq of int to string, while couchdb client expects int. This is a bug opened against CouchDB: https://github.com/apache/couchdb/issues/1809.

       Also seeing:

      2019-02-22 13:10:21.619 IST [couchdb] CreateSystemDatabasesIfNotExist -> ERRO 062 Error calling CouchDB CreateDatabaseIfNotExist() for system dbName: _users, error: error decoding response body: json: cannot unmarshal number into Go struct field DBInfo.update_seq of type string
      

      Fabric will need to make a code change to tolerate the CouchDB change. Since Fabric doesn't use purge_seq or update_seq (which have changed in couchdb 2.3), Fabric will make a change to simply disregard these two fields.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              denyeart David Enyeart
              Reporter:
              denyeart David Enyeart
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration