You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2021/09/29 09:52:41 UTC

[GitHub] [incubator-shenyu] sunrui849 opened a new issue #2173: [BUG] websocket send message thread unsafe has error

sunrui849 opened a new issue #2173:
URL: https://github.com/apache/incubator-shenyu/issues/2173


   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   when i pull request ci-it test is error. i found at run admin image has error, the websocket send message is unsafe.
   
   can add lock solve this question. or who has other better method?
   
   ### Expected Behavior
   
   can see error at  https://github.com/apache/incubator-shenyu/runs/3740861352?check_suite_focus=true
   
   ### Steps To Reproduce
   
   _No response_
   
   ### Environment
   
   ```markdown
   ShenYu version(s): 2.4.1
   ```
   
   
   ### Debug logs
   
   _No response_
   
   ### Anything else?
   
   shenyu-admin                    | 2021-09-29T06:21:27.536113269Z 2021-09-29 06:21:27 [http-nio-0.0.0.0-9095-exec-4] INFO  org.apache.shenyu.admin.listener.websocket.WebsocketCollector - websocket on client[172.18.0.6] open successful....
   shenyu-admin                    | 2021-09-29T06:21:28.536259395Z 2021-09-29 06:21:27 [http-nio-0.0.0.0-9095-exec-4] ERROR org.apache.shenyu.admin.listener.websocket.WebsocketCollector - websocket collection on client[172.18.0.6] error: 
   shenyu-admin                    | 2021-09-29T06:21:28.536281997Z java.lang.IllegalStateException: The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method
   shenyu-admin                    | 2021-09-29T06:21:28.536285997Z 	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.checkState(WsRemoteEndpointImplBase.java:1234)
   shenyu-admin                    | 2021-09-29T06:21:28.536289597Z 	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase$StateMachine.textStart(WsRemoteEndpointImplBase.java:1196)
   shenyu-admin                    | 2021-09-29T06:21:28.536292697Z 	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:190)
   shenyu-admin                    | 2021-09-29T06:21:28.536295897Z 	at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
   shenyu-admin                    | 2021-09-29T06:21:28.536298898Z 	at org.apache.shenyu.admin.listener.websocket.WebsocketCollector.sendMessageBySession(WebsocketCollector.java:141)
   shenyu-admin                    | 2021-09-29T06:21:28.536301998Z 	at org.apache.shenyu.admin.listener.websocket.WebsocketCollector.send(WebsocketCollector.java:131)
   shenyu-admin                    | 2021-09-29T06:21:28.536304998Z 	at org.apache.shenyu.admin.listener.websocket.WebsocketDataChangedListener.onPluginChanged(WebsocketDataChangedListener.java:43)
   shenyu-admin                    | 2021-09-29T06:21:28.536307998Z 	at org.apache.shenyu.admin.listener.DataChangedEventDispatcher.onApplicationEvent(DataChangedEventDispatcher.java:58)
   shenyu-admin                    | 2021-09-29T06:21:28.536311098Z 	at org.apache.shenyu.admin.listener.DataChangedEventDispatcher.onApplicationEvent(DataChangedEventDispatcher.java:38)
   shenyu-admin                    | 2021-09-29T06:21:28.536314199Z 	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
   shenyu-admin                    | 2021-09-29T06:21:28.536317199Z 	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
   shenyu-admin                    | 2021-09-29T06:21:28.536329300Z 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
   shenyu-admin                    | 2021-09-29T06:21:28.536332200Z 	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)
   shenyu-admin                    | 2021-09-29T06:21:28.536334900Z 	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360)
   shenyu-admin                    | 2021-09-29T06:21:28.536354701Z 	at org.apache.shenyu.admin.service.impl.SyncDataServiceImpl.syncAll(SyncDataServiceImpl.java:87)
   shenyu-admin                    | 2021-09-29T06:21:28.536359002Z 	at org.apache.shenyu.admin.listener.websocket.WebsocketCollector.onMessage(WebsocketCollector.java:88)
   shenyu-admin                    | 2021-09-29T06:21:28.536362102Z 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   shenyu-admin                    | 2021-09-29T06:21:28.536365102Z 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   shenyu-admin                    | 2021-09-29T06:21:28.536368302Z 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   shenyu-admin                    | 2021-09-29T06:21:28.536371402Z 	at java.lang.reflect.Method.invoke(Method.java:498)
   shenyu-admin                    | 2021-09-29T06:21:28.536374303Z 	at 


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

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-shenyu] yu199195 closed issue #2173: [BUG] websocket send message thread unsafe has error

Posted by GitBox <gi...@apache.org>.
yu199195 closed issue #2173:
URL: https://github.com/apache/incubator-shenyu/issues/2173


   


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

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org