597 Commits

Author SHA1 Message Date
YevhenBondarenko
0dc31fbdde created awsSqs, pubSub, rabbitmq js-executors 2020-04-28 16:13:16 +03:00
bdrlamb
cb6e91277f Fix MQTT inactivity disconnects
MQTT clients don't send PINGREQ messages if they've recently sent [UN]SUBSCRIBE/PUBLISH messages.  The MQTT server last activity timestamp is currently only updated in response to PINGREQ messages.  This causes the server to disconnect any clients that regularly send PUBLISH messages since they don't send PINGREQ. 

This change adds reportActivity calls in response to PUBLISH, SUBSCRIBE and UNSUBSCRIBE in addition to PINGREQ.
2020-04-28 14:15:57 +03:00
Andrii Shvaika
8abb718349 Merge with develop 2020-04-28 14:09:20 +03:00
Andrii Shvaika
86f21023fe Improved PartitionService and fixed startup order in docker-compose.yml 2020-04-27 14:44:29 +03:00
Volodymyr Babak
24f2ea502c Push credentials updates to edge 2020-04-27 13:53:51 +03:00
YevhenBondarenko
ba140644c7 added Azure Service Bus queue settings 2020-04-27 11:16:53 +03:00
Andrii Shvaika
a779839081 Fixed transport 2020-04-24 19:16:25 +03:00
Andrii Shvaika
53eb09bcb9 Improvements to tests due to new architecture 2020-04-21 22:31:25 +03:00
YevhenBondarenko
283ad27cb5 added rabbitmq queue arguments 2020-04-21 20:55:02 +03:00
YevhenBondarenko
2ad4ddf1fb pubsub improvements 2020-04-21 12:56:06 +03:00
YevhenBondarenko
1b9df18c45 created TbPubSubSubscriptionSettings 2020-04-21 12:56:06 +03:00
Andrii Shvaika
58d9c313a8 Fixed tests 2020-04-20 16:12:03 +03:00
Andrii Shvaika
9ee0b34f0d Merge remote-tracking branch 'origin/develop/2.5' into develop/2.5 2020-04-20 11:02:58 +03:00
Andrii Shvaika
b1f87206f3 Minor improvements 2020-04-20 11:02:40 +03:00
YevhenBondarenko
12973cecf1 added method destroy to admins and aws sqs factories 2020-04-17 15:17:06 +03:00
YevhenBondarenko
9fa82078a0 created TbAwsSqsQueueAttributes and added queue properties to yml 2020-04-17 15:17:06 +03:00
Yevhen Bondarenko
d654e09d6a
kafka topic settings
* added topic-properties to kafka queue

* added topic-properties to kafka queue to transport

* kafka topic settings improvements
2020-04-15 17:47:46 +03:00
Andrii Shvaika
0c54f836b3 Fixed tests 2020-04-14 16:17:08 +03:00
Volodymyr Babak
9dbe3d4d6b Fixed fetch or SYSTEM rule chains 2020-04-14 12:53:22 +03:00
Andrii Shvaika
e991c0ef23 No more Synchronization nodes 2020-04-14 08:44:34 +03:00
Andrii Shvaika
63bac58ae8 Implementation of statistics counters 2020-04-14 08:27:44 +03:00
Andrii Shvaika
d380ac7106 Device -> Server RPC implementation and improvements 2020-04-13 18:33:11 +03:00
Andrii Shvaika
6c4b50a380 Implemented dedicated RE per tenant 2020-04-13 14:59:48 +03:00
hamza.slama
5b8ce2fb69 Move AlarmId To Id Package 2020-04-13 10:40:03 +03:00
Yevhen Bondarenko
7869fb5ef4
added to tenant fields isolatedTbCore and isolatedTbRuleEngine (#2611)
Co-authored-by: Andrew Shvayka <ashvayka@thingsboard.io>
2020-04-13 10:24:40 +03:00
Yevhen Bondarenko
8442159811
[2.5] vulnerabilities (#2608)
* Version updates

* added @Retention(RetentionPolicy.RUNTIME) for all custom Dao annotations.

* changed getId, setId to getUuid, setUuid from BaseEntity, improvement AbstractControllerTest

* fix rabbitmq

* fix RuleChainManagerActor

* refactored InMemory queue

Co-authored-by: Andrii Shvaika <ashvayka@thingsboard.io>
2020-04-13 09:34:35 +03:00
YevhenBondarenko
1dd3334825 moved jsinvoke.proto to queue, fixed js-executor, added createRemoteJsRequestTemplate to RuleEngine and Core factories 2020-04-10 12:52:05 +03:00
Yevhen Bondarenko
7b3d475267
[2.5] created rabbitmq queue (#2589)
* created main classes for RabbitMq queue

* created temp version rabbitmq

* Merge branch 'develop/2.5' of https://github.com/thingsboard/thingsboard into develop/2.5-rabbitmq

# Conflicts:
#	common/queue/pom.xml

* rabbit improvements
2020-04-09 18:41:37 +03:00
Andrii Shvaika
ca193239ba RE Submit Strategies 2020-04-09 18:33:44 +03:00
Andrii Shvaika
ec4e2c036f No more failures on missing RE queue 2020-04-09 13:09:54 +03:00
Andrii Shvaika
2f6c6ad1fe Merge with master 2020-04-08 18:24:52 +03:00
Andrii Shvaika
c7b428fbc7 Merge branch 'develop/2.5' of github.com:thingsboard/thingsboard into develop/2.5 2020-04-08 14:10:14 +03:00
Andrii Shvaika
3eaae1ef32 Statistics Implementation 2020-04-08 14:09:56 +03:00
ShvaykaD
11479935c2
SQL TTL Implemenation
* init commit

* improvements for ttl-functions

* added drop partitions by ttl function

* add load ttl function to upgrade script

* fix typo

* add IF NOT EXISTS for json_v in timescale upgrade

* changed logic for removing customer records from ts_kv

* improvements in upgrade scenario

* improvements

* added intial delay for TTL task execution
2020-04-07 11:55:26 +03:00
Yevhen Bondarenko
45bd764e6f
Azure ServiceBus queue
* created event hubs queue

* created servicebus queue

* refactored

* refactored
2020-04-07 11:45:28 +03:00
Andrii Shvaika
ff3fd89ace Added ability to process tellNext messages from Queue 2020-04-06 19:40:38 +03:00
Andrii Shvaika
638ca0e1d1 Refactoring to multiple queues for rule engine 2020-04-06 18:35:43 +03:00
VoBa
d94cb9ca47
Added correct ts on alarm clear and ack actions (#2550) 2020-04-01 09:33:46 +03:00
Yevhen Bondarenko
b39328c989
[2.5]fix ConcurrentModificationException (#2560)
* fix ConcurrentModificationException

* kafka consumer improvements

* kafka consumer improvements

* refactored kafka consumer

* refactored kafka consumer
2020-03-31 16:47:43 +03:00
Yevhen Bondarenko
a6e090ef86
Develop/2.5 pubsub (#2566)
* created Aws Sqs Queue

* improvement AwsSqs providers

* created pubsub queue

* revert package-lock.json

* Aws sqs improvements

* Aws sqs improvements

* Aws sqs improvements

* Aws sqs improvements

* Created pubsub queue

* aws improvements

* aws improvements

* aws improvements

* added visibility timeout to aws queue

* pub sub improvements

* pub sub improvements

* aws sqs improvements

* pub sub improvements

* added comment to transport.yml about ack deadline
2020-03-31 16:39:41 +03:00
Yevhen Bondarenko
2553cf6b6f
created Aws Sqs Queue (#2534)
* created Aws Sqs Queue

* improvement AwsSqs providers

* revert package-lock.json

* Aws sqs improvements

* Aws sqs improvements

* Aws sqs improvements

* Aws sqs improvements

* aws improvements

* aws improvements

* aws improvements

* added visibility timeout to aws queue
2020-03-30 19:13:34 +03:00
Andrii Shvaika
c4269023dd Fixed Conditional annotations 2020-03-28 02:30:37 +02:00
Andrii Shvaika
6fe25a2ee2 Refactoring to support TB-Rule-Engine service 2020-03-28 01:42:17 +02:00
Andrii Shvaika
7531a26e61 Implementation of RPC Call support 2020-03-25 22:11:47 +02:00
Andrii Shvaika
07bdcac0fe Refactoring of Rule Engine API 2020-03-24 19:18:27 +02:00
Andrii Shvaika
2ccce3b6d9 Main Logic of RuleChainActor to handle queue messages 2020-03-24 14:08:21 +02:00
Andrii Shvaika
99d322d449 Refactoring of the rule engine 2020-03-24 10:35:54 +02:00
Andrii Shvaika
ce6ec88983 Refactoring of the websocket and subscription services 2020-03-20 18:00:57 +02:00
Andrii Shvaika
e102b55bc1 Thread-safety usage of Kafka Consumer 2020-03-18 18:39:34 +02:00
Andrii Shvaika
7203e7aa19 Distributed Mode fixes 2020-03-18 18:07:24 +02:00