-
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.
[FAB-16921] Upgrade older ledger data w/ couchdb
This CR adds a backward compability test using couchdb as statedb. It upgrades v13 ledger data with state couchdb - update idStore, drop blockIndex, history, and state databases. Then it starts the upgraded ledger and verifies ledger data. - rename v11_test.go to v1x_test.go to cover tests using v1.1 and v1.3 ledger data Change-Id: I479d978f89a437d4a45fadd89775eb2be38f5e8c Signed-off-by: Wenjian Qiao <wenjianq@gmail.com>
- Loading branch information
1 parent
127e224
commit 29056b0
Showing
33 changed files
with
487 additions
and
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ | |
*.txt text eol=lf | ||
*.yaml text eol=lf | ||
*.yml text eol=lf | ||
*.zip binary | ||
LICENSE text eol=lf |
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
Binary file added
BIN
+23.9 KB
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData.zip
Binary file not shown.
4 changes: 0 additions & 4 deletions
4
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/.gitignore
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-20.4 KB
...dger/tests/testdata/v11/sample_ledgers/ledgersData/chains/chains/ledger1/blockfile_000000
Binary file not shown.
Binary file removed
BIN
-20.4 KB
...dger/tests/testdata/v11/sample_ledgers/ledgersData/chains/chains/ledger2/blockfile_000000
Binary file not shown.
Binary file removed
BIN
-6.78 KB
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/chains/index/000001.log
Binary file not shown.
1 change: 0 additions & 1 deletion
1
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/chains/index/CURRENT
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-54 Bytes
...edger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/chains/index/MANIFEST-000000
Binary file not shown.
Binary file removed
BIN
-1.43 KB
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/historyLeveldb/000001.log
Binary file not shown.
1 change: 0 additions & 1 deletion
1
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/historyLeveldb/CURRENT
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-54 Bytes
...ger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/historyLeveldb/MANIFEST-000000
Binary file not shown.
Binary file removed
BIN
-226 Bytes
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/ledgerProvider/000001.log
Binary file not shown.
1 change: 0 additions & 1 deletion
1
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/ledgerProvider/CURRENT
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-54 Bytes
...ger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/ledgerProvider/MANIFEST-000000
Binary file not shown.
Binary file removed
BIN
-2.09 KB
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/pvtdataStore/000001.log
Binary file not shown.
1 change: 0 additions & 1 deletion
1
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/pvtdataStore/CURRENT
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-54 Bytes
...edger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/pvtdataStore/MANIFEST-000000
Binary file not shown.
Binary file removed
BIN
-33 KB
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/stateLeveldb/000001.log
Binary file not shown.
1 change: 0 additions & 1 deletion
1
core/ledger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/stateLeveldb/CURRENT
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-54 Bytes
...edger/kvledger/tests/testdata/v11/sample_ledgers/ledgersData/stateLeveldb/MANIFEST-000000
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
core/ledger/kvledger/tests/testdata/v13_statecouchdb/couchdb_etc/local.d/cluster.ini
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# The local.d directory will be mounted to the couchdb container so that | ||
# this file will overwrite the default values for number of shards and nodes | ||
[cluster] | ||
q=1 | ||
n=1 |
Binary file added
BIN
+43.4 KB
core/ledger/kvledger/tests/testdata/v13_statecouchdb/sample_ledgers/couchdbData.zip
Binary file not shown.
Binary file added
BIN
+27.9 KB
core/ledger/kvledger/tests/testdata/v13_statecouchdb/sample_ledgers/ledgersData.zip
Binary file not shown.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.