1
0
Fork 0
arangodb/arangod/RestHandler
jsteemann 5f65a9ed4f allow more control over handling of pre-3.1 _rev values
this changes the server startup option `--database.check-30-revisions` from a boolean (true/false)
parameter to a string parameter with the following possible values:

- "fail":
  will validate _rev values of 3.0 collections on collection loading and throw an exception when invalid _rev values are found.
  in this case collections with invalid _rev values are marked as corrupted and cannot be used in the ArangoDB 3.1 instance.
  the fix procedure for such collections is to export the collections from 3.0 database with arangodump and restore them in 3.1 with arangorestore.
  collections that do not contain invalid _rev values are marked as ok and will not be re-checked on following loads.
  collections that contain invalid _rev values will be re-checked on following loads.

- "true":
  will validate _rev values of 3.0 collections on collection loading and print a warning when invalid _rev values are found.
  in this case collections with invalid _rev values can be used in the ArangoDB 3.1 instance.
  however, subsequent operations on documents with invalid _rev values may silently fail or fail with explicit errors.
  the fix procedure for such collections is to export the collections from 3.0 database with arangodump and restore them in 3.1 with arangorestore.
  collections that do not contain invalid _rev values are marked as ok and will not be re-checked on following loads.
  collections that contain invalid _rev values will be re-checked on following loads.

- "false":
  will not validate _rev values on collection loading and not print warnings.
  no hint is given when invalid _rev values are found.
  subsequent operations on documents with invalid _rev values may silently fail or fail with explicit errors.
  this setting does not affect whether collections are re-checked later.
  collections will be re-checked on following loads if `--database.check-30-revisions` is later set to either `true` or `fail`.

The change also suppresses warnings that were printed when collections were restored using arangorestore, and the restore
data contained invalid _rev values. Now these warnings are suppressed, and new HLC _rev values are generated for these documents
as before.
2016-11-04 23:17:01 +01:00
..
RestAdminLogHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestAdminLogHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestAqlFunctionsHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestAqlFunctionsHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestAuthHandler.cpp Merge remote-tracking branch 'origin/devel' into authentication 2016-10-17 13:51:26 +02:00
RestAuthHandler.h Merge remote-tracking branch 'origin/devel' into authentication 2016-10-17 13:51:26 +02:00
RestBaseHandler.cpp added HTTP REST APIs for online loglevel adjustments: 2016-09-08 11:15:49 +02:00
RestBaseHandler.h added HTTP REST APIs for online loglevel adjustments: 2016-09-08 11:15:49 +02:00
RestBatchHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestBatchHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestCursorHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestCursorHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestDebugHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestDebugHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestDemoHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestDemoHandler.h fix compile warning 2016-10-17 17:16:55 +02:00
RestDocumentHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestDocumentHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestEchoHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestEchoHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestEdgesHandler.cpp Removed dead code of TraverserExpressions. They have been replaced by native AQL expressions everywhere. 2016-11-04 18:15:04 +01:00
RestEdgesHandler.h Removed dead code of TraverserExpressions. They have been replaced by native AQL expressions everywhere. 2016-11-04 18:15:04 +01:00
RestExportHandler.cpp allow working with empty bodies 2016-10-26 12:17:26 +02:00
RestExportHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestHandlerCreator.h WIP 2016-05-22 21:08:37 +02:00
RestImportHandler.cpp do not silently ignore errors thrown by Transaction::insert 2016-10-28 16:04:20 +02:00
RestImportHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestJobHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestJobHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestPleaseUpgradeHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestPleaseUpgradeHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestQueryCacheHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestQueryCacheHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestQueryHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestQueryHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestReplicationHandler.cpp allow more control over handling of pre-3.1 _rev values 2016-11-04 23:17:01 +01:00
RestReplicationHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestShutdownHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestShutdownHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestSimpleHandler.cpp Removed dead code of TraverserExpressions. They have been replaced by native AQL expressions everywhere. 2016-11-04 18:15:04 +01:00
RestSimpleHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestSimpleQueryHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestSimpleQueryHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestUploadHandler.cpp less pointer handling 2016-10-24 16:41:22 +02:00
RestUploadHandler.h fix warning 2016-10-17 13:49:28 +02:00
RestVersionHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestVersionHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
RestVocbaseBaseHandler.cpp allow more control over handling of pre-3.1 _rev values 2016-11-04 23:17:01 +01:00
RestVocbaseBaseHandler.h added HTTP REST APIs for online loglevel adjustments: 2016-09-08 11:15:49 +02:00
RestWalHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
RestWalHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00
WorkMonitorHandler.cpp switch to boost asio 2016-10-14 10:12:17 +00:00
WorkMonitorHandler.h switch to boost asio 2016-10-14 10:12:17 +00:00