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
I imported 500 monitoring configuration files, it took 8 minutes.
Expected Behavior
During this time, I didn’t see any data increase on the monitoring center list page, which made me suspect if the process was stuck.
Steps To Reproduce
1.Enter 'monitors' from left menu
2.Select 'Import Monitor'
3.Import a large monitor config file
4.Waiting long time,no data increase
Environment
HertzBeat version(s):1.6.1
Debug logs
No response
Anything else?
I found that MonitorServiceImpl.java used @transactional at the class level, @Transactional(rollbackFor = Exception.class) public class MonitorServiceImpl implements MonitorService
This occur a poor experience and was unnecessary.
If each configuration import was treated as a separate transaction, I would have seen the data being imported continuously, making me feel that the process was working.
The same issue might also at AlertDefineServiceImpl.java.
The text was updated successfully, but these errors were encountered:
MasamiYui
changed the title
[BUG] Importing a large amount of monitoring data results occur poor experience and may trigger a long database transaction
[BUG] Importing a large amount of monitoring config occur poor experience and may trigger a long database transaction
Jan 20, 2025
Hello, I have a question. If each configuration is imported as a separate transaction, how can we ensure the integrity of the imported data? In other words, if one configuration import fails, how should it be handled?
Hello, I have a question. If each configuration is imported as a separate transaction, how can we ensure the integrity of the imported data? In other words, if one configuration import fails, how should it be handled?
I think failure can be ignored may be more reasonable ;or adding a progress bar or a place to check the progress will be much better for batch import.
Is there an existing issue for this?
Current Behavior
I imported 500 monitoring configuration files, it took 8 minutes.
Expected Behavior
During this time, I didn’t see any data increase on the monitoring center list page, which made me suspect if the process was stuck.
Steps To Reproduce
1.Enter 'monitors' from left menu
2.Select 'Import Monitor'
3.Import a large monitor config file
4.Waiting long time,no data increase
Environment
Debug logs
No response
Anything else?
I found that MonitorServiceImpl.java used @transactional at the class level,
@Transactional(rollbackFor = Exception.class) public class MonitorServiceImpl implements MonitorService
This occur a poor experience and was unnecessary.
If each configuration import was treated as a separate transaction, I would have seen the data being imported continuously, making me feel that the process was working.
The same issue might also at AlertDefineServiceImpl.java.
The text was updated successfully, but these errors were encountered: