8000 Backup with view by maierlars · Pull Request #10386 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Backup with view #10386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Nov 15, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changes to allow restore from 3.5 to 3.6.
  • Loading branch information
neunhoef committed Nov 14, 2019
commit abd8c5b8bd2584c01cdf8f67043d710664f36a60
4 changes: 2 additions & 2 deletions arangod/RestServer/UpgradeFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ void UpgradeFeature::validateOptions(std::shared_ptr<ProgramOptions> options) {
cluster.forceDisable();
ServerState::instance()->setRole(ServerState::ROLE_SINGLE);

#ifdef USE_ENTEPRISE
#ifdef USE_ENTERPRISE
HotBackupFeature& hotBackupFeature = server().getFeature<HotBackupFeature>();
hotBackupFeature.disable();
hotBackupFeature.forceDisable();
#endif
}

Expand Down
2 changes: 2 additions & 0 deletions lib/Basics/StaticStrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,5 @@ std::string const StaticStrings::New("new");
std::string const StaticStrings::Old("old");
std::string const StaticStrings::UpgradeEnvName(
"ARANGODB_UPGRADE_DURING_RESTORE");
std::string const StaticStrings::BackupToDeleteName("DIRECTORY_TO_DELETE");
std::string const StaticStrings::BackupSearchToDeleteName("DIRECTORY_TO_DELETE_SEARCH");
2 changes: 2 additions & 0 deletions lib/Basics/StaticStrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ class StaticStrings {
static std::string const New;
static std::string const Old;
static std::string const UpgradeEnvName;
static std::string const BackupToDeleteName;
static std::string const BackupSearchToDeleteName;
};
} // namespace arangodb

Expand Down
6 changes: 3 additions & 3 deletions tests/RocksDBEngine/HotBackupTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,16 +365,16 @@ class RocksDBHotBackupRestoreTest : public RocksDBHotBackupRestore {

/// @brief test
TEST(RocksDBHotBackupRestoreDirectories, test_createRestoringDirectory) {
std::string restoringDir, restoringSearchDir, tempname;
std::string fullRestoringDir, restoringDir, restoringSearchDir, tempname;
bool retBool;

VPackBuilder report;
tests::mocks::MockAqlServer server;
HotBackupFeature& feature = server.getFeature<HotBackupFeature>();
RocksDBHotBackupRestoreTest testee(feature, VPackSlice(), report);
testee.createHotDirectory();
testee.createHotDirectory()

retBool = testee.createRestoringDirectories(restoringDir, restoringSearchDir);
retBool = testee.createRestoringDirectories(fullRestoringDir, restoringDir, restoringSearchDir);

// spot check files in restoring dir
EXPECT_TRUE( retBool );
Expand Down
0