panhow opened a new issue #1688:
URL: https://github.com/apache/incubator-apisix/issues/1688
### Issue description
reload apisix while apisix proxy traffics, error logs shows:
```
stack traceback:
coroutine 0:
/usr/local/apisix/lua/apisix.lua: in function 'http_access_phase'
access_by_lua(apisix.conf:68):2: in main chunk, client: 11.10.10.3,
server: , request: "GET /api/v1/healthy HTTP/1.0", host: "m.w.com"
2020/06/10 19:29:36 [error] 20161#0: *564604 lua entry thread aborted:
runtime error: /usr/local/apisix/lua/apisix.lua:338: attempt to index local
'upstream' (a nil value)
stack traceback:
coroutine 0:
/usr/local/apisix/lua/apisix.lua: in function 'http_access_phase'
access_by_lua(apisix.conf:68):2: in main chunk, client: 11.10.10.3,
server: , request: "GET /api/v1/healthy HTTP/1.0", host: "m.w.com"
```
### Environment
* apisix version (cmd: `apisix version`): 1.3
* OS: centos
### Minimal test code / Steps to reproduce the issue
```shell
curl -XPUT 127.0.0.1:9080/apisix/admin/upstreams/00000000000000000011 -XPUT
--data
'{"enable_websocket":true,"nodes":{"10.100.2.66:31652":10,"10.100.2.68:30000":10},"hash_on":"vars","type":"roundrobin"}'
curl -XPUT 127.0.0.1:9080/apisix/admin/routes -XPOST --data
'{"uri":"/testtestt","upstream_id":"00000000000000000011"}'
ab -n 1000000 -c 100 http://127.0.0.1:9080/testtestt
apisix reload
```
### What's the actual result? (including assertion message & call stack if
applicable)
### What's the expected result?
----------------------------------------------------------------
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]