{"action":"closed","issue":{"url":"https://api.github.com/repos/unt-libraries/catalog-api/issues/21","repository_url":"https://api.github.com/repos/unt-libraries/catalog-api","labels_url":"https://api.github.com/repos/unt-libraries/catalog-api/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/unt-libraries/catalog-api/issues/21/comments","events_url":"https://api.github.com/repos/unt-libraries/catalog-api/issues/21/events","html_url":"https://github.com/unt-libraries/catalog-api/issues/21","id":149761105,"number":21,"title":"In development, stopping and restarting Redis causes application data stored there to be lost","user":{"login":"jthomale","id":6662155,"avatar_url":"https://avatars.githubusercontent.com/u/6662155?v=3","gravatar_id":"","url":"https://api.github.com/users/jthomale","html_url":"https://github.com/jthomale","followers_url":"https://api.github.com/users/jthomale/followers","following_url":"https://api.github.com/users/jthomale/following{/other_user}","gists_url":"https://api.github.com/users/jthomale/gists{/gist_id}","starred_url":"https://api.github.com/users/jthomale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jthomale/subscriptions","organizations_url":"https://api.github.com/users/jthomale/orgs","repos_url":"https://api.github.com/users/jthomale/repos","events_url":"https://api.github.com/users/jthomale/events{/privacy}","received_events_url":"https://api.github.com/users/jthomale/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jthomale","id":6662155,"avatar_url":"https://avatars.githubusercontent.com/u/6662155?v=3","gravatar_id":"","url":"https://api.github.com/users/jthomale","html_url":"https://github.com/jthomale","followers_url":"https://api.github.com/users/jthomale/followers","following_url":"https://api.github.com/users/jthomale/following{/other_user}","gists_url":"https://api.github.com/users/jthomale/gists{/gist_id}","starred_url":"https://api.github.com/users/jthomale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jthomale/subscriptions","organizations_url":"https://api.github.com/users/jthomale/orgs","repos_url":"https://api.github.com/users/jthomale/repos","events_url":"https://api.github.com/users/jthomale/events{/privacy}","received_events_url":"https://api.github.com/users/jthomale/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-04-20T13:02:50Z","updated_at":"2016-04-22T15:46:06Z","closed_at":"2016-04-22T15:46:06Z","body":"While working on other issues, I noted a problem where the `shelflistitems` API resource's `rowNumber` value reverts to `null.` Values in this field are pulled from Redis rather than Solr, and I discovered that the values change to `null` after stopping and restarting Redis, meaning data is (sometimes?) not being persisted correctly in the default :6379 Redis database.\r\n\r\nI'm certain the problem is related to local Redis configuration (which isn't stored in GH)--but, I noted the problem both on the development server and on my local machine, using copies of the code cloned from the GH repository and set up based on the README. There may be something we need to add to the README to make sure Redis is configured correctly so this doesn't happen. I think there are settings in the Redis configuration that control how and how often Redis data gets saved to disk, so that's a good place to start.\r\n\r\nI'll also note that this isn't a problem in production--Redis was carefully configured there, and we've rebooted that server to install upgrades several times with no data loss."}}