You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "och5351 (via GitHub)" <gi...@apache.org> on 2026/03/25 10:42:38 UTC
[PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
och5351 opened a new pull request, #27826:
URL: https://github.com/apache/flink/pull/27826
## What is the purpose of the change
* [[FLINK-38901](https://issues.apache.org/jira/browse/FLINK-38901)][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled
* The pr is not blocked by FLIP-495 completion and is independent sub-task in FLIP-487.
## Brief change log
Adds the 'Rescale' tab and 'Configuration' subpage in relation to `[FLINK-38897][Runtime/REST] Introduce /jobs/:jobid/rescales/config endpoint to REST API` #27580.
<img width="1912" height="860" alt="image" src="https://github.com/user-attachments/assets/f05a4c33-ab18-4208-b778-a67753889ac8" />
## Verifying this change
### Prepared environment
```bash
# Prepared flink environment
./mvnw clean install -DskipTests -pl flink-runtime,flink-dist -am -P skip-webui-build -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
# Enabled adaptive scheduler
vi ./build-target/conf/config.yaml
# Run cluster
./build-target/bin/start-cluster.sh
# Prepared node packages
cd flink-runtime-web/web-dashboard
npm install
npm run proxy
```
### CASE 1. Streaming Job & Adaptive scheduler
<img width="664" height="109" alt="image" src="https://github.com/user-attachments/assets/3c7241a3-2a3d-4bfc-8a9f-aef3daec47b6" />
```bash
# Run socket
nc -lk 9999
# Run streaming example
./build-target/bin/flink run -t remote -m localhost:8081 ./build-target/examples/streaming/SocketWindowWordCount.jar --port 9999
```
<img width="1912" height="860" alt="image" src="https://github.com/user-attachments/assets/f05a4c33-ab18-4208-b778-a67753889ac8" />
### CASE 2. Batch Job
```bash
# Run batch example
./build-target/bin/flink run -t remote -m localhost:8081 ./build-target/examples/table/WordCountSQLExample.jar
```
<img width="1911" height="1010" alt="image" src="https://github.com/user-attachments/assets/cdeab16b-8c52-4ecf-8fe3-75234344647f" />
### CASE 3. Only Streaming job
<img width="648" height="117" alt="image" src="https://github.com/user-attachments/assets/082bf6b5-96db-4402-a60e-124e920a1c91" />
```bash
# Stop cluster
./build-target/stop-cluster.sh
# Disabled adaptive scheduler
vi ./build-target/conf/config.yaml
# Run cluster
./build-target/start-cluster.sh
# Run Streaming example
./build-target/bin/flink run -t remote -m localhost:8081 ./build-target/examples/streaming/SocketWindowWordCount.jar --port 9999
```
<img width="1912" height="995" alt="image" src="https://github.com/user-attachments/assets/6f141f35-3d4f-4d60-84ef-b01c7eafe9ed" />
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (yes / no)
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / no)
- The serializers: (yes / no / don't know)
- The runtime per-record code paths (performance sensitive): (yes / no / don't know)
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
- The S3 file system connector: (yes / no / don't know)
## Documentation
- Does this pull request introduce a new feature? (yes / no)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2992854031
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.html:
##########
@@ -0,0 +1,106 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<nz-tabs
+ *ngIf="rescalesConfig"
+ [nzSize]="'small'"
+ [nzAnimated]="{ inkBar: true, tabPane: false }"
+ [nzTabBarExtraContent]="extraTemplate"
+>
+ <nz-tab nzTitle="Configuration">
+ <nz-table
+ class="no-border small"
+ [nzData]="rescalesConfig ? [''] : []"
+ [nzSize]="'small'"
+ [nzFrontPagination]="false"
+ [nzShowPagination]="false"
+ >
+ <thead>
+ <tr>
+ <th><strong>Option</strong></th>
+ <th><strong>Value</strong></th>
+ </tr>
+ </thead>
+ <tbody>
+ <ng-container *ngIf="rescalesConfig">
+ <tr>
+ <td>Scheduler Execution Mode</td>
+ <td *ngIf="rescalesConfig['schedulerExecutionMode'] === 'REACTIVE'">REACTIVE</td>
+ <td *ngIf="rescalesConfig['schedulerExecutionMode'] !== 'REACTIVE'"></td>
+ </tr>
+ <tr>
+ <td>Submission Resource Wait Timeout</td>
+ <td>
+ {{ rescalesConfig['submissionResourceWaitTimeoutInMillis'] | humanizeDuration }}
+ </td>
+ </tr>
+ <tr>
+ <td>Submission ResourceStabilization Timeout</td>
+ <td>
+ {{
+ rescalesConfig['submissionResourceStabilizationTimeoutInMillis'] | humanizeDuration
+ }}
+ </td>
+ </tr>
+ <tr>
+ <td>Slot Idle Timeout</td>
+ <td>{{ rescalesConfig['slotIdleTimeoutInMillis'] | humanizeDuration }}</td>
+ </tr>
+ <tr>
+ <td>Executing Cooldown Timeout</td>
+ <td>{{ rescalesConfig['executingCooldownTimeoutInMillis'] | humanizeDuration }}</td>
+ </tr>
+ <tr>
+ <td>Executing Resource Stabilization Timeout</td>
+ <td>
+ {{
+ rescalesConfig['executingResourceStabilizationTimeoutInMillis'] | humanizeDuration
+ }}
+ </td>
+ </tr>
+ <tr>
+ <td>Maximum Delay For Triggering Rescale</td>
+ <td>
+ {{ rescalesConfig['maximumDelayForTriggeringRescaleInMillis'] | humanizeDuration }}
+ </td>
+ </tr>
+ <tr>
+ <td>Rescale On Failed Checkpoint Count</td>
+ <td>{{ rescalesConfig['rescaleOnFailedCheckpointCount'] }}</td>
+ </tr>
+ <tr>
+ <td>History Max</td>
+ <td *ngIf="rescalesConfig['rescaleHistoryMax'] === -1"></td>
+ <td *ngIf="rescalesConfig['rescaleHistoryMax'] !== -1">
+ {{ rescalesConfig['rescaleHistoryMax'] }}
Review Comment:
<img width="892" height="373" alt="image" src="https://github.com/user-attachments/assets/2e4590dc-aec5-4b68-a73d-293316c50c6d" />
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2991859647
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
Hi, @RocMarshal
You're right that currently we only use job ID, type, and scheduler type from the jobDetail. However, I used JobDetailCorrect because:
1. JobLocalService.jobDetailChanges() returns Observable<JobDetailCorrect>, so using JobDetail would cause a type mismatch
2. The job-checkpoints.component.ts follows the same pattern for consistency
3. The jobDetail here serves as job metadata (scheduler, type, etc.), while future rescale-specific details would come from RescalesConfig
Would you prefer changing JobLocalService to return JobDetail instead, or keeping the current approach for consistency with other components?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2988084323
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
<img width="1762" height="200" alt="Image" src="https://github.com/user-attachments/assets/77008ef6-cbcb-4eba-a6fc-afee78cf09a8" />
<img width="1614" height="471" alt="Image" src="https://github.com/user-attachments/assets/8107456f-3617-487c-96db-b47bf7a7f42e" />
I followed the existing pattern from `job-checkpoints.component.ts`, which uses `JobDetailCorrect` for its `jobDetail` property. Since `JobDetailCorrect` extends `JobDetail`, the variable naming appears to follow the base type name for consistency across components.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2988173861
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointIndex == -1) {
this.listOfNavigation.splice(this.checkpointIndexOfNavigation, 0, {
path: 'checkpoints',
title: 'Checkpoints'
});
- } else if (data.plan.type == 'BATCH' && index > -1) {
- this.listOfNavigation.splice(index, 1);
+ } else if (data.plan.type == 'BATCH' && checkpointIndex > -1) {
+ this.listOfNavigation.splice(checkpointIndex, 1);
+ }
Review Comment:
@och5351 It should be sufficient to use a separate commit with the [hotfix] prefix here, since this is just a minor variable naming issue, right?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2988130116
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointIndex == -1) {
this.listOfNavigation.splice(this.checkpointIndexOfNavigation, 0, {
path: 'checkpoints',
title: 'Checkpoints'
});
- } else if (data.plan.type == 'BATCH' && index > -1) {
- this.listOfNavigation.splice(index, 1);
+ } else if (data.plan.type == 'BATCH' && checkpointIndex > -1) {
+ this.listOfNavigation.splice(checkpointIndex, 1);
+ }
Review Comment:
I wasn't sure how to split the commit message appropriately, so I created a sub-issue [[FLINK-39325](https://issues.apache.org/jira/browse/FLINK-39325)] under [[FLIP-487](https://issues.apache.org/jira/browse/FLINK-22258)] for the rescales tab logic and committed it separately with the new ticket number.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2987480075
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointIndex == -1) {
this.listOfNavigation.splice(this.checkpointIndexOfNavigation, 0, {
path: 'checkpoints',
title: 'Checkpoints'
});
- } else if (data.plan.type == 'BATCH' && index > -1) {
- this.listOfNavigation.splice(index, 1);
+ } else if (data.plan.type == 'BATCH' && checkpointIndex > -1) {
+ this.listOfNavigation.splice(checkpointIndex, 1);
+ }
Review Comment:
The change could be committed as a alone commit.
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointIndex == -1) {
this.listOfNavigation.splice(this.checkpointIndexOfNavigation, 0, {
path: 'checkpoints',
title: 'Checkpoints'
});
- } else if (data.plan.type == 'BATCH' && index > -1) {
- this.listOfNavigation.splice(index, 1);
+ } else if (data.plan.type == 'BATCH' && checkpointIndex > -1) {
+ this.listOfNavigation.splice(checkpointIndex, 1);
+ }
+
+ const rescalesIndex = this.rescalesIndexOfNav();
Review Comment:
rescalesIndex-> rescalesNavIndex
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
Review Comment:
checkpointIndex -> checkpointNavIndex
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
Could the `JobDetailCorrect` be `JobDetail`?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2992325528
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.html:
##########
@@ -0,0 +1,106 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<nz-tabs
+ *ngIf="rescalesConfig"
+ [nzSize]="'small'"
+ [nzAnimated]="{ inkBar: true, tabPane: false }"
+ [nzTabBarExtraContent]="extraTemplate"
+>
+ <nz-tab nzTitle="Configuration">
+ <nz-table
+ class="no-border small"
+ [nzData]="rescalesConfig ? [''] : []"
+ [nzSize]="'small'"
+ [nzFrontPagination]="false"
+ [nzShowPagination]="false"
+ >
+ <thead>
+ <tr>
+ <th><strong>Option</strong></th>
+ <th><strong>Value</strong></th>
+ </tr>
+ </thead>
+ <tbody>
+ <ng-container *ngIf="rescalesConfig">
+ <tr>
+ <td>Scheduler Execution Mode</td>
+ <td *ngIf="rescalesConfig['schedulerExecutionMode'] === 'REACTIVE'">REACTIVE</td>
+ <td *ngIf="rescalesConfig['schedulerExecutionMode'] !== 'REACTIVE'"></td>
+ </tr>
+ <tr>
+ <td>Submission Resource Wait Timeout</td>
+ <td>
+ {{ rescalesConfig['submissionResourceWaitTimeoutInMillis'] | humanizeDuration }}
+ </td>
+ </tr>
+ <tr>
+ <td>Submission ResourceStabilization Timeout</td>
+ <td>
+ {{
+ rescalesConfig['submissionResourceStabilizationTimeoutInMillis'] | humanizeDuration
+ }}
+ </td>
+ </tr>
+ <tr>
+ <td>Slot Idle Timeout</td>
+ <td>{{ rescalesConfig['slotIdleTimeoutInMillis'] | humanizeDuration }}</td>
+ </tr>
+ <tr>
+ <td>Executing Cooldown Timeout</td>
+ <td>{{ rescalesConfig['executingCooldownTimeoutInMillis'] | humanizeDuration }}</td>
+ </tr>
+ <tr>
+ <td>Executing Resource Stabilization Timeout</td>
+ <td>
+ {{
+ rescalesConfig['executingResourceStabilizationTimeoutInMillis'] | humanizeDuration
+ }}
+ </td>
+ </tr>
+ <tr>
+ <td>Maximum Delay For Triggering Rescale</td>
+ <td>
+ {{ rescalesConfig['maximumDelayForTriggeringRescaleInMillis'] | humanizeDuration }}
+ </td>
+ </tr>
+ <tr>
+ <td>Rescale On Failed Checkpoint Count</td>
+ <td>{{ rescalesConfig['rescaleOnFailedCheckpointCount'] }}</td>
+ </tr>
+ <tr>
+ <td>History Max</td>
+ <td *ngIf="rescalesConfig['rescaleHistoryMax'] === -1"></td>
+ <td *ngIf="rescalesConfig['rescaleHistoryMax'] !== -1">
+ {{ rescalesConfig['rescaleHistoryMax'] }}
Review Comment:
It would be better to show the raw value from the response~
Because there will be a default value for the `rescaleHistoryMax`.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2988173861
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointIndex == -1) {
this.listOfNavigation.splice(this.checkpointIndexOfNavigation, 0, {
path: 'checkpoints',
title: 'Checkpoints'
});
- } else if (data.plan.type == 'BATCH' && index > -1) {
- this.listOfNavigation.splice(index, 1);
+ } else if (data.plan.type == 'BATCH' && checkpointIndex > -1) {
+ this.listOfNavigation.splice(checkpointIndex, 1);
+ }
Review Comment:
@och5351 It should be sufficient to use a separate commit with the [hotfix] prefix here, since this is just a minor variable naming issue, right?
BTW, the change of the hotfix commit should contain the `checkpointIndex->checkpointNavIndex` related naming only.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2992234948
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
Thanks @och5351 for the clarification.
I have a try on `JobDetailCorrect -> JobDetail`, It worked.
If the code logic does not rely on the extensions made to the plan property in JobDetailCorrect(i.e., it does not use plan.streamNodes, plan.streamLinks, or plan.nodesas NodesItemCorrect[]), then this usage is type-safe and appropriate.
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointNavIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointNavIndex == -1) {
Review Comment:
I apologize for the lack of clarity in my previous message.
What I meant is that the current changes are primarily aimed at adding the rescale navigation button and the rescales/configuration subpage.
However, it is now apparent that this also includes renaming checkpoint-related variables.
I prefer that each patch has changes that are as single-purpose or have a single responsibility as possible.
If you also prefer this approach, we should split the renaming of checkpoint-related variables into a separate hotfix. The other changes can remain in the commit for FLINK-38901.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2992464944
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
Thank you @RocMarshal!
You're absolutely right. I tested the JobDetailCorrect → JobDetail change and it works correctly.
I really appreciate your code analysis - it helped me understand the type hierarchy better and I learned a lot from your insights.
I've made the changes and rebased the commits. Could you please take another look?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2988189728
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
Hi, @och5351 If I understand correctly, this class is used here only to obtain information such as the job ID, job type, and scheduler type.
However, JobDetailCorrect provides a much broader range of information than this scope. In addition, when it comes to displaying the detailed information for each rescale in the future, reusing JobDetailCorrect does not seem to be an appropriate choice.
Please let me know that's your opinon.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2991859647
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
Hi, @RocMarshal
You're right that currently we only use job ID, type, and scheduler type from the jobDetail. However, I used JobDetailCorrect because:
1. [1]JobLocalService.jobDetailChanges() returns Observable<JobDetailCorrect>, so using JobDetail would cause a type mismatch
2. The job-checkpoints.component.ts follows the same pattern for consistency
3. The jobDetail here serves as job metadata (scheduler, type, etc.), while future rescale-specific details would come from RescalesConfig
Would you prefer changing JobLocalService to return JobDetail instead, or keeping the current approach for consistency with other components?
[1] flink-runtime-web/web-dashboard/src/app/pages/job/job-local.service.ts
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2992234948
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
Thanks @och5351 for the clarification.
I have a try on `JobDetailCorrect -> JobDetail`, It worked.
If the code logic does not rely on the extensions made to the plan property in JobDetailCorrect(i.e., it does not use plan.streamNodes, plan.streamLinks, or plan.nodesas NodesItemCorrect[]), then this usage is type-safe and appropriate.
Pls correct me if wrong.
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointNavIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointNavIndex == -1) {
Review Comment:
Sorry for the lack of clarity in my previous message.
What I meant is that the current changes are primarily aimed at adding the rescale navigation button and the rescales/configuration subpage.
However, it is now apparent that this also includes renaming checkpoint-related variables.
I prefer that each patch has changes that are as single-purpose or have a single responsibility as possible.
If you also prefer this approach, we should split the renaming of checkpoint-related variables into a separate hotfix. The other changes can remain in the commit for FLINK-38901.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2987815680
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointIndex == -1) {
this.listOfNavigation.splice(this.checkpointIndexOfNavigation, 0, {
path: 'checkpoints',
title: 'Checkpoints'
});
- } else if (data.plan.type == 'BATCH' && index > -1) {
- this.listOfNavigation.splice(index, 1);
+ } else if (data.plan.type == 'BATCH' && checkpointIndex > -1) {
+ this.listOfNavigation.splice(checkpointIndex, 1);
+ }
Review Comment:
I agree with you on that.
I've created a new ticket as a subtask of FLINK-22258:
https://issues.apache.org/jira/browse/FLINK-39325
I'll request your review again when I branch off this PR.
Thank you!
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2992234948
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.ts:
##########
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { NgIf } from '@angular/common';
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
+import { forkJoin, of, Subject } from 'rxjs';
+import { catchError, distinctUntilChanged, switchMap, takeUntil } from 'rxjs/operators';
+
+import { HumanizeDurationPipe } from '@flink-runtime-web/components/humanize-duration.pipe';
+import { RescalesConfig, JobDetailCorrect } from '@flink-runtime-web/interfaces';
+import { JobService } from '@flink-runtime-web/services';
+import { NzButtonModule } from 'ng-zorro-antd/button';
+import { NzCollapseModule } from 'ng-zorro-antd/collapse';
+import { NzDividerModule } from 'ng-zorro-antd/divider';
+import { NzEmptyModule } from 'ng-zorro-antd/empty';
+import { NzIconModule } from 'ng-zorro-antd/icon';
+import { NzTableModule } from 'ng-zorro-antd/table';
+import { NzTabsModule } from 'ng-zorro-antd/tabs';
+import { NzTooltipModule } from 'ng-zorro-antd/tooltip';
+
+import { JobLocalService } from '../job-local.service';
+
+@Component({
+ selector: 'flink-job-rescales',
+ templateUrl: './job-rescales.component.html',
+ styleUrls: ['./job-rescales.component.less'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ imports: [
+ NgIf,
+ NzTabsModule,
+ NzDividerModule,
+ HumanizeDurationPipe,
+ NzTableModule,
+ NzIconModule,
+ NzButtonModule,
+ NzEmptyModule,
+ NzCollapseModule,
+ NzTooltipModule
+ ]
+})
+export class JobRescalesComponent implements OnInit, OnDestroy {
+ disabledInterval = 0x7fffffffffffffff;
+
+ public rescalesConfig?: RescalesConfig;
+ public jobDetail: JobDetailCorrect;
Review Comment:
Thanks @och5351 for the clarification.
I had a try on `JobDetailCorrect -> JobDetail`, It worked.
If the code logic does not rely on the extensions made to the plan property in JobDetailCorrect(i.e., it does not use plan.streamNodes, plan.streamLinks, or plan.nodesas NodesItemCorrect[]), then this usage is type-safe and appropriate.
Pls correct me if wrong.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2991798625
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointIndex == -1) {
this.listOfNavigation.splice(this.checkpointIndexOfNavigation, 0, {
path: 'checkpoints',
title: 'Checkpoints'
});
- } else if (data.plan.type == 'BATCH' && index > -1) {
- this.listOfNavigation.splice(index, 1);
+ } else if (data.plan.type == 'BATCH' && checkpointIndex > -1) {
+ this.listOfNavigation.splice(checkpointIndex, 1);
+ }
Review Comment:
Hi, @RocMarshal !
Thank you for your review.
I have applied the fix for`[hotfix] Dynamically show/hide rescales tab`.
Could you please take a look and review it again?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2992469661
##########
flink-runtime-web/web-dashboard/src/app/pages/job/rescales/job-rescales.component.html:
##########
@@ -0,0 +1,106 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+<nz-tabs
+ *ngIf="rescalesConfig"
+ [nzSize]="'small'"
+ [nzAnimated]="{ inkBar: true, tabPane: false }"
+ [nzTabBarExtraContent]="extraTemplate"
+>
+ <nz-tab nzTitle="Configuration">
+ <nz-table
+ class="no-border small"
+ [nzData]="rescalesConfig ? [''] : []"
+ [nzSize]="'small'"
+ [nzFrontPagination]="false"
+ [nzShowPagination]="false"
+ >
+ <thead>
+ <tr>
+ <th><strong>Option</strong></th>
+ <th><strong>Value</strong></th>
+ </tr>
+ </thead>
+ <tbody>
+ <ng-container *ngIf="rescalesConfig">
+ <tr>
+ <td>Scheduler Execution Mode</td>
+ <td *ngIf="rescalesConfig['schedulerExecutionMode'] === 'REACTIVE'">REACTIVE</td>
+ <td *ngIf="rescalesConfig['schedulerExecutionMode'] !== 'REACTIVE'"></td>
+ </tr>
+ <tr>
+ <td>Submission Resource Wait Timeout</td>
+ <td>
+ {{ rescalesConfig['submissionResourceWaitTimeoutInMillis'] | humanizeDuration }}
+ </td>
+ </tr>
+ <tr>
+ <td>Submission ResourceStabilization Timeout</td>
+ <td>
+ {{
+ rescalesConfig['submissionResourceStabilizationTimeoutInMillis'] | humanizeDuration
+ }}
+ </td>
+ </tr>
+ <tr>
+ <td>Slot Idle Timeout</td>
+ <td>{{ rescalesConfig['slotIdleTimeoutInMillis'] | humanizeDuration }}</td>
+ </tr>
+ <tr>
+ <td>Executing Cooldown Timeout</td>
+ <td>{{ rescalesConfig['executingCooldownTimeoutInMillis'] | humanizeDuration }}</td>
+ </tr>
+ <tr>
+ <td>Executing Resource Stabilization Timeout</td>
+ <td>
+ {{
+ rescalesConfig['executingResourceStabilizationTimeoutInMillis'] | humanizeDuration
+ }}
+ </td>
+ </tr>
+ <tr>
+ <td>Maximum Delay For Triggering Rescale</td>
+ <td>
+ {{ rescalesConfig['maximumDelayForTriggeringRescaleInMillis'] | humanizeDuration }}
+ </td>
+ </tr>
+ <tr>
+ <td>Rescale On Failed Checkpoint Count</td>
+ <td>{{ rescalesConfig['rescaleOnFailedCheckpointCount'] }}</td>
+ </tr>
+ <tr>
+ <td>History Max</td>
+ <td *ngIf="rescalesConfig['rescaleHistoryMax'] === -1"></td>
+ <td *ngIf="rescalesConfig['rescaleHistoryMax'] !== -1">
+ {{ rescalesConfig['rescaleHistoryMax'] }}
Review Comment:
Thanks, I've applied this change in the last commit.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #27826:
URL: https://github.com/apache/flink/pull/27826#issuecomment-4125542293
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "b87d132d475f2ec275c873395dbf590885f5f7df",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "b87d132d475f2ec275c873395dbf590885f5f7df",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* b87d132d475f2ec275c873395dbf590885f5f7df UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run azure` re-run the last Azure build
</details>
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2987815680
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointIndex == -1) {
this.listOfNavigation.splice(this.checkpointIndexOfNavigation, 0, {
path: 'checkpoints',
title: 'Checkpoints'
});
- } else if (data.plan.type == 'BATCH' && index > -1) {
- this.listOfNavigation.splice(index, 1);
+ } else if (data.plan.type == 'BATCH' && checkpointIndex > -1) {
+ this.listOfNavigation.splice(checkpointIndex, 1);
+ }
Review Comment:
I agree with you on that.
I've created a new ticket as a subtask of FLINK-22258:
https://issues.apache.org/jira/browse/FLINK-39325
I'll request your review again when I branch off this PR.
Thank you!
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "och5351 (via GitHub)" <gi...@apache.org>.
och5351 commented on PR #27826:
URL: https://github.com/apache/flink/pull/27826#issuecomment-4125687307
Hi, @RocMarshal!
Would you mind taking a look at this PR if you have time?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal commented on code in PR #27826:
URL: https://github.com/apache/flink/pull/27826#discussion_r2992003791
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointNavIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointNavIndex == -1) {
Review Comment:
Sorry for the lack of clarity in my previous message.
What I meant is that the current changes are primarily aimed at adding the rescale navigation button and the rescales/configuration subpage.
However, it is now apparent that this also includes renaming checkpoint-related variables.
I prefer that each patch has changes that are as single-purpose or have a single responsibility as possible.
If you also prefer this approach, we should split the renaming of checkpoint-related variables into a separate hotfix like `[[hotfix][runtime-web] Polish the checkpoint related variables naming`.
The other changes can remain in the commit for FLINK-38901.
##########
flink-runtime-web/web-dashboard/src/app/pages/job/job-detail/status/job-status.component.ts:
##########
@@ -126,16 +128,31 @@ export class JobStatusComponent implements OnInit, OnDestroy {
return this.listOfNavigation.findIndex(item => item.path === 'checkpoints');
}
+ rescalesIndexOfNav(): number {
+ return this.listOfNavigation.findIndex(item => item.path === 'rescales');
+ }
+
private handleJobDetailChanged(data: JobDetailCorrect): void {
this.jobDetail = data;
- const index = this.checkpointIndexOfNav();
- if (data.plan.type == 'STREAMING' && index == -1) {
+ const checkpointNavIndex = this.checkpointIndexOfNav();
+ if (data.plan.type == 'STREAMING' && checkpointNavIndex == -1) {
Review Comment:
Sorry for the lack of clarity in my previous message.
What I meant is that the current changes are primarily aimed at adding the rescale navigation button and the rescales/configuration subpage.
However, it is now apparent that this also includes renaming checkpoint-related variables.
I prefer that each patch has changes that are as single-purpose or have a single responsibility as possible.
If you also prefer this approach, we should split the renaming of checkpoint-related variables into a separate hotfix like `[hotfix][runtime-web] Polish the checkpoint related variables naming`.
The other changes can remain in the commit for FLINK-38901.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-38901][runtime-web] Introduce the Rescales/Configuration sub-page for streaming jobs with the adaptive scheduler enabled [flink]
Posted by "RocMarshal (via GitHub)" <gi...@apache.org>.
RocMarshal merged PR #27826:
URL: https://github.com/apache/flink/pull/27826
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org