{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/35","labels_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/35/comments","events_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/35/events","html_url":"https://github.com/NSLS-II/Bug-Reports/issues/35","id":110819200,"number":35,"title":"Cache issue in filestore?","user":{"login":"licode","id":4765544,"avatar_url":"https://avatars.githubusercontent.com/u/4765544?v=3","gravatar_id":"","url":"https://api.github.com/users/licode","html_url":"https://github.com/licode","followers_url":"https://api.github.com/users/licode/followers","following_url":"https://api.github.com/users/licode/following{/other_user}","gists_url":"https://api.github.com/users/licode/gists{/gist_id}","starred_url":"https://api.github.com/users/licode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/licode/subscriptions","organizations_url":"https://api.github.com/users/licode/orgs","repos_url":"https://api.github.com/users/licode/repos","events_url":"https://api.github.com/users/licode/events{/privacy}","received_events_url":"https://api.github.com/users/licode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-10T21:57:46Z","updated_at":"2015-10-10T22:00:11Z","closed_at":null,"body":"I saw this issue yesterday. However, after restarting ipython, I can get data successfully. Any suggestion on this, @tacaswell ? \r\n\r\n```\r\nIn [95]: d = get_table(db[3536])\r\n    ---------------------------------------------------------------------------\r\n    IntegrityError                            Traceback (most recent call last)\r\n    <ipython-input-95-222f10459cbe> in <module>()\r\n    ----> 1 d = get_table(db[3536])\r\n\r\n    /home/xf03id/code_lili/git_source/databroker/databroker/databroker.pyc in get_table(headers, fields, fill, convert_times)\r\n        367                     logger.debug('filling data for %s', field)\r\n            368                     # TODO someday we will have bulk retrieve in FS\r\n            --> 369                     values = [fs.retrieve(value) for value in values]\r\n                370                 df[field] = values\r\n                    371             dfs.append(df)\r\n\r\n    /home/xf03id/Repos/filestore/filestore/commands.pyc in inner(*args, **kwargs)\r\n         19         port = int(conf.connection_config['port'])\r\n              20         db_connect(database=database, host=host, port=port)\r\n    ---> 21         return func(*args, **kwargs)\r\n         22     return inner\r\n              23\r\n\r\n              /home/xf03id/Repos/filestore/filestore/commands.pyc in retrieve(eid)\r\n        117         The requested data as a numpy array\r\n            118     \"\"\"\r\n            --> 119     return _get_data(eid)\r\n\r\n    /home/xf03id/Repos/filestore/filestore/retrieve.pyc in get_data(eid, handle_registry)\r\n        260\r\n            261     handler = get_spec_handler(datum['resource'], handle_registry)\r\n            --> 262     return handler(**datum['datum_kwargs'])\r\n\r\n            /home/xf03id/Repos/filestore/filestore/handlers.pyc in __call__(self, point_number)\r\n         64         if stop > len(self._image_sequence):\r\n                  65             raise IntegrityError(\"Seeking Frame {0} out of {1} frames.\".format(\r\n                                                                                                    ---> 66                 stop, len(self._image_sequence)))\r\n                       67         return np.asarray(list(self._image_sequence[start:stop])).squeeze()\r\n         68\r\n\r\n         IntegrityError: Seeking Frame 3 out of 2 frames.\r\n```"},"comment":{"url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/comments/147128936","html_url":"https://github.com/NSLS-II/Bug-Reports/issues/35#issuecomment-147128936","issue_url":"https://api.github.com/repos/NSLS-II/Bug-Reports/issues/35","id":147128936,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T22:00:11Z","updated_at":"2015-10-10T22:00:11Z","body":"What handler is this with? Look at how this was fixed for tiffs.\n\nOn Sat, Oct 10, 2015, 17:57 Li Li <notifications@github.com> wrote:\n\n> I saw this issue yesterday. However, after restarting ipython, I can get\n> data successfully. Any suggestion on this, @tacaswell\n> <https://github.com/tacaswell> ?\n>\n> In [95]: d = get_table(db[3536])\n>     ---------------------------------------------------------------------------\n>     IntegrityError                            Traceback (most recent call last)\n>     <ipython-input-95-222f10459cbe> in <module>()\n>     ----> 1 d = get_table(db[3536])\n>\n>     /home/xf03id/code_lili/git_source/databroker/databroker/databroker.pyc in get_table(headers, fields, fill, convert_times)\n>         367                     logger.debug('filling data for %s', field)\n>             368                     # TODO someday we will have bulk retrieve in FS\n>             --> 369                     values = [fs.retrieve(value) for value in values]\n>                 370                 df[field] = values\n>                     371             dfs.append(df)\n>\n>     /home/xf03id/Repos/filestore/filestore/commands.pyc in inner(*args, **kwargs)\n>          19         port = int(conf.connection_config['port'])\n>               20         db_connect(database=database, host=host, port=port)\n>     ---> 21         return func(*args, **kwargs)\n>          22     return inner\n>               23\n>\n>               /home/xf03id/Repos/filestore/filestore/commands.pyc in retrieve(eid)\n>         117         The requested data as a numpy array\n>             118     \"\"\"\n>             --> 119     return _get_data(eid)\n>\n>     /home/xf03id/Repos/filestore/filestore/retrieve.pyc in get_data(eid, handle_registry)\n>         260\n>             261     handler = get_spec_handler(datum['resource'], handle_registry)\n>             --> 262     return handler(**datum['datum_kwargs'])\n>\n>             /home/xf03id/Repos/filestore/filestore/handlers.pyc in __call__(self, point_number)\n>          64         if stop > len(self._image_sequence):\n>                   65             raise IntegrityError(\"Seeking Frame {0} out of {1} frames.\".format(\n>                                                                                                     ---> 66                 stop, len(self._image_sequence)))\n>                        67         return np.asarray(list(self._image_sequence[start:stop])).squeeze()\n>          68\n>\n>          IntegrityError: Seeking Frame 3 out of 2 frames.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/NSLS-II/Bug-Reports/issues/35>.\n>\n"}}