-
Notifications
You must be signed in to change notification settings - Fork 244
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
Feature/sdl 0315 add rpc conflict management #3814
base: develop
Are you sure you want to change the base?
Feature/sdl 0315 add rpc conflict management #3814
Conversation
Hi, @iCollin -san |
@Sohei-Suzuki-Nexty Hello, I am not able to compile this PR in current state. It seems that many methods are not defined on their interfaces, meaning clients of such interfaces cannot use these methods. For example, pure virtuals for I'd be happy to help you look into why values are not loading from the preloaded policy table once this PR is able to compile. If you need help with a specific compilation error feel free to reach out to me on the SDL Slack channel, and once this PR is in a good state I can look into loading problems here on this PR. Thank you, |
Hi, @iCollin -san |
Hello @Sohei-Suzuki-Nexty, Thank you for the updates. After some testing, it seems to me that the issue is Hopefully this is what you were looking for! Let me know if I can help further. |
Hi, @iCollin -san ・SQLPTRepresentationTest.GenerateSnapshot_DefaultContentOfModuleMeta_MetaInfoPresentInSnapshot You say "I see the SQL query fail, I believe because the parameters are not bound to the query.", but I'm not familiar with SQL so I haven't been able to identify where the problem is. In "sql_pt_queries.cc", I added the parameter as well as other parameters. Is there a problem here? I would like to know more specifically. |
Hello @Sohei-Suzuki-Nexty, Some SQL knowledge will be required to implement this feature. I took another look and I can see the reason the update statement in |
@iCollin -san
Regarding the above, it is necessary to add a process such as
Also, about the above, I do not know what kind of parameter setting is appropriate. I would like to load the following table that I added to
|
@iCollin -san |
Hello @Sohei-Suzuki-Nexty, My apologies I was on vacation this past week. I will be OOO 11/24 - 11/28 as well.
In order for queries to work in the current state, yes that would fix the issue of saying UPDATE, INSERT, etc on a table that does not exist. However, the purpose for this table
Unfortunately I am not budgeted time for this feature. I can answer direct questions as part of Slack Support, but I cannot implement this feature at this time. It may be helpful to follow the implementation of the table |
@iCollin -san
The table interrupt_manager_config is a table that holds the priority of RPC because it determines the priority on Core for simultaneous RPCs and sends only the RPC with higher priority to HMI. Each role is as follows app_priority: hmi_status_priority The purpose is to be able to send one RPC according to the priority read from interrupt_manager_config when RPCs occur at the same time. For details, please refer to the PR below. In our view, we are trying to add interrupt_manager_config at the same level as the existing module_config.
Thank you for your advice. We will refer to notifications_per_minute_by_priority. I have one additional question.
I'd like to confirm it just in case. |
Hello, table
What would those values be? Integers? What would they be used for? My understanding is that the actual priority values are stored in the tables
My apologies I was trying to explain that is how I characterize my time assisting with this and other features that are not yet in review. I am happy to answer questions here or on slack, it is just easier for me to see the code changes here in a PR instead of Slack. |
@iCollin -san
Your understanding is correct. The table interrupt_manager_config was considered as a table that puts together three tables, rpc_priority, app_priority, and hmi_status_priority, referring to module_config. From your reply, I understand that if I get each configuration value directly from the rpc_priority, app_priority, hmi_status_priority tables, I don't need to create an interrupt_manager_config table, is this correct? |
@Sohei-Suzuki-Nexty,
That makes sense to me, I am not sure what the additional table would be used for in the database. |
@iCollin -san I modify it so that it doesn't create the interrupt_manager_config table.
With this fix, the following Unit Test errors will be resolved. However, I haven't been able to get the value well yet.
I have committed modified files.Please check it. |
@iCollin -san |
That looks fine to me, yes
Unfortunately I do not have time to debug this at the moment but from the code snippet I see that the value is being accessed as the following: Since I am not sure but I don't know what the member I hope this helps and feel free to reach out with more questions, I will be in the office all next week to answer. |
@iCollin - san
When I modified it like
I presume that the cause is a problem with the definition method in types.h.
From the current situation, I speculated that if I delete the interrupt_manager_config table, the definition in |
@Sohei-Suzuki-Nexty I do not believe it is necessary to remove |
@iCollin - san |
Fixes #3670
This PR is [ready] for review.
Risk
This PR makes [no] API changes.
Testing Plan
ATF scripts
※There are some errors because it is incomplete.
Summary
This is a changes made by SDL 0315
Add rpc conflict management to SDL core.
Tasks Remaining:
Changes due to the addition of a new policy table.
CLA