Tracker: concurent modifications #105

Closed
opened 5 years ago 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 5 years ago
louis_royer referenced this issue from a commit 5 years ago
louis_royer referenced this issue from a commit 5 years ago
louis_royer closed this issue 5 years ago
Sign in to join this conversation.
Loading…
There is no content yet.