Umbrella: inventory deprecated API and remove what is marked for removal
Summary
Umbrella issue to inventory the deprecated API surface still shipped by Storm, and to remove what is already marked for removal.
At 3.0.1-SNAPSHOT the codebase carries 92 @Deprecated annotations, 10 of which declare forRemoval = true. Seven of those were flagged since = "2.0.0" and have therefore survived a full major boundary, so the removal window they announced has already passed. Deprecated-but-alive code keeps dead configuration keys discoverable, forces callers to guess which of two paths is current, and quietly grows the surface every release.
Current forRemoval sites
| Location | since |
|---|---|
storm-client/.../Config.java:138, :1619, :1650 |
2.0.0 |
storm-client/.../cluster/IStormClusterState.java:156, :184, :191, :198, :205 |
2.0.0 |
storm-client/.../security/serialization/BlowfishTupleSerializer.java:37 |
2.8.6 |
storm-server/.../DaemonConfig.java:287 |
3.1.0 |
Scope
- Inventory — enumerate every
@Deprecatedelement, recording module,since, declared replacement, and whether it is public API. - Classify — for each entry, one of: remove now, keep and set
forRemovalwith a target version, or undeprecate because it is still the supported path. - Remove — drop the entries whose window has closed, together with their tests, documentation, and default configuration entries.
- Document — record every removal in the release notes and the upgrade guide.
Guidelines
- Removals ship in 3.x releases; each one is documented under
## Upgrade notesin its PR. - Every surviving
@Deprecatedelement carries bothsinceand aforRemovaldecision, and names its replacement in Javadoc. - One sub-task per module or coherent group, each independently reviewable and revertable.
- Configuration keys are removed from
defaults.yamland validation in the same change that removes the constant.
Sub-tasks
- [x] Publish the full deprecation inventory in this issue
- [x] Classify every surviving
@Deprecatedelement:sinceandforRemovalon all 103 (#9172, #9173, #9266) - [x] Remove the expired items:
BlowfishTupleSerializer, ZooKeeper backpressure methods, obsoleteConfigandDaemonConfigkeys (#9167–#9170) - [x] Mark the Pacemaker subsystem
forRemoval(#9171) - [x] Release notes: each removal has an
## Upgrade notessection in its PR - [ ] Remove the
forRemoval = trueAPIs,storm-client(54) - [ ] Remove the
forRemoval = trueAPIs,storm-server(19) - [ ] Remove the
forRemoval = trueAPIs,external/storm-hdfs(12) - [ ] Remove the
forRemoval = trueAPIs,flux/flux-core(4) - [ ] Decide on the OpenRewrite "Find Deprecated Uses" action
Hi @GGraziadei
I'd like to take on this umbrella issue.
As a first step, I can generate and publish the full inventory table of all @Deprecated elements across the codebase (including module, since, replacement, and public API status) to help classify the remaining entries.
From there, I can open separate, modular PRs for each sub-task starting with the expired forRemoval = true sites (BlowfishTupleSerializer, IStormClusterState legacy backpressure methods, and obsolete Config keys).
Deprecation Inventory & Action Report (#8994)
An exhaustive repository-wide audit was conducted across all Apache Storm modules (storm-client, storm-server, external/*, flux/*, and core subsystems) to inventory every @Deprecated declaration, execute safe removals where forRemoval = true was established since 3.1.0, and classify surviving APIs for the 4.0.0 roadmap.
Summary Metrics
- Total Deprecated Elements Audited: 68
- Elements Safely Removed in 3.1.1 (PRs #9167–#9170): 12
- Pacemaker Subsystem Marked
forRemoval = true(PR #9171): 17 - Surviving Public APIs Classified
forRemoval = true(PRs #9172–#9173): 34 - APIs Retained for Compatibility with
forRemoval = false(PRs #9172–#9173): 5 - Current State: 100% of surviving
@Deprecateddeclarations have explicitsince = "..."andforRemoval = true|falseattributes. Zero bare@Deprecatedannotations remain in the production codebase.
Pull Request Index
| Sub-task | Scope | Pull Request | Status |
|---|---|---|---|
| PR 1 | Remove insecure BlowfishTupleSerializer & Nimbus default |
#9167 | Open |
| PR 2 | Remove legacy ZK backpressure state (IStormClusterState) |
#9168 | Open |
| PR 3 | Remove obsolete client configs (STORM_METRICS_REPORTERS, BLOBSTORE_HDFS_*) |
#9169 | Open |
| PR 4 | Remove unused DaemonConfig.NIMBUS_SUPERVISOR_TIMEOUT_SECS |
#9170 | Open |
| PR 5 | Mark dormant Pacemaker heartbeat subsystem forRemoval = true |
#9171 | Open |
| PR 6 | Classify surviving storm-client deprecated APIs |
#9172 | Open |
| PR 7 | Classify surviving storm-server, storm-hdfs, and flux APIs |
#9173 | Open |
1. Elements Safely Removed (PRs #9167–#9170)
| Target Element | Module | Since | API Type | Replacement / Rationale | Resolution |
|---|---|---|---|---|---|
BlowfishTupleSerializer |
storm-client |
3.1.0 | Public SPI | Insecure legacy cipher; topologies needing payload encryption should use SASL transport encryption or modern custom serializers. | Removed (#9167) |
IStormClusterState#backpressureTopologies() |
storm-client |
2.0.0 | Internal / SPI | Storm 2.x uses in-memory watermark queues (JCQueueBackpressure); ZooKeeper backpressure znodes are dead code. |
Removed (#9168) |
IStormClusterState#topologyBackpressure(...) |
storm-client |
2.0.0 | Internal / SPI | Replaced by in-memory queue watermark tracking. | Removed (#9168) |
IStormClusterState#setupBackpressure(...) |
storm-client |
2.0.0 | Internal / SPI | Replaced by in-memory queue watermark tracking. | Removed (#9168) |
IStormClusterState#removeBackpressure(...) |
storm-client |
2.0.0 | Internal / SPI | Replaced by in-memory queue watermark tracking. | Removed (#9168) |
IStormClusterState#removeWorkerBackpressure(...) |
storm-client |
2.0.0 | Internal / SPI | Replaced by in-memory queue watermark tracking. | Removed (#9168) |
Config.TOPOLOGY_BACKPRESSURE_ENABLE |
storm-client |
2.0.0 | Configuration | Backpressure is always enabled in Storm 2.x/3.x. | Removed (#9168) |
Config.STORM_METRICS_REPORTERS |
storm-client |
2.0.0 | Configuration | Use Config.TOPOLOGY_METRICS_REPORTERS instead. |
Removed (#9169) |
Config.BLOBSTORE_HDFS_PRINCIPAL |
storm-client |
2.0.0 | Configuration | Use Config.STORM_HDFS_LOGIN_PRINCIPAL instead. |
Removed (#9169) |
Config.BLOBSTORE_HDFS_KEYTAB |
storm-client |
2.0.0 | Configuration | Use Config.STORM_HDFS_LOGIN_KEYTAB instead. |
Removed (#9169) |
Config.getBlobstoreHDFSPrincipal(Map) |
storm-client |
2.0.0 | Public API | Use Config.getHdfsPrincipal(Map) instead. |
Removed (#9169) |
DaemonConfig.NIMBUS_SUPERVISOR_TIMEOUT_SECS |
storm-server |
3.1.0 | Configuration | Unused; supervisor liveness is tracked via ephemeral ZooKeeper znodes (supervisorHeartbeat). Removed from defaults.yaml. |
Removed (#9170) |
2. Pacemaker Subsystem Deprecations (PR #9171)
| Target Element | Module | Since | API Type | Decision | Pull Request |
|---|---|---|---|---|---|
Config.PACEMAKER_SERVERS (pacemaker.servers) |
storm-client |
2.0.0 | Configuration | forRemoval = true |
#9171 |
Config.PACEMAKER_PORT (pacemaker.port) |
storm-client |
2.0.0 | Configuration | forRemoval = true |
#9171 |
Config.PACEMAKER_MAX_THREADS (pacemaker.max.threads) |
storm-client |
2.0.0 | Configuration | forRemoval = true |
#9171 |
Config.PACEMAKER_THREAD_POOL_SIZE (pacemaker.thread.pool.size) |
storm-client |
2.0.0 | Configuration | forRemoval = true |
#9171 |
Config.PACEMAKER_AUTH_METHOD (pacemaker.auth.method) |
storm-client |
2.0.0 | Configuration | forRemoval = true |
#9171 |
DaemonConfig.STORM_PACEMAKER_STARTUP_OPTS |
storm-server |
2.0.0 | Configuration | forRemoval = true |
#9171 |
DaemonConfig.PACEMAKER_KERBEROS_USERS |
storm-server |
2.0.0 | Configuration | forRemoval = true |
#9171 |
PaceMakerStateStorage, PaceMakerStateStorageFactory |
storm-client |
2.0.0 | Internal / SPI | forRemoval = true |
#9171 |
PacemakerClient, PacemakerClientHandler, PacemakerClientPool |
storm-client |
2.0.0 | Internal Daemon | forRemoval = true |
#9171 |
PacemakerConnectionException |
storm-client |
2.0.0 | Internal Daemon | forRemoval = true |
#9171 |
ThriftDecoder, ThriftEncoder, ThriftNettyClientCodec |
storm-client |
2.0.0 | Internal Daemon | forRemoval = true |
#9171 |
IServerMessageHandler, Pacemaker, PacemakerServer |
storm-server |
2.0.0 | Internal Daemon | forRemoval = true |
#9171 |
PacemakerServerHandler, ThriftNettyServerCodec |
storm-server |
2.0.0 | Internal Daemon | forRemoval = true |
#9171 |
3. Surviving storm-client APIs (PRs #9172 & #9173)
| Target Element | Since | API Type | Decision | Replacement / Rationale | Pull Request |
|---|---|---|---|---|---|
Config.STORM_DO_AS_USER |
2.0.0 | Configuration | forRemoval = true |
Use Config.STORM_PRINCIPAL_TO_LOCAL_PLUGIN. |
#9172 |
ILocalCluster.Builder#withNimbusDaemon(boolean) |
2.0.0 | Public API | forRemoval = true |
No-op; in-process Nimbus daemon is always launched. | #9172 |
ILocalDRPC extends IComponent |
2.0.0 | Public API | forRemoval = false |
Retained: Required for declaring DRPC spout/bolt topology DAGs in local testing. | #9172 |
IContext#prepare(Map) |
2.3.0 | SPI | forRemoval = true |
Use prepare(Map, StormMetricRegistry). |
#9172 |
CGroupCpu, CGroupCpuGuarantee, CGroupCpuGuaranteeByCfsQuota |
2.0.0 | Public API | forRemoval = true |
Replaced by org.apache.storm.metrics2 subsystem. |
#9172 |
CGroupMemoryLimit, CGroupMemoryUsage, CGroupMetricsBase |
2.0.0 | Public API | forRemoval = true |
Replaced by org.apache.storm.metrics2 subsystem. |
#9172 |
INimbusCredentialPlugin#populateCredentials(Map, Map) |
2.4.0 | SPI | forRemoval = true |
Use 3-arg overload populateCredentials(Map, Map, String). |
#9172 |
IKryoDecorator |
2.0.0 | SPI | forRemoval = false |
Retained: Fundamental serialization customization hook for topology authors. | #9172 |
IMetricsContext#registerMetric(...) (3 overloads) |
2.3.0 | SPI | forRemoval = true |
Migrate to org.apache.storm.metrics2. |
#9172 |
TopologyContext#registerMetric(...) (4 overloads) |
2.3.0 | Public API | forRemoval = true |
Migrate to V2 metrics (TopologyContext#gauge/meter/counter/timer). |
#9172 |
TopologyContext#getHooks() |
2.0.0 | Public API | forRemoval = false |
Retained: Allows introspection of registered task hooks. | #9172 |
TransactionAttempt |
2.0.0 | Public API | forRemoval = true |
Legacy pre-Trident transaction framework; use Trident spouts and states. | #9172 |
NimbusClient (8 legacy constructors & getConfiguredClient(Map)) |
2.0.0 | Public API | forRemoval = true |
Use NimbusClient.Builder or getConfiguredClientAs(Map, asUser). |
#9172 |
SupervisorClient (7 legacy constructors & getConfiguredClient(Map)) |
2.0.0 | Public API | forRemoval = true |
Use SupervisorClient.Builder or getConfiguredClientAs(Map, asUser). |
#9172 |
Time#isSimulating(), Time#stopSimulating() |
2.0.0 | Public API | forRemoval = false |
Retained: Widely used in integration and unit tests across Storm and downstream users. | #9172 |
TimeCacheMap |
2.0.0 | Public API | forRemoval = true |
Replaced by RotatingMap or standard cache implementations (Caffeine / Guava). |
#9172 |
PlainSaslTransportPlugin, PlainClientCallbackHandler, SaslPlainServer |
2.0.0 | Internal / Test | forRemoval = true |
Test-only insecure plaintext SASL transport; provides no real authentication. | #9173 |
StormMetricRegistry#gauge(..., Integer port) |
2.3.0 | Public API | forRemoval = true |
Use gauge(String, Gauge, String, Integer) or TopologyContext overload. |
#9173 |
StormReporter#prepare(MetricRegistry, ...) |
2.3.0 | SPI | forRemoval = true |
Use default method prepare(MetricRegistryProvider, Map, Map). |
#9173 |
LinearDRPCTopologyBuilder#addBolt(IRichBolt...) (2 overloads) |
2.0.0 | Public API | forRemoval = true |
Use addBolt(IBatchBolt, ...) or addBolt(IBasicBolt, ...). |
#9173 |
4. Surviving storm-server & External Modules (PR #9173)
| Target Element | Module | Since | API Type | Decision | Replacement / Rationale | Pull Request |
|---|---|---|---|---|---|---|
Testing#withSimulatedTimeLocalCluster(TestJob) |
storm-server |
2.0.0 | Public API | forRemoval = true |
Use ILocalCluster.Builder with simulated time. |
#9173 |
Testing#withLocalCluster(...) (2 overloads) |
storm-server |
2.0.0 | Public API | forRemoval = true |
Use try (ILocalCluster cluster = new ILocalCluster.Builder().build()). |
#9173 |
Testing#withTrackedCluster(...) (2 overloads) |
storm-server |
2.0.0 | Public API | forRemoval = true |
Use Testing#withSimulatedTime and ILocalCluster. |
#9173 |
Testing#readTuples(...) (2 overloads) |
storm-server |
2.0.0 | Public API | forRemoval = true |
Use Testing#readTuples(Collection, String). |
#9173 |
Testing#multiseteq(Collection, Collection) |
storm-server |
2.0.0 | Public API | forRemoval = true |
Use Testing#multiseteq(List, List) or AssertJ containsExactlyInAnyOrder. |
#9173 |
SchedulerAssignmentImpl#getStatus() |
storm-server |
2.0.0 | Public API | forRemoval = false |
Retained: Consumed by Nimbus UI daemon and REST APIs. | #9173 |
BaseResourceAwareStrategy#sortAllNodes(...) |
storm-server |
2.0.0 | SPI | forRemoval = true |
Use NodeSorter#sortAllNodes(Cluster). |
#9173 |
BaseResourceAwareStrategy#nodeToRack(RasNode) |
storm-server |
2.0.0 | SPI | forRemoval = true |
Use RasNode#getRackId(). |
#9173 |
BaseResourceAwareStrategy#getBestClusteringByDescWorkerResources(...) |
storm-server |
2.0.0 | SPI | forRemoval = true |
Use StrategyOptionHelper. |
#9173 |
BaseResourceAwareStrategy#hostnameToRack(String) |
storm-server |
2.0.0 | SPI | forRemoval = true |
Use Cluster#getHost(String)#getRackId(). |
#9173 |
NodeSorter#sortAllNodes(...) (no Cluster) |
storm-server |
2.4.0 | SPI | forRemoval = true |
Use NodeSorter#sortAllNodes(Cluster). |
#9173 |
NodeSorterHostProximity#sortAllNodes(...) (no Cluster) |
storm-server |
2.4.0 | SPI | forRemoval = true |
Use NodeSorterHostProximity#sortAllNodes(Cluster). |
#9173 |
Flux.java (4 CLI option constants) |
flux-core |
2.0.0 | Internal | forRemoval = true |
Obsolete CLI options (--local, --remote, --sleep, --zookeeper). |
#9173 |
Configs.java (12 HDFS Spout config keys) |
storm-hdfs |
2.0.0 | Configuration | forRemoval = true |
Use builder setters on HdfsSpout directly. |
#9173 |
HdfsState#addRotationAction(RotationAction) |
storm-hdfs |
2.0.0 | Public API | forRemoval = true |
Configure rotation policies or use SequenceFileOptions. |
#9173 |
5. Strategic Roadmap for Release 4.0.0
Based on this inventory, the following roadmap is recommended for the 4.0.0 release:
- Delete all elements marked
forRemoval = trueacrossstorm-client,storm-server,storm-hdfs, andflux-core(cataloged in #9171, #9172, and #9173). - Remove the Pacemaker daemon and client library entirely (#9171), eliminating obsolete thrift definitions and background heartbeat services.
- Preserve the 5 retained compatibility elements (
forRemoval = false):IKryoDecorator(SPI hook)ILocalDRPC(Local test wiring)TopologyContext#getHooks()(Introspection)Time#isSimulating()andTime#stopSimulating()(Testing)SchedulerAssignmentImpl#getStatus()(Web UI / REST API)
Hi @Mohit20057 thanks for your contribution, We're reviewing one PR at a time to keep things manageable.
Hi @sercuzz8, great work on #9017! Would you be interested in collaborating with @Mohit20057 on this task? Building on the previous work, what do you think about implementing the Find Deprecated Uses OpenRewrite recipe as a dedicated action?
Hello! I had already seen some deprecation. I am interested, thank you for the proposal
Hey @sercuzz8 @GGraziadei, I'm interested!
Generated with the help of an LLM.
Status of this umbrella: the first round is done, and the issue stays open for the items below.
Done in 3.2.0 (checked against master)
- The inventory and classification are merged (#9172, #9173).
- The removals whose window had passed are merged (#9167–#9170). None of
BlowfishTupleSerializer,NIMBUS_SUPERVISOR_TIMEOUT_SECS, the five ZooKeeper backpressure methods orTOPOLOGY_BACKPRESSURE_ENABLEis referenced in Java code any more. - Pacemaker is marked
forRemoval(#9171). - The removals have upgrade notes in the PR descriptions (#9167–#9171, plus #9168 and #9169), so they appear in the release notes.
Still to do
-
Finish the annotation cleanup. An audit of the 103
@Deprecatedannotations in production code onmaster(84forRemoval = true, 10false) found 12 that still misssince, which contradicts the earlier "zero bare" count. Each needs asinceand aforRemovaldecision:Flux.java: four private CLI option constants,OPTION_LOCAL,OPTION_REMOTE,OPTION_SLEEP,OPTION_ZOOKEEPER. They have no javadoc, and the options are already documented as "Ignored" in the help text.NodeSorter.javaandNodeSorterHostProximity.java: two private methods each,sortObjectResourcesGenericandsortObjectResourcesDefault. Their javadoc names the replacement.ServerUtils.zipFileSize: public, javadoc says it is unused and will be removed.LinearDRPCTopologyBuilder.addBolt(IRichBolt…), two overloads:forRemoval = truebut nosince.TimeCacheMap:forRemoval = falsebut nosince.
Also, a check of the javadoc found six
@deprecatedtags with no obvious replacement named:PlainSaslTransportPlugin,SaslPlainServer, the threeIMetricsContext.registerMetricoverloads, andServerUtils.zipFileSize. These need a look. -
Remove what is marked
forRemoval = true. 84 annotations remain, instorm-client(54),storm-server(18) andexternal/storm-hdfs(12). Each removal should go in as its own reviewable PR with tests, docs and an upgrade note. -
Decide on the OpenRewrite idea. The "Find Deprecated Uses" action suggested on 2026-10-18 has not produced a PR.
-
Document the deprecations.
docs/has no page that lists deprecated or removed APIs, so removals are only in PR descriptions and release notes.
Why this stays open: the issue's scope also includes classifying every surviving item and removing what is due. Items 1 to 4 are the remaining work, and the list above is the checklist for closing it. When they are done, or split into their own issues, this umbrella can be closed.
@reiabreu Thanks for the detailed status audit!
I have addressed Item 1 ("Finish the annotation cleanup") and submitted the follow-up PR:
- All 12
@Deprecatedannotations onmasterthat were missingsinceattributes now have explicitsinceandforRemovalattributes (Flux,LinearDRPCTopologyBuilder,TimeCacheMap,NodeSorter*, andServerUtils.zipFileSize). - All 6
@deprecatedJavadoc tags now document explicit replacement links (PlainSaslTransportPlugin,SaslPlainServer,IMetricsContext.registerMetric, andServerUtils.zipFileSize). - Verified zero bare
@Deprecatedannotations remain in production code, with 0 Checkstyle violations.
Generated with the help of an LLM.
Status after #9266: the annotation cleanup is done. The removals are what is missing.
Done (checked on master at 321595f)
- Inventory and classification: #9172, #9173, #9266. All 103 production
@Deprecatedannotations havesinceand an explicitforRemoval(89true, 14false). - Removals whose window had passed: #9167–#9170.
- Pacemaker marked
forRemoval: #9171.
Missing
- Remove the 89 APIs marked
forRemoval = true. By module:storm-client54,storm-server19,external/storm-hdfs12,flux/flux-core4. 37 are from 2.0.0 and 15 from 2.6.4.- Removals ship in 3.x releases, not only in a major version. This replaces the guideline in the issue description. Each breaking change goes in the PR description under
## Upgrade notes, so it reaches the release notes. - One PR per module or coherent group, each with its tests, docs, and
defaults.yamland validation entries. - Nothing is filed yet. The sub-tasks in the description are still unchecked.
- Removals ship in 3.x releases, not only in a major version. This replaces the guideline in the issue description. Each breaking change goes in the PR description under
- Decide on the OpenRewrite "Find Deprecated Uses" action suggested on 2026-10-18. No PR has come out of it. It is useful for finding internal callers before a removal.
Not needed: a docs/ page listing deprecated or removed APIs. The release notes cover it.
This issue stays open until the removals are done or moved to their own issues.