Rework ws-agent activity notification mechanism #9126
Labels
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
status/in-progress
This issue has been taken by an engineer and is under active development.
Description
In cases when notification scheduler does not notify about activity till the current time >= last update time + threshold then the activity notification will be sent in the same thread in which this activity occurred. Such behaviour may lead to problems because the request for activity has default timeout 1 minute, and if the master is not available for this period it will block the activity thread for one minute. The activity thread its tomcat thread where
LastAccessTimeFilter
callWorkspaceActivityNotifier.onActivity()
, and during this period the client won't receive a response from the agent.The problem is not abstract, it occurs while recovery on docker infrastructure.
The text was updated successfully, but these errors were encountered: