Tracker: concurent modifications #105

Closed
opened 2020-04-02 15:59:34 +02:00 by louis_royer · 0 comments
Collaborator

Il doit manquer des synchronize.

[TCP] Received UNREGISTER from host localhost (port 51276)
Exception in thread "Thread-16" java.util.ConcurrentModificationException
        at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493)                                                                       
        at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516)
        at tracker.TrackerManagement.handleUnregister(TrackerManagement.java:142)                                                                     
        at tracker.TrackerManagement.handleRequest(TrackerManagement.java:253)                                                                        
        at tracker.TrackerManagementTCP$ClientHandler.handleClientRequest(TrackerManagementTCP.java:103)                                              
        at tracker.TrackerManagementTCP$ClientHandler.run(TrackerManagementTCP.java:91)                                                               
        at java.base/java.lang.Thread.run(Thread.java:834)
[TCP] Received REGISTER from host localhost (port 51286)
[TCP] Ratio request for host localhost (port 7070)
[TCP] Ratio += 628977, client: localhost (port 7070) / server: localhost (port 7070)                                                                  
[TCP] Received UNREGISTER from host localhost (port 51296)
Exception in thread "Thread-19" java.util.ConcurrentModificationException
        at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493)                                                                       
        at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516)
        at tracker.TrackerManagement.handleUnregister(TrackerManagement.java:142)                                                                     
        at tracker.TrackerManagement.handleRequest(TrackerManagement.java:253)                                                                        
        at tracker.TrackerManagementTCP$ClientHandler.handleClientRequest(TrackerManagementTCP.java:103)                                              
        at tracker.TrackerManagementTCP$ClientHandler.run(TrackerManagementTCP.java:91)                                                               
        at java.base/java.lang.Thread.run(Thread.java:834)
[TCP] Received REGISTER from host localhost (port 51420)
[TCP] Ratio request for host localhost (port 7070)
[TCP] Ratio += 628977, client: localhost (port 7070) / server: localhost (port 7070)                                                                  
[TCP] Ratio request for host localhost (port 7070)
[TCP] Ratio += 628977, client: localhost (port 7070) / server: localhost (port 7070)                                                                  
[TCP] Ratio request for host localhost (port 7070)
[TCP] Ratio += 15, client: localhost (port 7070) / server: localhost (port 7070)                                                                      
[TCP] Received UNREGISTER from host localhost (port 51430)
Exception in thread "Thread-22" java.util.ConcurrentModificationException
        at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493)                                                                       
        at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516)
        at tracker.TrackerManagement.handleUnregister(TrackerManagement.java:142)                                                                     
        at tracker.TrackerManagement.handleRequest(TrackerManagement.java:253)                                                                        
        at tracker.TrackerManagementTCP$ClientHandler.handleClientRequest(TrackerManagementTCP.java:103)                                              
        at tracker.TrackerManagementTCP$ClientHandler.run(TrackerManagementTCP.java:91)                                                               
        at java.base/java.lang.Thread.run(Thread.java:834)
Il doit manquer des `synchronize`. ```text [TCP] Received UNREGISTER from host localhost (port 51276) Exception in thread "Thread-16" java.util.ConcurrentModificationException at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493) at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516) at tracker.TrackerManagement.handleUnregister(TrackerManagement.java:142) at tracker.TrackerManagement.handleRequest(TrackerManagement.java:253) at tracker.TrackerManagementTCP$ClientHandler.handleClientRequest(TrackerManagementTCP.java:103) at tracker.TrackerManagementTCP$ClientHandler.run(TrackerManagementTCP.java:91) at java.base/java.lang.Thread.run(Thread.java:834) [TCP] Received REGISTER from host localhost (port 51286) [TCP] Ratio request for host localhost (port 7070) [TCP] Ratio += 628977, client: localhost (port 7070) / server: localhost (port 7070) [TCP] Received UNREGISTER from host localhost (port 51296) Exception in thread "Thread-19" java.util.ConcurrentModificationException at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493) at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516) at tracker.TrackerManagement.handleUnregister(TrackerManagement.java:142) at tracker.TrackerManagement.handleRequest(TrackerManagement.java:253) at tracker.TrackerManagementTCP$ClientHandler.handleClientRequest(TrackerManagementTCP.java:103) at tracker.TrackerManagementTCP$ClientHandler.run(TrackerManagementTCP.java:91) at java.base/java.lang.Thread.run(Thread.java:834) [TCP] Received REGISTER from host localhost (port 51420) [TCP] Ratio request for host localhost (port 7070) [TCP] Ratio += 628977, client: localhost (port 7070) / server: localhost (port 7070) [TCP] Ratio request for host localhost (port 7070) [TCP] Ratio += 628977, client: localhost (port 7070) / server: localhost (port 7070) [TCP] Ratio request for host localhost (port 7070) [TCP] Ratio += 15, client: localhost (port 7070) / server: localhost (port 7070) [TCP] Received UNREGISTER from host localhost (port 51430) Exception in thread "Thread-22" java.util.ConcurrentModificationException at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493) at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516) at tracker.TrackerManagement.handleUnregister(TrackerManagement.java:142) at tracker.TrackerManagement.handleRequest(TrackerManagement.java:253) at tracker.TrackerManagementTCP$ClientHandler.handleClientRequest(TrackerManagementTCP.java:103) at tracker.TrackerManagementTCP$ClientHandler.run(TrackerManagementTCP.java:91) at java.base/java.lang.Thread.run(Thread.java:834) ```
louis_royer added the
bug
label 2020-04-02 15:59:34 +02:00
louis_royer referenced this issue from a commit 2020-04-03 21:51:50 +02:00
Sign in to join this conversation.
No description provided.