{"action":"opened","issue":{"url":"https://api.github.com/repos/tomp2p/TomP2P/issues/89","labels_url":"https://api.github.com/repos/tomp2p/TomP2P/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/tomp2p/TomP2P/issues/89/comments","events_url":"https://api.github.com/repos/tomp2p/TomP2P/issues/89/events","html_url":"https://github.com/tomp2p/TomP2P/issues/89","id":59078615,"number":89,"title":"Fetching data in ranges, fails when using long milliseconds for ranges(sometimes)","user":{"login":"tchoulihan","id":930215,"avatar_url":"https://avatars.githubusercontent.com/u/930215?v=3","gravatar_id":"","url":"https://api.github.com/users/tchoulihan","html_url":"https://github.com/tchoulihan","followers_url":"https://api.github.com/users/tchoulihan/followers","following_url":"https://api.github.com/users/tchoulihan/following{/other_user}","gists_url":"https://api.github.com/users/tchoulihan/gists{/gist_id}","starred_url":"https://api.github.com/users/tchoulihan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchoulihan/subscriptions","organizations_url":"https://api.github.com/users/tchoulihan/orgs","repos_url":"https://api.github.com/users/tchoulihan/repos","events_url":"https://api.github.com/users/tchoulihan/events{/privacy}","received_events_url":"https://api.github.com/users/tchoulihan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-26T14:18:23Z","updated_at":"2015-02-26T14:18:23Z","closed_at":null,"body":"Hey @tbocek , I've been trying to create a system of fetching recent updates, so that when a client connects, they can get all the keys they've missed since their last 'update date'. \r\n\r\nI've been trying to implement this using your [ExampleDST](https://github.com/tomp2p/TomP2P/blob/master/examples/src/main/java/net/tomp2p/examples/ExampleDST.java) range fetching example, and using time millis. \r\n\r\nMy goal is to save a 'last_time_fetched', and fetch all the keys from the range of 'last_time_fetched', to the current time(IE, fetch the new updates/keys). I guess I am trying to use tomp2p like a distributed timestamp server. \r\n\r\nUnfortunately, when scaling up to really high numbers, its stopped working in odd cases. If the range I'm fetching over is small enough, for some reason, it fails to find the keys. \r\n\r\nI've abstracted your example into a Client-style, single peer example(as opposed to having all the peers embedded), and would like to add it to the examples once I've worked out the bugs. \r\n\r\nI could work through them a little better if I understood a few things:\r\n* What are m and n?\r\n* What does DTS stand for? I can't find it\r\n* A little more description of the range algorithm searching\r\n\r\nMy current params for working with long timestamps(in millis) are \r\n* n = 2\r\n* m = 4398046500000L (I think sometime in the year 2100, for some reason your fetching has to be a logbase2)\r\n* \r\n\r\nWhat does work\r\n* Large ranges : [825273976000L, 4398046500000L]; (I think 1993 - 2100)\r\n* Specific ranges: [825273976000L, 825273976001L] (Within 2 milliseconds)\r\n\r\nWhat doesn't work\r\n* Smaller ranges of 5-10 second spans ( Which is my most important use case, fetching new updates)\r\n\r\nI could post my entire .java file if it would help.\r\n\r\nMaybe I'm going about this the completely wrong way. What in your opinion is the best way to fetch new groups of keys without knowing what they are specifically? \r\n\r\nThanks in advance.\r\n\r\n"}}