-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BusinessController creation order issue #296
Comments
Please give us complete config and log messages. |
MyHTTPPipelineConfigname: gateway-controller-pipeline
kind: HTTPPipeline
flow:
- filter: request-adaptor
- filter: proxy
filters:
- name: request-adaptor
kind: RequestAdaptor
path:
trimPrefix: "/gateway-controller"
- name: proxy
kind: Proxy
mainPool:
serviceName: base/gateway-controller
serviceRegistry: etcd-service-registry MyServiceRegistrykind: EtcdServiceRegistry
name: etcd-service-registry
endpoints: ['127.0.0.1:2379']
prefix: "/services/"
cacheTimeout: 5s MyLog
|
Thx. And won't this log appear again after
|
@xxx7xxxx yes,If |
Yes, the unordered feature of the map will cause it randomly. We will figure it out. |
@xxx7xxxx thank you |
Hi @brzyangg I'd like to help on this issue. But I cannot really reproduce the bug after several tries. Can you paste your full config from the output of |
@nevill Hi, This is my object list and log. MyObjectList- cacheTimeout: 5s
endpoints:
- 127.0.0.1:2379
kind: EtcdServiceRegistry
name: etcd-service-registry
prefix: /services/
- filters:
- kind: RequestAdaptor
name: request-adaptor
path:
trimPrefix: /gateway-controller
- kind: Proxy
mainPool:
loadBalance:
policy: ipalfishConcurrent
serviceName: base/gateway-controller
serviceRegistry: etcd-service-registry
name: proxy
flow:
- filter: request-adaptor
jumpIf: {}
- filter: proxy
jumpIf: {}
kind: HTTPPipeline
name: gateway-controller-pipeline
- cacheSize: 0
certBase64: ""
certs: {}
globalFilter: globalFilters
http3: false
https: false
keepAlive: true
keepAliveTimeout: 60s
keyBase64: ""
keys: {}
kind: HTTPServer
maxConnections: 10240
name: server-palfish
port: 10081
rules:
- host: ""
hostRegexp: test-(.*).palfish.com
paths:
- backend: gateway-controller-pipeline
headers: []
pathRegexp: /gateway-controller(.*)
rewriteTarget: ""
tracing: null
xForwardedFor: false MyLog
|
@brzyangg I'm not sure if it's relevant, but your config looks really weird.
|
@nevill Sorry i forgot to explain. We developed easegress.
I can delete these weird configurations and run it again |
@nevill Hi, I have completely removed those weird configurations and the error still appears. MyLog
MyObjectList- cacheTimeout: 5s
endpoints:
- 127.0.0.1:2379
kind: EtcdServiceRegistry
name: etcd-service-registry
prefix: /services/
- filters:
- kind: RequestAdaptor
name: request-adaptor
path:
trimPrefix: /gateway-controller
- kind: Proxy
mainPool:
loadBalance:
policy: roundRobin
serviceName: base/gateway-controller
serviceRegistry: etcd-service-registry
name: proxy
flow:
- filter: request-adaptor
jumpIf: {}
- filter: proxy
jumpIf: {}
kind: HTTPPipeline
name: gateway-controller-pipeline
- cacheSize: 0
certBase64: ""
certs: {}
http3: false
https: false
keepAlive: true
keepAliveTimeout: 60s
keyBase64: ""
keys: {}
kind: HTTPServer
maxConnections: 10240
name: server-palfish
port: 10081
rules:
- host: ""
hostRegexp: sea-(.*).test.com
paths:
- backend: gateway-controller-pipeline
headers: []
pathRegexp: /gateway-controller(.*)
rewriteTarget: ""
tracing: null
xForwardedFor: false |
I still cannot reproduce the bug, but I will dig into the source code later. Since you're developing a new feature, can you switch to the |
Finally, I can reproduce the bug. But I doubt that if this is a bug. I think it should be designed as a declarative system, like Kubernetes. Which means part of the system can be lost at any time. But the system will wait and try to recover itself later based on the Spec definition. Let's go back to |
Yes, this may not be a bug, but there is an So I want to discuss whether the |
I uses
EtcdServiceRegistry
in myHttpPipeline
.When the easegress is started, the
BussinessController
will be created in turn.If the HttpPipeline is created before the EtcdServiceRegistry, an error will be reported.
The details are as follows:
Errors are often reported during startup. Although there is no impact on the program, there is an ERROR level log, I always feel that there is something wrong.
The text was updated successfully, but these errors were encountered: