Skip to content

Fix class names in the codebase, cgroup, metrics and Kafka docs - #9156

Merged
reiabreu merged 1 commit into
apache:masterfrom
Zir0-93:docs-stale-class-names
Oct 3, 2026
Merged

reiabreu merged 1 commit into
apache:masterfrom
Zir0-93:docs-stale-class-names

Conversation

@Zir0-93

@Zir0-93 Zir0-93 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What is the purpose of the change

A few pages under docs/ use class names the code doesn't have anymore:

  • Structure-of-the-codebase.md links org.apache.storm.daemon.DrpcServer, which went away back in 2016 (STORM-2217). The DRPC server is org.apache.storm.daemon.drpc.DRPCServer in storm-webapp now, so the entry and link point there.
  • cgroups_in_storm.md says CGroupCPU, but the class is CGroupCpu, and so are the gauge names (CGroupCpu.user-ms, CGroupCpu.sys-ms).
  • metrics_v2.md calls the filter interface StormMetricFilter. It's StormMetricsFilter, like the code block right under it shows.
  • storm-kafka-client.md lists TridentStateFactory and TridentKafkaUpdater in org.apache.storm.kafka.trident. That package has TridentKafkaStateFactory and TridentKafkaStateUpdater instead. TridentState on the same line is really TridentKafkaState, so I fixed that one too.

How was the change tested

Docs only, didn't build the site. I checked each new name against the source on master.

Found these with Striff, a tool I'm working on that checks docs against the code (storm's report if you're curious).

The docs name six classes under names the code does not have:

- Structure-of-the-codebase.md links org.apache.storm.daemon.DrpcServer,
  removed in ea44062 (STORM-2217); the DRPC server is
  org.apache.storm.daemon.drpc.DRPCServer in storm-webapp.
- cgroups_in_storm.md calls the CPU metric CGroupCPU; the class is
  org.apache.storm.metrics2.cgroup.CGroupCpu and it registers
  CGroupCpu.user-ms and CGroupCpu.sys-ms.
- metrics_v2.md names the filter interface StormMetricFilter; it is
  StormMetricsFilter, as the code block below that sentence shows.
- storm-kafka-client.md names TridentState, TridentStateFactory and
  TridentKafkaUpdater in org.apache.storm.kafka.trident; the classes are
  TridentKafkaState, TridentKafkaStateFactory and
  TridentKafkaStateUpdater.
@reiabreu reiabreu added this to the 3.2.0 milestone Oct 3, 2026
@reiabreu reiabreu added the documentation Improvements or additions to documentation label Oct 3, 2026
@reiabreu

reiabreu commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for this PR!
One small request, non-blocking: could you drop the UTM tracking parameters from the Striff link in the description (?utm_source=github&utm_medium=pull_request&utm_campaign=doc-fix…)? A plain link is fine if it's useful context, but the campaign-tagged URL reads as promotional for an ASF PR. Thanks for catching these.

@reiabreu
reiabreu merged commit 8453c7a into apache:master Oct 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants