Skip to content

Commit

Permalink
Merge pull request #3818 from actiontech/2350
Browse files Browse the repository at this point in the history
[inner-2350] need to deal with NPE in performance mode
  • Loading branch information
wenyh1 authored Sep 12, 2023
2 parents 428c03f + 8fec828 commit 2a88150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ protected void doHandle(ServiceTask task) {
if (SystemConfig.getInstance().getUsePerformanceMode() != 1) {
super.doHandle(null);
} else {
if (task == null) return;
if (isHandling.compareAndSet(false, true)) {
DbleServer.getInstance().getConcurrentBackHandlerQueue().offer(task);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ protected void doHandle(ServiceTask task) {
if (isComplexQuery()) {
super.doHandle(null);
} else {
if (task == null) return;
if (isHandling.compareAndSet(false, true)) {
DbleServer.getInstance().getConcurrentBackHandlerQueue().offer(task);
}
Expand Down

0 comments on commit 2a88150

Please sign in to comment.