File tree 2 files changed +10
-8
lines changed
server/tserver/src/main/java/org/apache/accumulo/tserver/scan
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,16 @@ public void run() {
64
64
MultiScanSession session = (MultiScanSession ) server .getSession (scanID );
65
65
String oldThreadName = Thread .currentThread ().getName ();
66
66
67
+ if (!transitionToRunning ()) {
68
+ return ;
69
+ }
70
+ // Do not add any code here. Need to ensure that transitionFromRunning() runs in the finally
71
+ // block when transitionToRunning() returns true.
67
72
try {
68
73
if (isCancelled () || session == null ) {
69
74
return ;
70
75
}
71
76
72
- if (!transitionToRunning ()) {
73
- return ;
74
- }
75
-
76
77
TableConfiguration acuTableConf = server .getTableConfiguration (session .threadPoolExtent );
77
78
long maxResultsSize = acuTableConf .getAsBytes (Property .TABLE_SCAN_MAXMEM );
78
79
Original file line number Diff line number Diff line change @@ -54,15 +54,16 @@ public void run() {
54
54
final SingleScanSession scanSession = (SingleScanSession ) server .getSession (scanID );
55
55
String oldThreadName = Thread .currentThread ().getName ();
56
56
57
+ if (!transitionToRunning ()) {
58
+ return ;
59
+ }
60
+ // Do not add any code here. Need to ensure that transitionFromRunning() runs in the finally
61
+ // block when transitionToRunning() returns true.
57
62
try {
58
63
if (isCancelled () || scanSession == null ) {
59
64
return ;
60
65
}
61
66
62
- if (!transitionToRunning ()) {
63
- return ;
64
- }
65
-
66
67
Thread .currentThread ()
67
68
.setName ("User: " + scanSession .getUser () + " Start: " + scanSession .startTime
68
69
+ " Client: " + scanSession .client + " Tablet: " + scanSession .extent );
You can’t perform that action at this time.
0 commit comments