-
Notifications
You must be signed in to change notification settings - Fork 445
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 Zombie and Cleaning Scan states #4983
base: 3.1
Are you sure you want to change the base?
Conversation
if (session.getScanTask() == null) { | ||
state = ScanState.IDLE; | ||
} else { | ||
switch (scanTask.getScanRunState()) { | ||
switch (session.getScanTask().getScanRunState()) { |
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.
could store the scan task in a var
server/tserver/src/main/java/org/apache/accumulo/tserver/session/SessionManager.java
Outdated
Show resolved
Hide resolved
server/tserver/src/main/java/org/apache/accumulo/tserver/session/SessionManager.java
Outdated
Show resolved
Hide resolved
server/tserver/src/main/java/org/apache/accumulo/tserver/session/SessionManager.java
Outdated
Show resolved
Hide resolved
server/tserver/src/main/java/org/apache/accumulo/tserver/session/SessionManager.java
Outdated
Show resolved
Hide resolved
server/tserver/src/main/java/org/apache/accumulo/tserver/session/SessionManager.java
Outdated
Show resolved
Hide resolved
server/tserver/src/main/java/org/apache/accumulo/tserver/session/SessionManager.java
Outdated
Show resolved
Hide resolved
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.
A couple comments. The current logic doesn't look entirely correct to me but I'm not sure what should be changed.
@keith-turner - do you have any ideas/suggestions on my comments?
if (scanTask == null) { | ||
state = ScanState.IDLE; | ||
if (session.getState() == State.REMOVED) { | ||
state = ScanState.CLEANING; | ||
} else { | ||
switch (scanTask.getScanRunState()) { | ||
switch (session.getScanTask().getScanRunState()) { |
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.
This removes the null check for the scanTask and I think it would still be needed, however, I'm not sure where it would go especially considering my next comment
if (session.getState() == State.REMOVED) { | ||
state = ScanState.ZOMBIE; | ||
} | ||
break; |
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.
The current logic is:
if (session.getState() == State.REMOVED) {
state = ScanState.CLEANING;
} else {
...
if (session.getState() == State.REMOVED) {
state = ScanState.ZOMBIE;
}
...
}
state = ScanState.ZOMBIE
will never execute in this logic. It seems like either (or both) the logic for identifying ZOMBIE or CLEANING need to be changed (but I'm not sure which or what it should be changed to)
Added zombie and cleaning states to Admin and Thrift. Made methods to handle when the state is set to cleaning or zombie.
closes issue #4843