Ben0625 commented on issue #4090: URL: https://github.com/apache/apisix/issues/4090#issuecomment-844663342
I find a new bug here: When I set 2 nodes in "upstream.nodes" attribute for 2 rules, something unexpected happens. ``` curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "uri": "/hello", "plugins": { "traffic-split": { "rules": [ { "match": [ { "vars": [ ["http_id","==","1"] ] } ], "weighted_upstreams": [ { "upstream": { "name": "upstream_A", "type": "roundrobin", "nodes": { "127.0.0.1:1980":1, "127.0.0.1:1981":1 } }, "weight": 3 } ] }, { "match": [ { "vars": [ ["http_id","==","2"] ] } ], "weighted_upstreams": [ { "upstream": { "name": "upstream_B", "type": "roundrobin", "nodes": { "127.0.0.1:1982":1, "127.0.0.1:1983":1 } }, "weight": 3 } ] } ] } }, "upstream": { "type": "roundrobin", "nodes": { "127.0.0.1:1980": 1 } } }' ``` Reproduce steps: 1. Request with id=1 for several times 2. Request with id=2 for several times Then you will see nodes of upstream_A be picked when requesting with id = 2 for some time. It looks messed up. -- 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. For queries about this service, please contact Infrastructure at: [email protected]
