hyperledger / hyperledger/fabric

Add channel config for max doc size behind a new application capability to prevent document_too_large issues in CouchDB

Open
#3,306 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
16.7k
Forks
9.1k
Avg merge
5h 38m
Merged PRs (30d)
26

Description

On a peer init ( that was working before) I get this error:
```
2022-03-28 11:30:22.423 UTC [nodeCmd] serve -> INFO 015 Deployed system chaincodes
2022-03-28 11:30:22.423 UTC [peer] Initialize -> INFO 016 Loading chain mychannel
2022-03-28 11:30:22.423 UTC [ledgermgmt] OpenLedger -> INFO 017 Opening ledger with id = mychannel
2022-03-28 11:30:22.561 UTC [kvledger] recommitLostBlocks -> INFO 018 Recommitting lost blocks - firstBlockNum=151932, lastBlockNum=151932, recoverables=[]kvledger.recoverable{(*txmgr.LockBasedTxMgr)(0xc0007ac280), (*history.DB)(0xc0007019e0)}
2022-03-28 11:30:24.191 UTC [statecouchdb] commitUpdates -> WARN 019 CouchDB batch document delete encountered an problem. Retrying delete for document ID:balance621e8f504846af00263781f48445288001003000000000000000001673753
2022-03-28 11:30:24.201 UTC [statecouchdb] commitUpdates -> WARN 01a CouchDB batch document delete encountered an problem. Retrying delete for document ID:balance621e8f532d450700269506cf8445288001003000000000000000001674145
2022-03-28 11:30:24.213 UTC [statecouchdb] commitUpdates -> WARN 01b CouchDB batch document delete encountered an problem. Retrying delete for document ID:balance621e8f4e3bfafd00269df9368445288001003000000000000000001673586
2022-03-28 11:30:24.218 UTC [statecouchdb] commitUpdates -> WARN 01c CouchDB batch document delete encountered an problem. Retrying delete for document ID:balance621e8f4a4b49c90026d42acd8445288001003000000000000000001673194
2022-03-28 11:30:24.224 UTC [statecouchdb] commitUpdates -> WARN 01d CouchDB batch document delete encountered an problem. Retrying delete for document ID:balance621e8f528876a0002650ab448445288001003000000000000000001673975
2022-03-28 11:30:24.230 UTC [statecouchdb] commitUpdates -> WARN 01e CouchDB batch document delete encountered an problem. Retrying delete for document ID:balance621e8f54c1c7d3002637c8f68445288001003000000000000000001674174
2022-03-28 11:30:24.239 UTC [statecouchdb] commitUpdates -> WARN 01f CouchDB batch document delete encountered an problem. Retrying delete for document ID:balance621e8f4c8876a0002650ab1c8445288001003000000000000000001673464
2022-03-28 11:30:24.255 UTC [statecouchdb] commitUpdates -> WARN 020 CouchDB batch document delete encountered an problem. Retrying delete for document ID:balance621e8f4c4b49c90026d42ad18445288001003000000000000000001673419
2022-03-28 11:30:24.741 UTC [peer] Initialize -> ERRO 021 Failed to load ledger mychannel (error handling CouchDB request. Error:document_too_large, Status Code:413, Reason:lot621f3016cec5a038d5b7cdf7
github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/statedb/statecouchdb.(*couchInstance).handleRequest
```

And there is no way for this peer to join again to that channel.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.