-
Notifications
You must be signed in to change notification settings - Fork 456
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
added Pause option into minor compactions #5289
base: main
Are you sure you want to change the base?
Conversation
server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java
Outdated
Show resolved
Hide resolved
server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/MinorCompactionTask.java
Outdated
Show resolved
Hide resolved
server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java
Outdated
Show resolved
Hide resolved
@@ -603,9 +603,9 @@ private MinorCompactionTask createMinorCompactionTask(long flushId, | |||
logMessage.append(" tabletMemory.memoryReservedForMinC() " | |||
+ getTabletMemory().memoryReservedForMinC()); | |||
} | |||
if (getTabletMemory() != null && getTabletMemory().getMemTable() != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this unreachable code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, removing this was a mistake made when I was adding the conditional for pause limit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at it now wouldn't getTabletMemory().getMemTable()
always be null when getTabletMemory()
is null?
Added a check in MinorCompactionTask to ensure that the current number of files being set to compact are below the Pause property threshold.