Skip to content
Snippets Groups Projects
Select Git revision
  • workshop-poc default protected
  • streamchain-paper
  • fabric-release-1.4
3 results

ledger

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Chris Elder authored
    Problem Statement:
    
    If the provided index definitions have more than one (lets say N)
    index with same DesignDoc and indexName but with potentially different indexes,
    the log will contain N messages like `created CouchDB index in the channel...`
    but in reality only 1 index will be created in CouchDB. Fabric goes through
    each file in alphabetic order, creating and (quietly) replacing the index
    created in last round with the same DDoc and indexName, so only the last index
    remains in CouchDB.
    
    Solution:
    
    Part of the confusion can be prevented by updating the message when an index
    is created or updated in CouchDB.  The create index command responds with
    metadata that can be captured and provide a more detailed message and can
    determine if the index has been created or updated.  This can be accomplished
    with the existing http request.
    
    Change-Id: I84674ceed54dadba9470d768a028a6acb3b237f6
    Signed-off-by: default avatarChris Elder <chris.elder@us.ibm.com>
    7c963508
    History
    Name Last commit Last update
    ..