Tree:
b472cd2aed
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/cves-lts-4.2
fix/cves-lts-4.3
fix/cves-lts-4.4
fix/cves-master
fix/gradle-warning-mode-parallel-timeout
fix/maps-performance
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
labels-review
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
merge/license-compliance-into-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.2.2.9
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.3.1.9
v4.4
v4.4.0.1
v4.4.0.2
v4.4.1
${ noResults }
6 Commits (b472cd2aedb7a4df7674bd26bb4e9e45599814a4)
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
3851cfe47a |
Integration Executor: re-check ownership when a stale STOPPED runs
refresh() schedules STOPPED for a singleton whose partition moved away, and skips integrations that are still running when the partition comes back. If the lifecycle executor ran that STOPPED only after the partition came back (busy pool, or tryUpdate rescheduled after a lost tryLock), it destroyed the integration on the node that owned it again, and nothing restarted it until the next partition change. When STOPPED runs, fetch the configuration and check the current ownership: - skip the stop if the integration is running, enabled, not remote and mine; - otherwise stop it, and if it is mine again after the stop (the partition came back while it was being stopped) schedule CREATED. processStop() removes the state first, so CREATED starts from a fresh state. If the configuration can't be fetched or the ownership can't be resolved, the integration is stopped as before. Stops for integrations switched to remote or disabled are not affected. |
1 month ago |
|
|
d32eb23158 |
Integration Executor: merge pending partition change events per queue key
A PartitionChangeEvent carries only the queue keys whose partitions changed (and the removed ones), not a full snapshot. Keeping only the last pending event dropped the changes of every other integration type: e.g. on a node whose neighbours support different integration types, an MQTT-only event queued after a first event with all types left HTTP, KAFKA, ... unsubscribed and not refreshed until their partitions changed again. This could happen at startup and, since events are now drained after startup too, while an event thread waits for the synchronized drain. Merge the pending events per queue key instead; the latest partitions of each key win. |
1 month ago |
|
|
a158b76b78 |
Integration Executor: apply partition changes after startup
DefaultClusterIntegrationService.onTbApplicationEvent() added a PartitionChangeEvent to pendingEvents only while the executor was still starting. Once started, it skipped the add and drained an empty queue, so every partition change after startup was dropped: refresh() did not run and the downlink consumers were not re-subscribed. Each node kept the partition snapshot it held when its startup completed, until the JVM restarted. After a rolling restart, or when a single node restarts while the others keep running, this leaves singleton integrations (MQTT, AWS IoT, Azure, ...) running on two nodes or on none. Brokers that enforce unique client IDs keep disconnecting the two copies, and brokers that allow both process every uplink twice. - Always enqueue the event before draining. Make drainPendingEvents() synchronized, so that snapshots are applied in the order they arrive. - In update(), check ownership against the current partitions before starting or updating an integration (CREATED, STARTED, UPDATED, ACTIVATED), and stop it if it is no longer owned. Ownership can change between scheduling an event and running it. - In reInitIntegrations(), stop FAILED integrations that are no longer owned instead of re-initializing them. - In refresh(), treat an empty partition set as a real snapshot and stop the singletons of that type. Restrict the stop loop to the refreshed integration type, because the owned partitions belong to that type only. Nothing new is created on an empty snapshot. Adds DefaultClusterIntegrationServiceTest and DefaultIntegrationManagerServiceTest, covering partition flip-flops during startup and on long-running nodes. |
1 month ago |
|
|
7e416c9509 |
Integration executor: apply rule engine queue updates and evict tenant routing info
Integration executors loaded the rule engine queues only at startup and never evicted the cached tenant routing info. After a tenant switched to or from an isolated rule engine they kept pushing its uplinks to the old queue until restart. - send queue update/delete notifications to integration executors (new repeated fields 2 and 3 in ToIntegrationExecutorNotificationMsg) - apply them in DefaultClusterIntegrationService - evict tenant routing info on TENANT / TENANT_PROFILE events, after the tenant profile caches (new PartitionService.evictTenantProfileInfo) |
1 month ago |
|
|
31936b09d2 |
ThingsBoard 4.4
|
2 months ago |