Merge branch 'master' of https://github.com/thingsboard/thingsboard into develop/2.5-js-executor
This commit is contained in:
		
						commit
						9a66fc0248
					
				@ -3,7 +3,7 @@
 | 
				
			|||||||
    "additionalInfo": null,
 | 
					    "additionalInfo": null,
 | 
				
			||||||
    "name": "Root Rule Chain",
 | 
					    "name": "Root Rule Chain",
 | 
				
			||||||
    "firstRuleNodeId": null,
 | 
					    "firstRuleNodeId": null,
 | 
				
			||||||
    "root": false,
 | 
					    "root": true,
 | 
				
			||||||
    "debugMode": false,
 | 
					    "debugMode": false,
 | 
				
			||||||
    "configuration": null
 | 
					    "configuration": null
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
				
			|||||||
@ -46,7 +46,7 @@ public class PsqlTsDatabaseUpgradeService extends AbstractSqlTsDatabaseUpgradeSe
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private static final String CREATE_PARTITION_TS_KV_TABLE = "create_partition_ts_kv_table()";
 | 
					    private static final String CREATE_PARTITION_TS_KV_TABLE = "create_partition_ts_kv_table()";
 | 
				
			||||||
    private static final String CREATE_NEW_TS_KV_LATEST_TABLE = "create_new_ts_kv_latest_table()";
 | 
					    private static final String CREATE_NEW_TS_KV_LATEST_TABLE = "create_new_ts_kv_latest_table()";
 | 
				
			||||||
    private static final String CREATE_PARTITIONS = "create_partitions()";
 | 
					    private static final String CREATE_PARTITIONS = "create_partitions(IN partition_type varchar)";
 | 
				
			||||||
    private static final String CREATE_TS_KV_DICTIONARY_TABLE = "create_ts_kv_dictionary_table()";
 | 
					    private static final String CREATE_TS_KV_DICTIONARY_TABLE = "create_ts_kv_dictionary_table()";
 | 
				
			||||||
    private static final String INSERT_INTO_DICTIONARY = "insert_into_dictionary()";
 | 
					    private static final String INSERT_INTO_DICTIONARY = "insert_into_dictionary()";
 | 
				
			||||||
    private static final String INSERT_INTO_TS_KV = "insert_into_ts_kv()";
 | 
					    private static final String INSERT_INTO_TS_KV = "insert_into_ts_kv()";
 | 
				
			||||||
@ -108,7 +108,6 @@ public class PsqlTsDatabaseUpgradeService extends AbstractSqlTsDatabaseUpgradeSe
 | 
				
			|||||||
                            executeQuery(conn, DROP_PROCEDURE_INSERT_INTO_TS_KV);
 | 
					                            executeQuery(conn, DROP_PROCEDURE_INSERT_INTO_TS_KV);
 | 
				
			||||||
                            executeQuery(conn, DROP_PROCEDURE_CREATE_NEW_TS_KV_LATEST_TABLE);
 | 
					                            executeQuery(conn, DROP_PROCEDURE_CREATE_NEW_TS_KV_LATEST_TABLE);
 | 
				
			||||||
                            executeQuery(conn, DROP_PROCEDURE_INSERT_INTO_TS_KV_LATEST);
 | 
					                            executeQuery(conn, DROP_PROCEDURE_INSERT_INTO_TS_KV_LATEST);
 | 
				
			||||||
                            executeQuery(conn, DROP_PROCEDURE_INSERT_INTO_TS_KV_LATEST);
 | 
					 | 
				
			||||||
                            executeQuery(conn, DROP_FUNCTION_GET_PARTITION_DATA);
 | 
					                            executeQuery(conn, DROP_FUNCTION_GET_PARTITION_DATA);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                            executeQuery(conn, "ALTER TABLE ts_kv ADD COLUMN IF NOT EXISTS json_v json;");
 | 
					                            executeQuery(conn, "ALTER TABLE ts_kv ADD COLUMN IF NOT EXISTS json_v json;");
 | 
				
			||||||
 | 
				
			|||||||
@ -106,6 +106,7 @@ public class TbKafkaConsumerTemplate<T extends TbQueueMsg> implements TbQueueCon
 | 
				
			|||||||
                if (!subscribed) {
 | 
					                if (!subscribed) {
 | 
				
			||||||
                    List<String> topicNames = partitions.stream().map(TopicPartitionInfo::getFullTopicName).collect(Collectors.toList());
 | 
					                    List<String> topicNames = partitions.stream().map(TopicPartitionInfo::getFullTopicName).collect(Collectors.toList());
 | 
				
			||||||
                    topicNames.forEach(admin::createTopicIfNotExists);
 | 
					                    topicNames.forEach(admin::createTopicIfNotExists);
 | 
				
			||||||
 | 
					                    consumer.unsubscribe();
 | 
				
			||||||
                    consumer.subscribe(topicNames);
 | 
					                    consumer.subscribe(topicNames);
 | 
				
			||||||
                    subscribed = true;
 | 
					                    subscribed = true;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
				
			|||||||
@ -10,3 +10,5 @@ CACHE_TYPE=redis
 | 
				
			|||||||
REDIS_HOST=redis
 | 
					REDIS_HOST=redis
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HTTP_LOG_CONTROLLER_ERROR_STACK_TRACE=false
 | 
					HTTP_LOG_CONTROLLER_ERROR_STACK_TRACE=false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					TB_QUEUE_PARTITIONS_VIRTUAL_NODES_SIZE=64
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user