Skip to content

Commit

Permalink
[BugFix] Fix routine load task info null pointer exception (StarRocks…
Browse files Browse the repository at this point in the history
  • Loading branch information
zaorangyang authored Sep 5, 2023
1 parent 0d85353 commit fc39fdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public TRoutineLoadTask createRoutineLoadTask() throws UserException {
tRoutineLoadTask.setType(TLoadSourceType.KAFKA);
tRoutineLoadTask.setParams(plan(routineLoadJob));
// When the transaction times out, we reduce the consumption time to lower the BE load.
if (msg.contains(DatabaseTransactionMgr.TXN_TIMEOUT_BY_MANAGER)) {
if (msg != null && msg.contains(DatabaseTransactionMgr.TXN_TIMEOUT_BY_MANAGER)) {
tRoutineLoadTask.setMax_interval_s(routineLoadJob.getTaskConsumeSecond() / 2);
} else {
tRoutineLoadTask.setMax_interval_s(routineLoadJob.getTaskConsumeSecond());
Expand Down

0 comments on commit fc39fdc

Please sign in to comment.