Skip to content

Integration fixes#165

Open
al1img wants to merge 12 commits intoaosedge:feature_unificationfrom
al1img:integration
Open

Integration fixes#165
al1img wants to merge 12 commits intoaosedge:feature_unificationfrom
al1img:integration

Conversation

@al1img
Copy link
Collaborator

@al1img al1img commented Feb 16, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 16, 2026 18:46
@al1img al1img changed the title Integration Integration fixes Feb 16, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors Service Manager (SM) message handling to better separate stream reading from message processing (CM-side), consolidates error logging for incoming messages (SM-side), and tweaks a default CM timeout.

Changes:

  • SMClient: consolidate per-message error handling into a single Error err + shared log path.
  • SMHandler: split stream reading and message processing into two threads with a mutex/condvar-protected queue.
  • config: reduce cDefaultUnitStatusSendTimeout from 30s to 10s.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/sm/smclient/smclient.cpp Simplifies incoming message dispatch by centralizing error logging.
src/cm/smcontroller/smhandler.hpp Introduces queue/condvar + two-thread model fields for outgoing message handling.
src/cm/smcontroller/smhandler.cpp Implements read thread that enqueues messages and a processing thread that drains the queue.
src/cm/config/config.cpp Lowers default unit status send timeout to 10 seconds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

When sync responses and incoming messages are processed in one thread, it may
lead to dead lock when some module hold its mutex while sending sync message
and at this time it receives incoming message that also processed under same
mutex. This is usual pattern in our implementation. Add queue for incoming
messages and process it in separate thread. It allows to avoid above dead lock.

Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Disk quota is set in blocks of 1024 bytes. Update SetUserQuota and runtime
container monitoring accordingly.

Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Static analysis doesn't require build and could be performed first to fail
as soon as any issue detected.

Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@epam.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments