You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
1、Error delete storage file while the file is still opening: Error traceback (If available):
2024-05-28 15:39:43 - |ERROR| - [event_storage_reader.py] - event_storage_reader - delete_read_file - 174 - [WinError 32] The process cannot access the file because it is being used by another process.: './data/data_1716880902430.txt'
Traceback (most recent call last):
File "E:\Code\Python\tb-gateway-env\Lib\site-packages\thingsboard_gateway-3.5-py3.11.egg\thingsboard_gateway\storage\file\event_storage_reader.py", line 169, in delete_read_file
remove(self.settings.get_data_folder_path() + current_file.file)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process.: './data/data_1716880902430.txt'
2、when the memory storage is full and put message into queue would couse blocking, I think self.__events_queue.put(event,block=False) would be better
def put(self, event):
success = False
if not self.__stopped:
try:
self.__events_queue.put(event)
success = True
except Full:
log.error("Memory storage is full!")
else:
log.error("Storage is stopped!")
return success
Versions (please complete the following information):
OS: windows 11
Thingsboard IoT Gateway version 3.5
Python version 3.11
The text was updated successfully, but these errors were encountered:
YuanqZh
changed the title
[BUG] Two bugs in files storage and memory storage
[BUG] Error delete storage file while the file is still opening and code blocking when put message into a full memory storage queue
May 28, 2024
Describe the bug
1、Error delete storage file while the file is still opening:
Error traceback (If available):
2、when the memory storage is full and put message into queue would couse blocking, I think self.__events_queue.put(event,block=False) would be better
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: