You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "featzhang (via GitHub)" <gi...@apache.org> on 2026/02/28 16:19:11 UTC
[PR] [FLINK-39176][runtime] Add configuration support for management blocklist [flink]
featzhang opened a new pull request, #27714:
URL: https://github.com/apache/flink/pull/27714
## What is the purpose of the change
This PR adds configuration support for the Management Blocklist feature (PR-4 in the FLINK-39176 series). It enables administrators to control the node quarantine behavior through Flink's configuration system, including enabling/disabling the feature, setting default block duration, and maximum allowed duration.
This is part of the Node Health Management & Quarantine Framework (Phase 1), which provides a Resource Manager-level mechanism for manually blocking problematic nodes from receiving new slot allocations.
## Brief change log
- Add `ManagementOptions` configuration class with `blocklist.enabled`, `blocklist.default-duration`, `blocklist.max-duration`
- Add `DefaultManagementBlocklistHandler` with automatic expiration cleanup via `ScheduledExecutor`
- Add `ManagementBlocklistHandlerFactory` for configuration-based handler creation
- Add REST API endpoints: `POST/DELETE/GET /cluster/blocklist` with proper request/response bodies
- Extend `ResourceManagerGateway` with management blocklist methods
- Add comprehensive test suite (42 tests covering core functionality, edge cases, performance, and end-to-end scenarios)
- Add documentation in `docs/content/docs/ops/management_blocklist.md`
## Verifying this change
This change is verified by 42 new unit and integration tests:
```bash
mvn test -Dtest="*ManagementBlocklist*,SimpleBlocklistHandlerTest" -pl flink-runtime
```
Test coverage includes:
- Core functionality validation (add/remove/check operations)
- Edge cases (null parameters, empty strings, special characters, duplicate nodes)
- Boundary conditions (very short/long durations, large node counts)
- Concurrent operations and thread safety
- Automatic expiration and cleanup mechanisms
- ResourceManager gateway integration
- Performance benchmarks (~0.0003ms per add, ~0.0002ms per check)
## Does this pull request potentially affect one of the following parts
- Dependencies (does it add or upgrade a dependency): no
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no
- The serializers: no
- The runtime per-record code paths (performance sensitive): no
- Anything that affects deployment or recovery: no
- The (de)serialization that stored state depends on: no
## Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? docs + JavaDocs
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3986051193
@flinkbot run azure
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3985883491
@flinkbot run azure
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3985910615
@flinkbot run azure
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3985861778
@flinkbot run azure
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-4950326324
This PR has been closed since it has not had any activity in 120 days.
If you feel like this was a mistake, or you would like to continue working on it,
please feel free to re-open the PR and ask for a review.
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3985801044
@flinkbot run azure
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3986600574
/test
--
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-39176][runtime] Add configuration support for management blocklist [flink]
Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3977377726
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "9be4aebe1f1ca8561008d340b98436af1aad5b95",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9be4aebe1f1ca8561008d340b98436af1aad5b95",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 9be4aebe1f1ca8561008d340b98436af1aad5b95 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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3985415722
@flinkbot run azure
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3985838945
@flinkbot run ci
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3986611352
@flinkbot run azure
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "featzhang (via GitHub)" <gi...@apache.org>.
featzhang commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-3994835966
@flinkbot run azure
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27714:
URL: https://github.com/apache/flink/pull/27714#issuecomment-4678444688
This PR is being marked as stale since it has not had any activity in the last 90 days.
If you would like to keep this PR alive, please leave a comment asking for a review.
If the PR has merge conflicts, update it with the latest from the base branch.
If you are having difficulty finding a reviewer, please reach out to the
community, contact details can be found here: https://flink.apache.org/what-is-flink/community/
If this PR is no longer valid or desired, please feel free to close it.
If no activity occurs in the next 30 days, it will be automatically closed.
--
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-39176][runtime] Add configuration support for management node quarantine [flink]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #27714: [FLINK-39176][runtime] Add configuration support for management node quarantine
URL: https://github.com/apache/flink/pull/27714
--
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