2828import org .apache .flink .client .program .rest .RestClusterClient ;
2929import org .apache .flink .configuration .Configuration ;
3030import org .apache .flink .runtime .highavailability .nonha .standalone .StandaloneClientHAServices ;
31- import org .apache .flink .runtime .jobgraph .JobType ;
3231import org .apache .flink .runtime .jobgraph .JobVertexID ;
3332import org .apache .flink .runtime .rest .messages .JobPlanInfo ;
3433import org .apache .flink .runtime .rest .messages .MessageHeaders ;
@@ -80,7 +79,6 @@ public void testJobTopologyParsingFromJobDetails() throws Exception {
8079 + " \" name\" : \" State machine job\" ,\n "
8180 + " \" isStoppable\" : false,\n "
8281 + " \" state\" : \" RUNNING\" ,\n "
83- + " \" job-type\" : \" STREAMING\" ,\n "
8482 + " \" start-time\" : 1707893512027,\n "
8583 + " \" end-time\" : -1,\n "
8684 + " \" duration\" : 214716,\n "
@@ -239,7 +237,6 @@ public void testJobTopologyParsingThrowsNotReadyException() throws Exception {
239237 + " \" name\" : \" State machine job\" ,\n "
240238 + " \" isStoppable\" : false,\n "
241239 + " \" state\" : \" RUNNING\" ,\n "
242- + " \" job-type\" : \" STREAMING\" ,\n "
243240 + " \" start-time\" : 1707893512027,\n "
244241 + " \" end-time\" : -1,\n "
245242 + " \" duration\" : 214716,\n "
@@ -360,7 +357,7 @@ public void testJobTopologyParsingThrowsNotReadyException() throws Exception {
360357 @ Test
361358 public void testJobTopologyParsingFromJobDetailsWithSlotSharingGroup () throws Exception {
362359 String s =
363- "{\" jid\" :\" a1b1b53c7c71e7199aa8c43bc703fe7f\" ,\" name\" :\" basic-example\" ,\" isStoppable\" :false,\" state\" :\" RUNNING\" ,\" job-type\" :\" STREAMING\" ,\" start-time\" :1697114719143,\" end-time\" :-1,\" duration\" :60731,\" maxParallelism\" :-1,\" now\" :1697114779874,\" timestamps\" :{\" CANCELLING\" :0,\" INITIALIZING\" :1697114719143,\" RUNNING\" :1697114719743,\" CANCELED\" :0,\" FINISHED\" :0,\" FAILED\" :0,\" RESTARTING\" :0,\" FAILING\" :0,\" CREATED\" :1697114719343,\" SUSPENDED\" :0,\" RECONCILING\" :0},\" vertices\" :[{\" id\" :\" bc764cd8ddf7a0cff126f51c16239658\" ,\" slotSharingGroupId\" :\" a9c52ec4c7200ab4bd141cbae8022105\" ,\" name\" :\" Source: Events Generator Source\" ,\" maxParallelism\" :128,\" parallelism\" :2,\" status\" :\" RUNNING\" ,\" start-time\" :1697114724603,\" end-time\" :-1,\" duration\" :55271,\" tasks\" :{\" FAILED\" :0,\" CANCELED\" :0,\" SCHEDULED\" :0,\" FINISHED\" :0,\" CREATED\" :0,\" DEPLOYING\" :0,\" CANCELING\" :0,\" RECONCILING\" :0,\" INITIALIZING\" :0,\" RUNNING\" :2},\" metrics\" :{\" read-bytes\" :0,\" read-bytes-complete\" :true,\" write-bytes\" :1985978,\" write-bytes-complete\" :true,\" read-records\" :0,\" read-records-complete\" :true,\" write-records\" :92037,\" write-records-complete\" :true,\" accumulated-backpressured-time\" :0,\" accumulated-idle-time\" :78319,\" accumulated-busy-time\" :13347.0}},{\" id\" :\" 20ba6b65f97481d5570070de90e4e791\" ,\" slotSharingGroupId\" :\" a9c52ec4c7200ab4bd141cbae8022105\" ,\" name\" :\" Flat Map -> Sink: Print to Std. Out\" ,\" maxParallelism\" :128,\" parallelism\" :2,\" status\" :\" RUNNING\" ,\" start-time\" :1697114724639,\" end-time\" :-1,\" duration\" :55235,\" tasks\" :{\" FAILED\" :0,\" CANCELED\" :0,\" SCHEDULED\" :0,\" FINISHED\" :0,\" CREATED\" :0,\" DEPLOYING\" :0,\" CANCELING\" :0,\" RECONCILING\" :0,\" INITIALIZING\" :0,\" RUNNING\" :2},\" metrics\" :{\" read-bytes\" :2019044,\" read-bytes-complete\" :true,\" write-bytes\" :0,\" write-bytes-complete\" :true,\" read-records\" :91881,\" read-records-complete\" :true,\" write-records\" :0,\" write-records-complete\" :true,\" accumulated-backpressured-time\" :0,\" accumulated-idle-time\" :91352,\" accumulated-busy-time\" :273.0}}],\" status-counts\" :{\" FAILED\" :0,\" CANCELED\" :0,\" SCHEDULED\" :0,\" FINISHED\" :0,\" CREATED\" :0,\" DEPLOYING\" :0,\" CANCELING\" :0,\" RECONCILING\" :0,\" INITIALIZING\" :0,\" RUNNING\" :2},\" plan\" :{\" jid\" :\" a1b1b53c7c71e7199aa8c43bc703fe7f\" ,\" name\" :\" basic-example\" ,\" type\" :\" STREAMING\" ,\" nodes\" :[{\" id\" :\" 20ba6b65f97481d5570070de90e4e791\" ,\" parallelism\" :2,\" operator\" :\" \" ,\" operator_strategy\" :\" \" ,\" description\" :\" Flat Map<br/>+- Sink: Print to Std. Out<br/>\" ,\" operator_metadata\" :[{},{}],\" inputs\" :[{\" num\" :0,\" id\" :\" bc764cd8ddf7a0cff126f51c16239658\" ,\" ship_strategy\" :\" HASH\" ,\" exchange\" :\" pipelined_bounded\" }],\" optimizer_properties\" :{}},{\" id\" :\" bc764cd8ddf7a0cff126f51c16239658\" ,\" parallelism\" :2,\" operator\" :\" \" ,\" operator_strategy\" :\" \" ,\" description\" :\" Source: Events Generator Source<br/>\" ,\" operator_metadata\" :[{}],\" optimizer_properties\" :{}}]}}\n " ;
360+ "{\" jid\" :\" a1b1b53c7c71e7199aa8c43bc703fe7f\" ,\" name\" :\" basic-example\" ,\" isStoppable\" :false,\" state\" :\" RUNNING\" ,\" start-time\" :1697114719143,\" end-time\" :-1,\" duration\" :60731,\" maxParallelism\" :-1,\" now\" :1697114779874,\" timestamps\" :{\" CANCELLING\" :0,\" INITIALIZING\" :1697114719143,\" RUNNING\" :1697114719743,\" CANCELED\" :0,\" FINISHED\" :0,\" FAILED\" :0,\" RESTARTING\" :0,\" FAILING\" :0,\" CREATED\" :1697114719343,\" SUSPENDED\" :0,\" RECONCILING\" :0},\" vertices\" :[{\" id\" :\" bc764cd8ddf7a0cff126f51c16239658\" ,\" slotSharingGroupId\" :\" a9c52ec4c7200ab4bd141cbae8022105\" ,\" name\" :\" Source: Events Generator Source\" ,\" maxParallelism\" :128,\" parallelism\" :2,\" status\" :\" RUNNING\" ,\" start-time\" :1697114724603,\" end-time\" :-1,\" duration\" :55271,\" tasks\" :{\" FAILED\" :0,\" CANCELED\" :0,\" SCHEDULED\" :0,\" FINISHED\" :0,\" CREATED\" :0,\" DEPLOYING\" :0,\" CANCELING\" :0,\" RECONCILING\" :0,\" INITIALIZING\" :0,\" RUNNING\" :2},\" metrics\" :{\" read-bytes\" :0,\" read-bytes-complete\" :true,\" write-bytes\" :1985978,\" write-bytes-complete\" :true,\" read-records\" :0,\" read-records-complete\" :true,\" write-records\" :92037,\" write-records-complete\" :true,\" accumulated-backpressured-time\" :0,\" accumulated-idle-time\" :78319,\" accumulated-busy-time\" :13347.0}},{\" id\" :\" 20ba6b65f97481d5570070de90e4e791\" ,\" slotSharingGroupId\" :\" a9c52ec4c7200ab4bd141cbae8022105\" ,\" name\" :\" Flat Map -> Sink: Print to Std. Out\" ,\" maxParallelism\" :128,\" parallelism\" :2,\" status\" :\" RUNNING\" ,\" start-time\" :1697114724639,\" end-time\" :-1,\" duration\" :55235,\" tasks\" :{\" FAILED\" :0,\" CANCELED\" :0,\" SCHEDULED\" :0,\" FINISHED\" :0,\" CREATED\" :0,\" DEPLOYING\" :0,\" CANCELING\" :0,\" RECONCILING\" :0,\" INITIALIZING\" :0,\" RUNNING\" :2},\" metrics\" :{\" read-bytes\" :2019044,\" read-bytes-complete\" :true,\" write-bytes\" :0,\" write-bytes-complete\" :true,\" read-records\" :91881,\" read-records-complete\" :true,\" write-records\" :0,\" write-records-complete\" :true,\" accumulated-backpressured-time\" :0,\" accumulated-idle-time\" :91352,\" accumulated-busy-time\" :273.0}}],\" status-counts\" :{\" FAILED\" :0,\" CANCELED\" :0,\" SCHEDULED\" :0,\" FINISHED\" :0,\" CREATED\" :0,\" DEPLOYING\" :0,\" CANCELING\" :0,\" RECONCILING\" :0,\" INITIALIZING\" :0,\" RUNNING\" :2},\" plan\" :{\" jid\" :\" a1b1b53c7c71e7199aa8c43bc703fe7f\" ,\" name\" :\" basic-example\" ,\" type\" :\" STREAMING\" ,\" nodes\" :[{\" id\" :\" 20ba6b65f97481d5570070de90e4e791\" ,\" parallelism\" :2,\" operator\" :\" \" ,\" operator_strategy\" :\" \" ,\" description\" :\" Flat Map<br/>+- Sink: Print to Std. Out<br/>\" ,\" operator_metadata\" :[{},{}],\" inputs\" :[{\" num\" :0,\" id\" :\" bc764cd8ddf7a0cff126f51c16239658\" ,\" ship_strategy\" :\" HASH\" ,\" exchange\" :\" pipelined_bounded\" }],\" optimizer_properties\" :{}},{\" id\" :\" bc764cd8ddf7a0cff126f51c16239658\" ,\" parallelism\" :2,\" operator\" :\" \" ,\" operator_strategy\" :\" \" ,\" description\" :\" Source: Events Generator Source<br/>\" ,\" operator_metadata\" :[{}],\" optimizer_properties\" :{}}]}}\n " ;
364361 JobDetailsInfo jobDetailsInfo = new ObjectMapper ().readValue (s , JobDetailsInfo .class );
365362
366363 var metricsCollector = new RestApiMetricsCollector ();
@@ -375,7 +372,6 @@ public void testJobUpdateTsLogic() {
375372 "" ,
376373 false ,
377374 org .apache .flink .api .common .JobStatus .RUNNING ,
378- JobType .STREAMING ,
379375 0 ,
380376 0 ,
381377 0 ,
0 commit comments