bzp2010 opened a new issue, #12254:
URL: https://github.com/apache/apisix/issues/12254

   ### Current Behavior
   
   The API cannot return stream route configurations or configure the stream 
route via PUT.
   
   Although we use shdict and the event broadcast system to trigger 
configuration updates on each worker and utilize meta shdict to share the 
shdict zone on the stream subsystem.
   
   However, the event channel under the http subsystem is different from that 
under stream, so the stream subsystem is not actually receiving event 
broadcasts and therefore the configuration is not refreshed.
   Configuring the stream route in the Admin API also fails to take effect, 
because the Admin API is always handled by the http subsystem. In the http 
subsystem, we don't run the config provider for the stream route, so the stream 
route is just ignored on configuration input.
   
   The root cause is that the http and stream subsystems do not share the same 
Lua VM.
   
   ### Expected Behavior
   
   The Admin API should work properly on the stream route, as it does in etcd.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Enable stream proxy support in APISIX.
   2. Submit a configuration set containing a stream route via the Admin API.
   3. Read using the get API, which has neither `stream_routes` key nor 
`stream_routes_conf_version`
   
   ### Environment
   
   - APISIX version (run `apisix version`): master
   - Operating system (run `uname -a`): N/A
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): N/A
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`): N/A
   - APISIX Dashboard version, if relevant: N/A
   - Plugin runner version, for issues related to plugin runners: N/A
   - LuaRocks version, for installation issues (run `luarocks --version`): N/A
   


-- 
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: notifications-unsubscr...@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to