Change tips of show routine load task (#959)

1. Add pauseTimestamp
2. It will be set when job is paused and it will be removed when job is resumed
This commit is contained in:
EmmyMiao87
2019-04-19 09:18:06 +08:00
committed by ZHAO Chun
parent 178757d46c
commit e352a08339
4 changed files with 12 additions and 5 deletions

View File

@ -159,7 +159,7 @@ public class RoutineLoadJobTest {
public void testGetShowInfo(@Mocked KafkaProgress kafkaProgress) {
RoutineLoadJob routineLoadJob = new KafkaRoutineLoadJob();
Deencapsulation.setField(routineLoadJob, "state", RoutineLoadJob.JobState.PAUSED);
Deencapsulation.setField(routineLoadJob, "pausedReason",
Deencapsulation.setField(routineLoadJob, "pauseReason",
TransactionState.TxnStatusChangeReason.OFFSET_OUT_OF_RANGE.toString());
Deencapsulation.setField(routineLoadJob, "progress", kafkaProgress);