Skip to content

bug: the stream plugins should not be loaded in the http subsystem #12458

Description

@SkyeYoung

Current Behavior

In #12383 (comment), we found that the stream plugin was loaded incorrectly in the http subsystem. This is obviously incorrect behavior.

Whether the http plugin will be loaded in the stream subsystem was not found in the PR's processing flow and needs to be verified in the fix.

Expected Behavior

Only http plugins should be loaded in the http subsystem.
Only stream plugins should be loaded in the stream subsystem.

Error Logs

No response

Steps to Reproduce

  1. Use feat: decoupled prometheus exporter's calculation and output #12383 or wait for the merged code
  2. Enable Prometheus plugin in stream and http
  3. Start apisix and access the metrics API
  4. Check the error log. You should be able to find the logs we added in PR https://github.com/apache/apisix/pull/12383/files#diff-390eaff60bfa1071dd1850bce9c7689452eaa13f07bf45a927921ecf05886d1bR237 in the error log.

Environment

  • APISIX version (run apisix version): master or feat: decoupled prometheus exporter's calculation and output #12383
  • Operating system (run uname -a): ubuntu 24.10
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplugin

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions