dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tree:
7fa8edfd0e
AlexDoanTB-patch-1
_tbel_fix_bug_tb_date_timezone_pattern
bug/update-service-content-type
bug/yml-change-check
coap_dtls
copilot/fix-protobuf-field-names
copilot/sub-pr-14760
domains
edqs-grafana
feat/license-compliance
feature/ai-chat
feature/alarm-count-query
feature/basic-widget-config
feature/cf-merge-function
feature/cfs
feature/cn-locale-improvements
feature/controller-logging
feature/deduplication-node
feature/device-library
feature/edqv2
feature/firmware-footprint
feature/home-page
feature/html-container-widget
feature/integration-executor-ownership-metrics
feature/iot-hub-item-link
feature/lts-4.2/iot-hub-devices
feature/lts-4.2/iot-hub-ttn
feature/lts-4.3-iot-hub-alarm-rules
feature/lts-4.3/iot-hub-devices
feature/lts-4.3/iot-hub-ttn
feature/lts-4.4/iot-hub-ttn-default-converter
feature/lts-4.4/iot-hub-ttn-tti
feature/lts-migrations-4.2
feature/menu-refactoring
feature/proto
feature/queries-not-option
feature/queue-consumer-manager
feature/rate-limits-notifications
feature/rpc-monitoring-lts-4.2
feature/rule-node-cache
feature/serialization
feature/sticky-partitioning
feature/sub-service-improvement
feature/tb-event
feature/tenant-export
feature/thingpark-default-encoders
feature/user-notification-settings
feature/user-settings
feature/websocket-rpc
feature/widget-bundles
fix/activity-notification
fix/alarm-propagation
fix/alarm-rules-doc
fix/alarm-subscription-leak-lts-4.4
fix/gradle-warning-mode-parallel-timeout
fix/msa-tests-log
fix/oauth2-user-tenant-lts-4.2
fix/openapi-spec
fix/rest-api-call-node-blocking-actor-thread
fix/script-timeout-storm-guard
fix_bug_coap_tests
fix_bug_copas_Access_Token_DTLS
fix_bug_sparkplug_cancel_session_after_node_connect_master
fix_bug_tbDate_Object_mapper
fix_bug_transactional_other_entity_with_tests
gh-protection-test
hotfix
hotfix-4.4
improvement/ws/sanitized
improvements/isolated-queues
improvements/tb-upgrade
lts-4.2
lts-4.3
lts-4.3-merge
lts-4.3-rc
lts-4.4
lts-patch-system-images
lwm2m_fix-stale-deviceId-in-securityStore-on-re-registration
lwm2m_fix_bug_null_point_profileleid_after_sleep_master
master
msa-cfs-tests-trace-logs
oauth2_refactoring
rc
rc-4.1.1
release-1.0
release-1.1
release-1.2
release-1.3
release-1.4
release-2.0
release-2.2
release-2.3
release-2.4
release-2.5
release-3.0
release-3.1
release-3.2
release-3.3
release-3.3-CVE-2022-22965
release-3.4
release-3.5
release-3.6
release-3.7
release-3.8
release-3.9
release-4.0
release-4.1
release-4.2
release-4.3
release-4.4
revert-16471-feat/ai-tb-version-header
rpc-tests
sparkplag_Telemetry
sparkplug-any-name-node-unique-device-names_temp
system-params-js-evaluator
tbel_encodeUri
test_suite_testcontaihers_2_02
vb-master
vb-rc
wire-schema-replacement
v1.0
v1.0.1
v1.0.2
v1.0.3
v1.1
v1.2
v1.2.1
v1.2.2
v1.2.3
v1.3
v1.3.1
v1.4
v2.0
v2.0.1
v2.0.2
v2.0.3
v2.1
v2.1.1
v2.1.2
v2.1.3
v2.2
v2.3
v2.3.1
v2.4
v2.4.1
v2.4.2
v2.4.2.1
v2.4.3
v2.5
v2.5.1
v2.5.2
v2.5.3
v2.5.4
v2.5.5
v2.5.6
v3.0
v3.0.1
v3.1
v3.1.1
v3.2
v3.2.1
v3.2.2
v3.3
v3.3.1
v3.3.2
v3.3.3
v3.3.4
v3.3.4.1
v3.4
v3.4.1
v3.4.2
v3.4.3
v3.4.4
v3.5
v3.5.1
v3.6
v3.6.1
v3.6.2
v3.6.3
v3.6.4
v3.7
v3.8
v3.8.1
v3.9
v3.9.1
v4.0
v4.0.1
v4.0.2
v4.1
v4.2
v4.2.1
v4.2.1.1
v4.2.1.2
v4.2.2
v4.2.2.1
v4.2.2.2
v4.2.2.3
v4.2.2.4
v4.2.2.5
v4.2.2.6
v4.2.2.7
v4.2.2.8
v4.3
v4.3.0.1
v4.3.1
v4.3.1.1
v4.3.1.2
v4.3.1.3
v4.3.1.4
v4.3.1.5
v4.3.1.6
v4.3.1.7
v4.3.1.8
v4.4
v4.4.0.1
v4.4.0.2
${ noResults }
thingsboard/application
onEdgeDisconnect persisted active=false based only on this node's in-memory session map. When an edge drops and reconnects to a different TB-Core node, the new node sets active=true while the old node writes active=false whenever it finally notices its dead stream. If the stale write lands last, the edge stays marked inactive while its gRPC session is alive. That flag is not only a status indicator: saveEdgeEvent() consults it before queueing any server-to-edge event, and actions that are not on the offline allowlist - device and entity-group assignments among them - are dropped outright rather than queued. A stale active=false therefore makes assignments silently never reach the edge, with a full "Sync Edge" as the only recovery. - Guard the write with the cluster-wide service-id cache, skipping it only when another node is the recorded owner and that node is still a live TB_CORE service. An absent entry means ownership is unknown, not claimed elsewhere, so that case still persists the inactive state; and a node that died without evicting its claim cannot leave the edge marked active forever. - Publish the ownership claim before writing active=true in onEdgeConnect, so a disconnect callback on the node the edge just left cannot read a stale owner. - Only evict the service-id cache entry when it still points at this node. A stale callback would otherwise wipe the live owner's claim and defeat the guard above for any later disconnect. - Remove the session atomically in onEdgeDisconnect. get() and remove() were not atomic, so a session replaced between the two was dropped from the map, torn down and marked inactive by the stale callback even though it was the live one. LAST_DISCONNECT_TIME and the rule-engine DISCONNECT_EVENT are intentionally left unguarded - they are accurate statements about this session, and the timestamps are the main diagnostic signal for flapping edges. Backport of thingsboard/thingsboard#16155 to lts-4.2, which has no disconnect notification debounce and therefore none of the ownership helpers the 4.3 change builds on; they are introduced here. |
2 months ago | |
|---|---|---|
| .. | ||
| src | fix: do not clear edge activity state when session moved to another node | 2 months ago |
| .gitignore | Add Chinese Translation for Version 1.2.3 (#131) | 10 years ago |
| pom.xml | Version set to 4.2.2.4-SNAPSHOT | 5 months ago |