[ https://issues.apache.org/jira/browse/SCB-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16907976#comment-16907976 ]
Lei Zhang commented on SCB-1438: -------------------------------- Yes,ElasticsearchTransactionRepository a singleton. but I found this error, the original synchronization method is no problem. I'm not sure what caused it. I tried locking static lock to solve this problem 17:56:59.852 [elasticsearch-repository-refresh] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - save queries=0, received=5, accepted=5 17:56:59.852 [elasticsearch-repository-refresh] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - end-67 17:57:03.341 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - begin-72 17:57:03.508 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - save queries=0, received=100, accepted=100 17:57:03.508 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - end-72 17:57:04.549 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - begin-72 17:57:04.699 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - save queries=0, received=200, accepted=200 17:57:04.699 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - end-72 17:57:04.855 [elasticsearch-repository-refresh] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - begin-67 17:57:04.856 [elasticsearch-repository-refresh] ERROR org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - null java.util.ConcurrentModificationException: null at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) ~[?:1.8.0_201] at java.util.ArrayList$Itr.next(ArrayList.java:859) ~[?:1.8.0_201] at org.springframework.data.elasticsearch.core.ElasticsearchTemplate.bulkIndex(ElasticsearchTemplate.java:620) ~[spring-data-elasticsearch-3.1.9.RELEASE.jar:3.1.9.RELEASE] at org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository.save(ElasticsearchTransactionRepository.java:242) ~[classes/:?] at org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository.access$300(ElasticsearchTransactionRepository.java:60) ~[classes/:?] at org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository$RefreshTimer.run(ElasticsearchTransactionRepository.java:262) ~[classes/:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201] 17:57:05.589 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - begin-72 17:57:05.697 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - save queries=0, received=300, accepted=300 17:57:05.697 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - end-72 17:57:06.514 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - begin-72 17:57:06.648 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - save queries=0, received=400, accepted=400 17:57:06.648 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - end-72 17:57:07.560 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - begin-72 17:57:07.745 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - save queries=0, received=500, accepted=500 17:57:07.745 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - end-72 17:57:08.549 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - begin-72 17:57:08.676 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - save queries=0, received=600, accepted=600 17:57:08.676 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - end-72 17:57:09.759 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - begin-72 17:57:09.886 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - save queries=0, received=700, accepted=700 17:57:09.886 [MemoryTransactionRepositoryChannel] INFO org.apache.servicecomb.pack.alpha.fsm.repository.elasticsearch.ElasticsearchTransactionRepository - end-72 > Class ElasticsearchTransactionRepository synchronization save method is > invalid > ------------------------------------------------------------------------------- > > Key: SCB-1438 > URL: https://issues.apache.org/jira/browse/SCB-1438 > Project: Apache ServiceComb > Issue Type: Bug > Components: Saga > Reporter: Lei Zhang > Assignee: Lei Zhang > Priority: Major > Fix For: pack-0.5.0 > > Time Spent: 10m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.14#76016)