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

fix(ilp): case insensitivity for table names via ILP #1826

Merged
merged 7 commits into from
Jan 26, 2022

Conversation

glasstiger
Copy link
Contributor

@glasstiger glasstiger commented Jan 24, 2022

Fixes an issue when lines ingested via ILP are not consistently using lower/uppercase table names.
If table names were different in case ILP handled them as separate tables which could lead to failures.
One thread could not get the lock to the table and ingestion could fail.

Fix is to use LowerCaseCharSequenceObjHashMap instead of CharSequenceObjHashMap when table name is used as a key in ILP related classes.

Tested by fuzz test.
Benchmarking does not show performance drop, compared to master.

@glasstiger glasstiger marked this pull request as draft January 25, 2022 19:09
@glasstiger glasstiger marked this pull request as ready for review January 26, 2022 11:54
@bluestreak01 bluestreak01 self-assigned this Jan 26, 2022
@ideoma
Copy link
Collaborator

ideoma commented Jan 26, 2022

[PR Coverage check]

😍 pass : 2 / 2 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cutlass/line/tcp/LineTcpMeasurementScheduler.java 2 2 100.00%

@bluestreak01 bluestreak01 merged commit 0749a8e into master Jan 26, 2022
@bluestreak01 bluestreak01 deleted the ilp-tablename-case branch January 26, 2022 14:38
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