Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reversed components in AbstractComposite types fail to parse on load #484

Merged
merged 3 commits into from Jan 27, 2016
Merged

Conversation

tnine
Copy link
Contributor

@tnine tnine commented Feb 15, 2014

This fixes an incorrect toLowerCase issue when utilizing reversed columns when parsing DynamicComposites from a ByteBuffer.

tnine pushed a commit to usergrid/usergrid that referenced this pull request Feb 15, 2014
@@ -364,7 +364,7 @@ private String getComparator(int i, ByteBuffer bb) {
byte a = (byte) (header & 0xFF);
name = aliasToComparatorMapping.get(a);
if (name == null) {
a = (byte) Character.toUpperCase((char) a);
a = (byte) Character.toLowerCase((char) a);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Transforming to the storage needs to call toUpperCase when reversed. As a result, we need to lower the value to determine it's comparator

@tnine
Copy link
Contributor Author

tnine commented May 30, 2014

@opuneet Bump. Any chance we can get this merged?

@zznate
Copy link

zznate commented May 30, 2014

@opuneet This is holding us up a bit in moving Usergrid (https://usergrid.incubator.apache.org/) off of Hector. No pressure though :)

@tnine
Copy link
Contributor Author

tnine commented Aug 27, 2014

@opuneet Bump. Is this obsolete in the new 2.x releases ?

@tnine
Copy link
Contributor Author

tnine commented Dec 12, 2014

@opuneet Sorry to flog a dead horse man, but this is holding up releasing Usergrid 2.0 to the public in Apache. Is there any way we can get this merged into the 1.2.x branch and released?

@timiblossom timiblossom merged commit 75acddc into Netflix:master Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants