Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix job metrics set concurrent modification exception #723

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

tomsun28
Copy link
Contributor

No description provided.

@tomsun28
Copy link
Contributor Author

bugfix when concurrent modify job metrics set

[Collect Success, Run 4ms, All 4ms].
2023-03-09 19:48:25 [228776751884544-mysql-process_state-5523] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 5ms, All 6ms].
2023-03-09 19:48:25 [228776751884544-mysql-handler-5522] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 8ms, All 8ms].
2023-03-09 19:48:25 [228776751884544-mysql-slow_sql-5522] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 9ms, All 9ms].
2023-03-09 19:48:25 [warehouse-persistent-data-storage] INFO com.usthe.warehouse.store.HistoryJpaDatabaseDataStorage - [warehouse jpa] flush metrics data 228776751884544 is null, ignore.
2023-03-09 19:48:25 [228776751884544-mysql-tmp-5522] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 11ms, All 11ms].
2023-03-09 19:48:25 [228776751884544-mysql-thread-5522] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 13ms, All 13ms].
2023-03-09 19:48:25 [228776751884544-mysql-sort-5522] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 15ms, All 15ms].
2023-03-09 19:48:25 [228776751884544-mysql-select_type-5522] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 17ms, All 17ms].
2023-03-09 19:48:25 [228776751884544-mysql-connection-5522] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 20ms, All 20ms].
2023-03-09 19:48:52 [228776362760448-oracle-basic-2505] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 0ms, All 1ms].
2023-03-09 19:48:52 [228776362760448-oracle-process-2507] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 1ms, All 1ms].
2023-03-09 19:48:52 [228776362760448-oracle-basic-2505] ERROR com.usthe.collector.dispatch.WorkerPool - workerExecutor has uncaughtException.
2023-03-09 19:48:52 [228776362760448-oracle-basic-2505] ERROR com.usthe.collector.dispatch.WorkerPool - null
java.util.ConcurrentModificationException: null
at java.base/java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.base/java.util.HashMap$KeyIterator.next(Unknown Source)
at java.base/java.lang.Iterable.forEach(Unknown Source)
at com.usthe.collector.dispatch.CommonDispatcher.dispatchCollectData(CommonDispatcher.java:245)
at com.usthe.collector.dispatch.MetricsCollect.run(MetricsCollect.java:166)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2023-03-09 19:48:52 [228776362760448-oracle-cache_hit_ratio-2507] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 65ms, All 66ms].
2023-03-09 19:48:52 [228776362760448-oracle-background_sessions-2509] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 65ms, All 68ms].
2023-03-09 19:48:52 [228776362760448-oracle-total_sessions-2509] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 67ms, All 70ms].
2023-03-09 19:48:53 [228776362760448-oracle-wait-2509] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 519ms, All 519ms].
2023-03-09 19:49:16 [228886747273472-centos-basic-6504] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 25ms, All 25ms].
2023-03-09 19:49:17 [228886747273472-centos-cpu-6529] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 1074ms, All 1074ms].
2023-03-09 19:49:17 [228886747273472-centos-memory-7603] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 58ms, All 58ms].
2023-03-09 19:49:17 [228886747273472-centos-disk-7662] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 68ms, All 68ms].
2023-03-09 19:49:17 [228886747273472-centos-interface-7731] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 55ms, All 56ms].
2023-03-09 19:49:17 [228886747273472-centos-disk_free-7787] INFO com.usthe.collector.dispatch.MetricsCollect - [Collect Success, Run 56ms, All 57ms].

@tomsun28 tomsun28 merged commit f036132 into master Mar 10, 2023
@tomsun28 tomsun28 deleted the bugfix#ConcurrentModificationException branch March 10, 2023 10:41
@tomsun28 tomsun28 linked an issue Mar 10, 2023 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] <title>Oracle monitoring time stopped
1 participant