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

Fix long database names - truncate/hash channel,chaincode,collection name while creating couchdb database

    XMLWordPrintable

Details

    Description

      Currently, we create database in the couchDB with following naming convention:
      1. channel DB – channelName_
      2. namespace/chaincode DB - channelName_namespace
      3. collection DB - channelName_namespace$pcollectionName 
       
      As the length of CouchDB database name cannot be greater than 249 characters, we need to truncate the length of name. To avoid collision between dbName due to collision, we need to append sha256 hash of untruncated dbName to the truncated dbName. 

      Attachments

        Issue Links

          Activity

            People

              Senthil1 Senthilnathan N
              Senthil1 Senthilnathan N
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: