-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve private data logging (#1545)
Changed following warning to debug message: WARN The PvtRwset of PvtSimulationResultsWithConfig for txID [...] is nil. Skipping. In v2.x peer attempts to retrieve private data from transient store one collection at a time. If peer is eligible for multiple collections in a transaction, and each transient store entry has one collection, some of the retrieved records will have all collections filtered out and therefore the above message is expected in v2.x and should not be a Warning (in v1.x this should not happen since each transient store record was filtered against ALL eligible collections, therefore it was a legitimate unexpected Warning message in v1.x). Suppressed the following confusing message when there IS NO private data in a block: INFO Successfully fetched all eligible collection private write sets for block [31] When there IS private data in the block, replaced the message with a more useful message like this: INFO Successfully fetched all 2 eligible collection private write sets for block [35] (0 from local cache, 1 from transient store, 1 from other peers) And if peer can't fetch all the private data in a block, you'll now get this message: WARN Could not fetch all 2 eligible collection private write sets for block [36] (0 from local cache, 1 from transient store, 0 from other peers). Will commit block with missing private write sets. Finally, removed some of the redundant or not useful debug messages. Signed-off-by: David Enyeart <enyeart@us.ibm.com> (cherry picked from commit 9d08ec7)
- Loading branch information
Showing
3 changed files
with
75 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters