membphis opened a new pull request #1835:
URL: https://github.com/apache/incubator-apisix/pull/1835


   …S and proxy
   
     the request to the new address.
   
   We have fixed this bug in `master` branch, but we can get if we run this 
test case in branch `v1.4`. 
   Add some test cases to confirm the `master` branch works fine for this case.
   
   ```
   # 1.4 version
   t/node/upstream-node-dns.t .. 7/?
   #   Failed test 'TEST 3: dns cached expired, reparse the domain in upstream 
node - grep_error_log_out (req 0)'
   #   at /usr/local/share/perl5/5.30/Test/Nginx/Socket.pm line 1088.
   # @@ -1,10 +1,14 @@
   #  call /hello
   #  dns resolver domain: test.com to 127.0.0.1
   #  proxy to 127.0.0.1:1980
   # +proxy to 127.0.0.1:1980
   #  call /hello
   #  dns resolver domain: test.com to 127.0.0.2
   # -proxy to 127.0.0.2:1980
   # -proxy to 127.0.0.2:1980
   # +proxy to 127.0.0.1:1980
   # +proxy to 127.0.0.1:1980
   # +proxy to 127.0.0.1:1980
   # +proxy to 127.0.0.1:1980
   #  call /hello
   #  dns resolver domain: test.com to 127.0.0.3
   # -proxy to 127.0.0.3:1980
   # +proxy to 127.0.0.1:1980
   # +proxy to 127.0.0.1:1980
   # Looks like you failed 1 test of 8.
   ```


----------------------------------------------------------------
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