Skip to content
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

fix(goal_planner): use recursive mutex instead of transaction #5379

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Oct 23, 2023

This reverts commit 654fa8c in #5202

Description

transaction cannot lock in the following cases

  • thread1: use transaction
  • thread2: use just setter/getter

Related links

#5202

Tests performed

psim

evaluator_description: fix/goal_planner_recursive_mutex
2023/10/23 https://evaluation.tier4.jp/evaluation/reports/fee28b13-55cd-5606-882e-b5c476037840/?project_id=prd_jt

Notes for reviewers

Interface changes

none

Effects on system behavior

none

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Oct 23, 2023
@kosuke55 kosuke55 changed the title Revert "use transaction instead of recursive_mutex" fix(goal_planner): use recursive mutex instead of transition Oct 23, 2023
@kosuke55 kosuke55 changed the title fix(goal_planner): use recursive mutex instead of transition fix(goal_planner): use recursive mutex instead of transaction Oct 23, 2023
@kosuke55 kosuke55 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Oct 23, 2023
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

@kosuke55
LGMT!Thanks!
Please merge this after checking degression test just in case.

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (69813cb) 14.76% compared to head (e37bd12) 14.81%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5379      +/-   ##
==========================================
+ Coverage   14.76%   14.81%   +0.04%     
==========================================
  Files        1662     1662              
  Lines      115457   115439      -18     
  Branches    35639    35647       +8     
==========================================
+ Hits        17047    17097      +50     
+ Misses      79181    79077     -104     
- Partials    19229    19265      +36     
Flag Coverage Δ *Carryforward flag
differential 12.67% <19.35%> (?)
total 14.76% <ø> (+<0.01%) ⬆️ Carriedforward from 386b627

*This pull request uses carry forward flags. Click here to find out more.

Files Coverage Δ
.../scene_module/goal_planner/goal_planner_module.hpp 28.84% <66.66%> (+4.28%) ⬆️
.../scene_module/goal_planner/goal_planner_module.cpp 5.34% <14.28%> (+0.16%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kosuke55 kosuke55 enabled auto-merge (squash) October 23, 2023 15:56
@kosuke55 kosuke55 merged commit 0938f5b into main Oct 23, 2023
23 of 24 checks passed
@kosuke55 kosuke55 deleted the fix/goal_planner_recursive_mutex branch October 23, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants