Bug #73218 | mysqlfabric hash sharding table shard_rangs lower_bound may 32 byte length | ||
---|---|---|---|
Submitted: | 7 Jul 2014 1:49 | Modified: | 16 Sep 2014 23:46 |
Reporter: | jack tom | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Fabric | Severity: | S1 (Critical) |
Version: | Mysqlfabric 1.4.3 | OS: | Linux |
Assigned to: | Mats Kindahl | CPU Architecture: | Any |
Tags: | mysqlfabric hash shard_ranges |
[7 Jul 2014 1:49]
jack tom
[8 Jul 2014 2:12]
jack tom
@staticmethod def add(shard_mapping_id, shard_id, persister=None): """Add the HASH shard specification. This represents a single instance of a shard specification that maps a key HASH to a server. :param shard_mapping_id: The unique identification for a shard mapping. :param shard_id: An unique identification, a logical representation for a shard of a particular table. """ shard = Shards.fetch(shard_id) persister.exec_stmt( HashShardingSpecification.INSERT_HASH_SPECIFICATION, { "params":( shard_mapping_id, shard.group_id, shard_id ) } ) This is the the code, the lower_bound is group_id. why is group_id ? I think is may the shard's min value.
[4 Aug 2014 7:59]
Mats Kindahl
Thank you for the bug report! Verified as described.
[16 Sep 2014 23:46]
Philip Olson
Fixed as of the upcoming MySQL Utilities / Fabric 1.5.2 release, and here's the changelog entry: Fabric could return an incorrect "lower_bound" length, depending on the character set. Thank you for the bug report.