Ben0625 commented on issue #4090:
URL: https://github.com/apache/apisix/issues/4090#issuecomment-844863332


   > This scenario has been covered by test cases, please see here: 
https://github.com/apache/apisix/blob/master/t/plugin/traffic-split2.t#L513-L613
   > By the way, what is your APISIX version?
   
   My APISIX version is 2.0. I modify a little bit (At Line 194) to let this 
plugin run successfully. 
   `upstream.set(ctx, upstream_key, ctx.conf_version, up_conf, matched_route)`
   This test case you mention works good for me too, but what I want to point 
out is the number of "upstream.nodes" attribute
   
   > "nodes": {
   >     "127.0.0.1:1980":1,
   >     "127.0.0.1:1981":1
   > }
   > "nodes": {
   >     "127.0.0.1:1982":1,
   >     "127.0.0.1:1983":1
   > }
   
   I set 2 nodes instead of 1 and run the Reproduce steps. Then it 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]


Reply via email to