cc4dogman
cc4dogman
* **Node Version**: * **Midway Version(Decorator/Core)**: * **Component Name/Version**: * **Platform**: * **Mini Showcase Repository**: 阿里云FC环境如下 Node Version:12 Midway:3.0.10 自带demo中目前遇到2个问题 1.运行依赖包 "@midwayjs/serverless-fc-starter": "^3.0.2", 这个依赖放到了开发包导致启动函数报 { "errorMessage": "Cannot find module '@midwayjs/serverless-fc-starter'\nRequire...
2018/07/19 14:34:08 sync.go:123: [INFO] + 2018/07/19 14:34:09 sync.go:73: [INFO] rdb file = 4920652048 2018/07/19 14:34:09 utils.go:361: [PANIC] parse rdb header error [error]: verify version, invalid RDB version number 8 1...
具体异常如下: javax.management.InstanceNotFoundException: java.lang:type=MemoryPool,name=CMS Perm Gen at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:643) at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1445) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:639) at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)...
当所有节点都优雅下线后,通知过来的hosts为空,进而nacos-naming/lib/naming/host_reactor.js中去解析消息时 ` processServiceJSON(json) { const data = JSON.parse(json); const serviceInfo = new ServiceInfo(data); const oldService = this._serviceInfoMap.get(serviceInfo.getKey()); if (!serviceInfo.isValid) { return oldService; } ... ` isValid为false,导致不触发通知,建议可以触发一次事件,hosts为空,避免程序需要轮询来解决