Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow for in-place restores.#1094

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mattl-netflix wants to merge18 commits into4.x
base:4.x
Choose a base branch
Loading
fromfeature/in_place_restore_4
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
aa4dcc1
Change IMetaProxy API to return an ImmutableList of AbstractBackupPat…
mattl-netflixMay 1, 2024
f9de9a7
Include incremental secondary index files in restore.
mattl-netflixMay 1, 2024
a5a6bb0
Remove unused code from our restore tooling.
mattl-netflixMar 9, 2024
6b19184
Remove waitForCompletion parameter to download method which is always…
mattl-netflixMar 10, 2024
71756d1
Remove all non-javadoc comments that don't provide warnings to future…
mattl-netflixMar 10, 2024
50b41cb
Remove redundant logging.
mattl-netflixMar 10, 2024
515eb2f
Remove redundant vertical whitespace.
mattl-netflixMar 10, 2024
948485a
Remove backup racs as that configuration is not used in practice and …
mattl-netflixMar 10, 2024
78aca40
Consolidate restore status API.
mattl-netflixApr 10, 2024
78dae29
Cease wiping the data directory in advance of restore. It is counter-…
mattl-netflixApr 10, 2024
a7c0975
Move getBackupDirectories to BackupRestoreUtil and change its signatu…
mattl-netflixMay 2, 2024
71c045b
Cease stopping Cassandra in the restore process and reveal the abilit…
mattl-netflixMay 2, 2024
6b1027a
Rename file variable to be idomatic Java.
mattl-netflixDec 27, 2024
728645b
Remove redundant File.exists() calls.
mattl-netflixDec 27, 2024
67a1c0a
Use Path.resolve rather than switching between Path and String.
mattl-netflixDec 27, 2024
9c3be36
Move to canonical method of moving one directory to another in Java.
mattl-netflixDec 31, 2024
a1b7e8d
Log failed imports.
mattl-netflixMar 17, 2025
e1ebaa5
Change policy to not replace existing files by default when doing an …
mattl-netflixMar 17, 2025
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
PrevPrevious commit
NextNext commit
Remove unused code from our restore tooling.
  • Loading branch information
@mattl-netflix
mattl-netflix committedMar 17, 2025
commita5a6bb0d0ac7bff84a44a95683447f7630a1bb4c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -55,8 +55,6 @@
*/
public abstract class AbstractRestore extends Task implements IRestoreStrategy {
private static final Logger logger = LoggerFactory.getLogger(AbstractRestore.class);
private static final String JOBNAME = "AbstractRestore";
private static final String SYSTEM_KEYSPACE = "system";
private static BigInteger restoreToken;
final IBackupFileSystem fs;
final Sleeper sleeper;
Expand All@@ -75,7 +73,6 @@ public abstract class AbstractRestore extends Task implements IRestoreStrategy {
public AbstractRestore(
IConfiguration config,
IBackupFileSystem fs,
String name,
Sleeper sleeper,
Provider<AbstractBackupPath> pathProvider,
InstanceIdentity instanceIdentity,
Expand DownExpand Up@@ -267,26 +264,4 @@ public void restore(DateUtil.DateRange dateRange) throws Exception {
* @throws Exception If there is any error in downloading file from the remote file system.
*/
protected abstract Future<Path> downloadFile(final AbstractBackupPath path) throws Exception;

final class BoundedList<E> extends LinkedList<E> {

private final int limit;

BoundedList(int limit) {
this.limit = limit;
}

@Override
public boolean add(E o) {
super.add(o);
while (size() > limit) {
super.remove();
}
return true;
}
}

public final int getDownloadTasksQueued() {
return fs.getDownloadTasksQueued();
}
}
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -30,14 +30,11 @@
import javax.inject.Inject;
import javax.inject.Provider;
import javax.inject.Singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/** Main class for restoring data from backup. Backup restored using this way are not encrypted. */
@Singleton
public class Restore extends AbstractRestore {
public static final String JOBNAME = "AUTO_RESTORE_JOB";
private static final Logger logger = LoggerFactory.getLogger(Restore.class);

@Inject
public Restore(
Expand All@@ -53,7 +50,6 @@ public Restore(
super(
config,
fs,
JOBNAME,
sleeper,
pathProvider,
instanceIdentity,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp