{"action":"created","issue":{"url":"https://api.github.com/repos/mybatis/ibatis-2/issues/12","labels_url":"https://api.github.com/repos/mybatis/ibatis-2/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/mybatis/ibatis-2/issues/12/comments","events_url":"https://api.github.com/repos/mybatis/ibatis-2/issues/12/events","html_url":"https://github.com/mybatis/ibatis-2/pull/12","id":102890453,"number":12,"title":"Fix bugs that prevented replicated ehcache from working.","user":{"login":"jhart98169","id":1232302,"avatar_url":"https://avatars.githubusercontent.com/u/1232302?v=3","gravatar_id":"","url":"https://api.github.com/users/jhart98169","html_url":"https://github.com/jhart98169","followers_url":"https://api.github.com/users/jhart98169/followers","following_url":"https://api.github.com/users/jhart98169/following{/other_user}","gists_url":"https://api.github.com/users/jhart98169/gists{/gist_id}","starred_url":"https://api.github.com/users/jhart98169/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhart98169/subscriptions","organizations_url":"https://api.github.com/users/jhart98169/orgs","repos_url":"https://api.github.com/users/jhart98169/repos","events_url":"https://api.github.com/users/jhart98169/events{/privacy}","received_events_url":"https://api.github.com/users/jhart98169/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T20:59:08Z","updated_at":"2015-08-24T21:02:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mybatis/ibatis-2/pulls/12","html_url":"https://github.com/mybatis/ibatis-2/pull/12","diff_url":"https://github.com/mybatis/ibatis-2/pull/12.diff","patch_url":"https://github.com/mybatis/ibatis-2/pull/12.patch"},"body":"I was unable to get a replicated ehcache webapp that I work on to replicate properly.  After debugging I was able to make some small code changes to get it working.\r\n\r\nFirst I made CacheKey Serializable, that got my cache cluster to replicate, but didn't get any replicated cache hits when I failed my system over.\r\n\r\nSecond I removed the cacheKey.update(baseCachKey) method call in the getCacheKey method, and that allowed my system to then get replicated cache hits after I forced a fail over with my load balancer.  The issue here was the baseCacheKey uses object.hashCode(), and the value is different on different hosts as per the java implementation and this is not desired in the CacheKey impl."},"comment":{"url":"https://api.github.com/repos/mybatis/ibatis-2/issues/comments/134379345","html_url":"https://github.com/mybatis/ibatis-2/pull/12#issuecomment-134379345","issue_url":"https://api.github.com/repos/mybatis/ibatis-2/issues/12","id":134379345,"user":{"login":"jhart98169","id":1232302,"avatar_url":"https://avatars.githubusercontent.com/u/1232302?v=3","gravatar_id":"","url":"https://api.github.com/users/jhart98169","html_url":"https://github.com/jhart98169","followers_url":"https://api.github.com/users/jhart98169/followers","following_url":"https://api.github.com/users/jhart98169/following{/other_user}","gists_url":"https://api.github.com/users/jhart98169/gists{/gist_id}","starred_url":"https://api.github.com/users/jhart98169/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhart98169/subscriptions","organizations_url":"https://api.github.com/users/jhart98169/orgs","repos_url":"https://api.github.com/users/jhart98169/repos","events_url":"https://api.github.com/users/jhart98169/events{/privacy}","received_events_url":"https://api.github.com/users/jhart98169/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T21:02:40Z","updated_at":"2015-08-24T21:02:40Z","body":"Any comments on weather anybody has solved this issue in ibatis2 any other way would be appreciated.\r\n\r\nI now plan on trying to move my app from ibatis2 to mybatis3, which is the preferred solution, but I am not sure how much work that will take."}}