morningman commented on a change in pull request #2093: Fix some routine load
bugs
URL: https://github.com/apache/incubator-doris/pull/2093#discussion_r340398170
##########
File path:
fe/src/main/java/org/apache/doris/load/routineload/RoutineLoadJob.java
##########
@@ -757,7 +758,10 @@ public void afterAborted(TransactionState txnState,
boolean txnOperated, String
.add("error_msg", "change job state to paused
when task has been aborted with error " + e.getMessage())
.build(), e);
} finally {
- writeUnlock();
+ if (lock.isWriteLockedByCurrentThread()) {
Review comment:
Yes. It is weird. I will make this function more readable
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]