keith-turner commented on a change in pull request #2096:
URL: https://github.com/apache/accumulo/pull/2096#discussion_r632733581
##########
File path:
core/src/main/java/org/apache/accumulo/core/util/compaction/CompactionJobImpl.java
##########
@@ -40,14 +42,25 @@
private final Set<CompactableFile> files;
private final CompactionKind kind;
private boolean selectedAll;
+ private boolean hasSelectedAll;
- CompactionJobImpl(long priority, CompactionExecutorId executor,
Collection<CompactableFile> files,
- CompactionKind kind, boolean selectedAllFiles) {
+ public CompactionJobImpl(long priority, CompactionExecutorId executor,
+ Collection<CompactableFile> files, CompactionKind kind, boolean
selectedAllFiles) {
this.priority = priority;
this.executor = Objects.requireNonNull(executor);
this.files = Set.copyOf(files);
- this.kind = kind;
+ this.kind = Objects.requireNonNull(kind);
this.selectedAll = selectedAllFiles;
+ this.hasSelectedAll = true;
+ }
+
+ public CompactionJobImpl(long priority, CompactionExecutorId executor,
+ Collection<CompactableFile> files, CompactionKind kind) {
+ this.priority = priority;
+ this.executor = Objects.requireNonNull(executor);
+ this.files = Set.copyOf(files);
+ this.kind = Objects.requireNonNull(kind);
+ this.hasSelectedAll = false;
Review comment:
I will look into this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]