History log of /6.6.0/kv_engine/engines/ep/tools/couchfile_upgrade/couchfile_upgrade.cc (Results 1 - 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.3, v7.0.1, v7.0.0, v6.6.2, v6.5.2, v6.6.1, v6.0.5, v6.6.0, v6.5.1, v6.0.4, v6.5.0, v6.0.3, v5.5.4, v5.5.5, v5.5.6, v6.0.1, v5.5.3, v6.0.0, v5.1.3, v5.5.2
# fa794508 06-Sep-2018 Jim Walker <jim@couchbase.com>

MB-31168: couchfile_upgrade needs to buffer and batch writes

Previously the upgrade tool was writing documents one by one,
this leads to couchstore generating a lot of stale metadata

MB-31168: couchfile_upgrade needs to buffer and batch writes

Previously the upgrade tool was writing documents one by one,
this leads to couchstore generating a lot of stale metadata
and bloating the new file size.

If we buffer documents in memory and batch writes, we will
produce a file closer in size to the original.

Change-Id: Ibbe4172967fcf797280f86a0b3f41e990e6e5c45
Reviewed-on: http://review.couchbase.org/99297
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 309a1c5b 04-Sep-2018 Ben Huddleston <ben.huddleston@couchbase.com>

MB-30913: Rename members/methods in preparation for scopes

Many collections class members/methods are named such that
it only makes sense for them to deal with 1 type of object.
To s

MB-30913: Rename members/methods in preparation for scopes

Many collections class members/methods are named such that
it only makes sense for them to deal with 1 type of object.
To simplify future patches, rename these members/methods so that
class interfaces deal with collections/scopes more consistently.

Leave the begin and end iterator methods of Manifest as we
generally wish to iterate over all collections of a Manifest.

Change-Id: Id5b4128056d48800adb956f0c8bb780a8c3e19de
Reviewed-on: http://review.couchbase.org/99235
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# f9266326 06-Sep-2018 Jim Walker <jim@couchbase.com>

MB-31167: Only proceed to open output file if input file is OK

Reshuffle the upgrade function so that the OutputCouchFile is
created after the pre-flight checks are successful.

MB-31167: Only proceed to open output file if input file is OK

Reshuffle the upgrade function so that the OutputCouchFile is
created after the pre-flight checks are successful.

Change-Id: I2828a2b1e04c4d976a8778c74cf890da7c2fd1ea
Reviewed-on: http://review.couchbase.org/99293
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 264cf0ab 06-Aug-2018 Jim Walker <jim@couchbase.com>

MB-16181: Collections offline upgrade utility

Add a utility to kv-engine which upgrades a single couchstore file
to be in the 'initial' collections state.

1) That is all documen

MB-16181: Collections offline upgrade utility

Add a utility to kv-engine which upgrades a single couchstore file
to be in the 'initial' collections state.

1) That is all documents in the file are moved into the default
collection.

2) The file's vbstate JSON document is tagged so kv-engine can
query if a file is collection upgrade.

The tool itself will tag the file with "collection_supported:false"
before the data upgrade begins, to help determine partial upgrade
issues.

The tool itself has the following options, with -t -i -o the expected
usage by cbupgrade

Usage:
-v Optional: Run with verbose output to stdout.
-s Optional: Print upgrade status of input file.
-t Optional: exit 0 if file is already marked as upgraded.
-i Required: Input filename.
-o Required (only if not -s): Output filename to be created.

Change-Id: I3f6ff82f42a0f7ac6b4c1ab5397d5acd1c6d15b4
Reviewed-on: http://review.couchbase.org/97926
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...