[JAVA-1875] Generating new ObjectId() takes between 15 - 45 secs Created: 28/Jun/15 Updated: 28/Jun/15 Resolved: 28/Jun/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 2.13.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Valijon | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7, Eclipse Luna 4.4.2 |
||
| Description |
|
I am experimenting a bug with generating new ObjectId in my project. Seems like NetworkInterface.getNetworkInterfaces() takes too much time to retrieve network information for the first time here is my code: Please fix it |
| Comments |
| Comment by Jeffrey Yemin [ 28/Jun/15 ] |
|
First, this has never been reported before, so it's likely something fairly specific to your situation. Second, in production environments where this matters most, it's unlikely that a server would be using a mobile phone's internet connection. And third, the ObjectId specification basically requires that the driver do something like this. So I'm closing this works as designed. |