René's URL Explorer Experiment


Title: Unsubscribe from topic safely · Issue #105 · ros2-java/ros2_java · GitHub

Open Graph Title: Unsubscribe from topic safely · Issue #105 · ros2-java/ros2_java

X Title: Unsubscribe from topic safely · Issue #105 · ros2-java/ros2_java

Description: Currently, there is no safe way to unsubscribe from a topic. If the user calls dispose() on a Subscription, then it will destroy the native subscription (effectively unsubscribing), but the Node is not aware of the subscriptions disposal...

Open Graph Description: Currently, there is no safe way to unsubscribe from a topic. If the user calls dispose() on a Subscription, then it will destroy the native subscription (effectively unsubscribing), but the Node is...

X Description: Currently, there is no safe way to unsubscribe from a topic. If the user calls dispose() on a Subscription, then it will destroy the native subscription (effectively unsubscribing), but the Node is...

Opengraph URL: https://github.com/ros2-java/ros2_java/issues/105

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unsubscribe from topic safely","articleBody":"Currently, there is no safe way to unsubscribe from a topic. If the user calls `dispose()` on a `Subscription`, then it will destroy the native subscription (effectively unsubscribing), but the `Node` is not aware of the subscriptions disposal. E.g. [getSubscriptions](https://github.com/ros2-java/ros2_java/blob/1190aeb909e051e79b2b43325f924f42e5c96160/rcljava/src/main/java/org/ros2/rcljava/node/NodeImpl.java#L227-L229) will return disposed subscriptions that may be [accessed by executors](https://github.com/ros2-java/ros2_java/blob/1190aeb909e051e79b2b43325f924f42e5c96160/rcljava/src/main/java/org/ros2/rcljava/executors/BaseExecutor.java#L170) leading an exception:\r\n\r\n    org.ros2.rcljava.exceptions.RCLException: Failed to add subscription to wait set\r\n\r\nI think we need a way to safely remove `Subscription` (and `Publisher`) objects from a node. Whether that is through the existing `Disposable` interface or API added to the node (e.g. `removeSubscription`).\r\n\r\n## Implementation considerations\r\n\r\nI think having the node detect when a subscription has been disposed (perhaps using [WeakReference](https://docs.oracle.com/javase/7/docs/api/java/lang/ref/WeakReference.html)) would be nice as I don't think it would require additional API. ","author":{"url":"https://github.com/jacobperron","@type":"Person","name":"jacobperron"},"datePublished":"2020-05-01T17:46:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/105/ros2_java/issues/105"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8d509515-648d-6ab6-5e41-07840e044ef0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9246:150591:A24DC8:D21B0C:698017A3
html-safe-nonce7bb6039643cdcba6b897153d681cdbdd5c7a28dbf5b351f0fb105a8204f7c89d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjQ2OjE1MDU5MTpBMjREQzg6RDIxQjBDOjY5ODAxN0EzIiwidmlzaXRvcl9pZCI6IjIxNDg5NjI2MDg4NzM0NzgwNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace2be16a3e7b105f105f25591eda806c59c90dba0ff9c103c2c3647a7ded9e380
hovercard-subject-tagissue:610877659
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ros2-java/ros2_java/105/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3cf450c43ffee313ccf10cdef4a3ed003b10cec0b6135c570dab272b0c9c5cb1/ros2-java/ros2_java/issues/105
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3cf450c43ffee313ccf10cdef4a3ed003b10cec0b6135c570dab272b0c9c5cb1/ros2-java/ros2_java/issues/105
og:image:altCurrently, there is no safe way to unsubscribe from a topic. If the user calls dispose() on a Subscription, then it will destroy the native subscription (effectively unsubscribing), but the Node is...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejacobperron
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/ros2-java/ros2_java git https://github.com/ros2-java/ros2_java.git
octolytics-dimension-user_id23436176
octolytics-dimension-user_loginros2-java
octolytics-dimension-repository_id52850323
octolytics-dimension-repository_nworos2-java/ros2_java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id52850323
octolytics-dimension-repository_network_root_nworos2-java/ros2_java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ros2-java/ros2_java/issues/105#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fros2-java%2Fros2_java%2Fissues%2F105
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fros2-java%2Fros2_java%2Fissues%2F105
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ros2-java%2Fros2_java
Reloadhttps://patch-diff.githubusercontent.com/ros2-java/ros2_java/issues/105
Reloadhttps://patch-diff.githubusercontent.com/ros2-java/ros2_java/issues/105
Reloadhttps://patch-diff.githubusercontent.com/ros2-java/ros2_java/issues/105
ros2-java https://patch-diff.githubusercontent.com/ros2-java
ros2_javahttps://patch-diff.githubusercontent.com/ros2-java/ros2_java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fros2-java%2Fros2_java
Fork 108 https://patch-diff.githubusercontent.com/login?return_to=%2Fros2-java%2Fros2_java
Star 199 https://patch-diff.githubusercontent.com/login?return_to=%2Fros2-java%2Fros2_java
Code https://patch-diff.githubusercontent.com/ros2-java/ros2_java
Issues 54 https://patch-diff.githubusercontent.com/ros2-java/ros2_java/issues
Pull requests 9 https://patch-diff.githubusercontent.com/ros2-java/ros2_java/pulls
Actions https://patch-diff.githubusercontent.com/ros2-java/ros2_java/actions
Projects 0 https://patch-diff.githubusercontent.com/ros2-java/ros2_java/projects
Security 0 https://patch-diff.githubusercontent.com/ros2-java/ros2_java/security
Insights https://patch-diff.githubusercontent.com/ros2-java/ros2_java/pulse
Code https://patch-diff.githubusercontent.com/ros2-java/ros2_java
Issues https://patch-diff.githubusercontent.com/ros2-java/ros2_java/issues
Pull requests https://patch-diff.githubusercontent.com/ros2-java/ros2_java/pulls
Actions https://patch-diff.githubusercontent.com/ros2-java/ros2_java/actions
Projects https://patch-diff.githubusercontent.com/ros2-java/ros2_java/projects
Security https://patch-diff.githubusercontent.com/ros2-java/ros2_java/security
Insights https://patch-diff.githubusercontent.com/ros2-java/ros2_java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ros2-java/ros2_java/issues/105
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ros2-java/ros2_java/issues/105
Unsubscribe from topic safelyhttps://patch-diff.githubusercontent.com/ros2-java/ros2_java/issues/105#top
https://patch-diff.githubusercontent.com/jacobperron
https://github.com/jacobperron
https://github.com/jacobperron
jacobperronhttps://github.com/jacobperron
on May 1, 2020https://github.com/ros2-java/ros2_java/issues/105#issue-610877659
getSubscriptionshttps://github.com/ros2-java/ros2_java/blob/1190aeb909e051e79b2b43325f924f42e5c96160/rcljava/src/main/java/org/ros2/rcljava/node/NodeImpl.java#L227-L229
accessed by executorshttps://github.com/ros2-java/ros2_java/blob/1190aeb909e051e79b2b43325f924f42e5c96160/rcljava/src/main/java/org/ros2/rcljava/executors/BaseExecutor.java#L170
WeakReferencehttps://docs.oracle.com/javase/7/docs/api/java/lang/ref/WeakReference.html
jacobperronhttps://patch-diff.githubusercontent.com/jacobperron
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.