)]}'
{"ironic/common/hash_ring.py":[{"author":{"_account_id":10035,"name":"greghaynes","email":"greg@greghaynes.net","username":"greghaynes"},"change_message_id":"7eb95db08c2b026a1e6400535f8ce3578d3fcb51","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                hashed_key \u003d struct.unpack_from(\u0027\u003eI\u0027, key_hash.digest())[0]"},{"line_number":88,"context_line":"                self._host_hashes[hashed_key] \u003d host"},{"line_number":89,"context_line":"        # Gather the (possibly colliding) resulting "},{"line_number":90,"context_line":"        self._partitions \u003d sorted(self._host_hashes.keys())"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _get_partition(self, data):"},{"line_number":93,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_f500c703","line":90,"updated":"2014-09-04 18:06:32.000000000","message":"One concern I have is for a valid list of replicas to be found via linear probing we need to be sure our partitions cycle between all hosts before repeating a host. If I understand this correctly, we are \u0027randomly\u0027 ordering partitions among hosts, which could result in data and some of the replicated data being stored on the same host?","commit_id":"8370aa1c821119b99552de1e0b00eb8344364f8c"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"93d25526e6084f0b34b53a529f2fddacc07dda9c","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                hashed_key \u003d struct.unpack_from(\u0027\u003eI\u0027, key_hash.digest())[0]"},{"line_number":88,"context_line":"                self._host_hashes[hashed_key] \u003d host"},{"line_number":89,"context_line":"        # Gather the (possibly colliding) resulting "},{"line_number":90,"context_line":"        self._partitions \u003d sorted(self._host_hashes.keys())"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def _get_partition(self, data):"},{"line_number":93,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_6bd4f6bc","line":90,"in_reply_to":"fa98f980_f500c703","updated":"2014-09-04 19:05:56.000000000","message":"It cannot - see get_hosts:\n\n while host in hosts or host in ignore_hosts:\n\nIf two partitions in a row are on the same host, we walk past them.","commit_id":"8370aa1c821119b99552de1e0b00eb8344364f8c"},{"author":{"_account_id":6623,"name":"Roman Prykhodchenko","email":"me@romcheg.me","username":"prykhodchenko"},"change_message_id":"f49013e676769f2f126ef382463f9211acf512a1","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    \"\"\"A stable hash ring."},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    We map item N to a host Y based on the closest lower hash"},{"line_number":54,"context_line":"    - hash(item) -\u003e partition"},{"line_number":55,"context_line":"    - hash(host) -\u003e divider"},{"line_number":56,"context_line":"    - closest lower divider is the host to use"},{"line_number":57,"context_line":"    - we hash each host many times to spread load more finely"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_abc245e6","line":54,"updated":"2014-09-05 12:27:19.000000000","message":"I think it\u0027s better to make a better definition of partition and its purpose. I was looking to this code with Yuri and we had to read the code to understand it.","commit_id":"23d92bcddc6079aa353cefa5e89194010d48113d"},{"author":{"_account_id":6623,"name":"Roman Prykhodchenko","email":"me@romcheg.me","username":"prykhodchenko"},"change_message_id":"f49013e676769f2f126ef382463f9211acf512a1","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            key_hash \u003d hashlib.md5(key)"},{"line_number":85,"context_line":"            for p in range((2 ** CONF.hash_partition_exponent) / len(hosts)):"},{"line_number":86,"context_line":"                key_hash.update(key)"},{"line_number":87,"context_line":"                hashed_key \u003d struct.unpack_from(\u0027\u003eI\u0027, key_hash.digest())[0]"},{"line_number":88,"context_line":"                self._host_hashes[hashed_key] \u003d host"},{"line_number":89,"context_line":"        # Gather the (possibly colliding) resulting hashes into a bisectable"},{"line_number":90,"context_line":"        # list."}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_50750830","line":87,"updated":"2014-09-05 12:27:19.000000000","message":"I\u0027m not familiar with the internals of hashing enough so this is may be a stupid question: Why big endian is used here? As I understand it now endianess does not matter in this particular algorithm but the most systems are little endian nowadays.","commit_id":"23d92bcddc6079aa353cefa5e89194010d48113d"},{"author":{"_account_id":4190,"name":"lifeless","email":"robertc@robertcollins.net","username":"lifeless"},"change_message_id":"3e6637b5d8553be42d62318904ef08df8848ce4e","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            key_hash \u003d hashlib.md5(key)"},{"line_number":85,"context_line":"            for p in range((2 ** CONF.hash_partition_exponent) / len(hosts)):"},{"line_number":86,"context_line":"                key_hash.update(key)"},{"line_number":87,"context_line":"                hashed_key \u003d struct.unpack_from(\u0027\u003eI\u0027, key_hash.digest())[0]"},{"line_number":88,"context_line":"                self._host_hashes[hashed_key] \u003d host"},{"line_number":89,"context_line":"        # Gather the (possibly colliding) resulting hashes into a bisectable"},{"line_number":90,"context_line":"        # list."}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_7e563608","line":87,"in_reply_to":"fa98f980_50750830","updated":"2014-09-08 00:01:15.000000000","message":"Because this is a bytestring not a number... that said I think this is perhaps bogus - I was running off the existing code without thinking all that hard. Its taking the first unsigned int from the hash, but we could easily take it all, or take the hexdigest with nearly identical performance. \n\nWhat we require is the same answer on any machine that runs Python, and a good spread of numbers.","commit_id":"23d92bcddc6079aa353cefa5e89194010d48113d"},{"author":{"_account_id":3099,"name":"David Shrewsbury","email":"dshrewsb@redhat.com","username":"dshrews"},"change_message_id":"4148aa1381080e45399c3d80c7a975429d48f50c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                    \u0027A few thousand partitions should make rebalancing \u0027"},{"line_number":39,"context_line":"                    \u0027smooth in most cases. The default is suitable for up to \u0027"},{"line_number":40,"context_line":"                    \u0027a few hundred conductors. Too many partitions has a CPU \u0027"},{"line_number":41,"context_line":"                    \u0027impact.\u0027),"},{"line_number":42,"context_line":"    cfg.IntOpt(\u0027hash_distribution_replicas\u0027,"},{"line_number":43,"context_line":"               default\u003d1,"},{"line_number":44,"context_line":"               help\u003d\u0027[Experimental Feature] \u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"baa201ad_82637119","line":41,"updated":"2014-09-29 21:28:55.000000000","message":"This help is very long. Probably a good indicator that we need proper documentation of the hash ring so an administrator can really understand this.","commit_id":"cd089833fd2b8fa9a14528bf0a17b8357bcee75d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"632fbcaae759395d4a6fd247ec0b8cac151461fd","unresolved":false,"context_lines":[{"line_number":94,"context_line":"                self._host_hashes[hashed_key] \u003d host"},{"line_number":95,"context_line":"        # Gather the (possibly colliding) resulting hashes into a bisectable"},{"line_number":96,"context_line":"        # list."},{"line_number":97,"context_line":"        self._partitions \u003d sorted(self._host_hashes.keys())"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def _get_partition(self, data):"},{"line_number":100,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":17,"id":"baa201ad_8efff766","line":97,"updated":"2014-10-01 09:35:58.000000000","message":"nit: keys() is redundant","commit_id":"9b64536078db80f1b135608f081a3a911852a694"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"8a6f4687c44eb0ed096384bc535c5d4a6ea11383","unresolved":false,"context_lines":[{"line_number":34,"context_line":"                    \u0027Number of partitions per conductor is \u0027"},{"line_number":35,"context_line":"                    \u0027(2^hash_partition_exponent). This determines the \u0027"},{"line_number":36,"context_line":"                    \u0027granularity of rebalancing: given 10 hosts, and an \u0027"},{"line_number":37,"context_line":"                    \u0027exponent of the 2, there are 40 partitions in the ring.\u0027"},{"line_number":38,"context_line":"                    \u0027A few thousand partitions should make rebalancing \u0027"},{"line_number":39,"context_line":"                    \u0027smooth in most cases. The default is suitable for up to \u0027"},{"line_number":40,"context_line":"                    \u0027a few hundred conductors. Too many partitions has a CPU \u0027"}],"source_content_type":"text/x-python","patch_set":19,"id":"baa201ad_611c8f78","line":37,"updated":"2014-10-02 00:39:58.000000000","message":"\u0027exponent of the 2\u0027 -\u003e \u0027exponent of 2\u0027","commit_id":"ccdfdcc87a3dcbb808de4b5f4d8719b1526eb5be"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"8a6f4687c44eb0ed096384bc535c5d4a6ea11383","unresolved":false,"context_lines":[{"line_number":35,"context_line":"                    \u0027(2^hash_partition_exponent). This determines the \u0027"},{"line_number":36,"context_line":"                    \u0027granularity of rebalancing: given 10 hosts, and an \u0027"},{"line_number":37,"context_line":"                    \u0027exponent of the 2, there are 40 partitions in the ring.\u0027"},{"line_number":38,"context_line":"                    \u0027A few thousand partitions should make rebalancing \u0027"},{"line_number":39,"context_line":"                    \u0027smooth in most cases. The default is suitable for up to \u0027"},{"line_number":40,"context_line":"                    \u0027a few hundred conductors. Too many partitions has a CPU \u0027"},{"line_number":41,"context_line":"                    \u0027impact.\u0027),"}],"source_content_type":"text/x-python","patch_set":19,"id":"baa201ad_81133365","line":38,"updated":"2014-10-02 00:39:58.000000000","message":"Missing a blank space before \u0027A few...\u0027.","commit_id":"ccdfdcc87a3dcbb808de4b5f4d8719b1526eb5be"}]}
