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

Cassandra performance: repair_id prepared statements against repair_id & cache sequence #95

Merged
merged 1 commit into from
May 9, 2017

Conversation

michaelsembwever
Copy link
Member

Use prepared statements against repair_id, and cache a floor for the sequence number to reduce lookups.

ref: #94

… cache a floor for the sequence number to reduce lookups.

ref:
 - #94
 - #95
@michaelsembwever michaelsembwever force-pushed the mck/cassandra-prepared-and-cached-repair-id branch from b629e11 to 504e937 Compare May 9, 2017 04:19
@adejanovski
Copy link
Contributor

SonarQube analysis reported 1 issue

  • MAJOR 1 major

Watch the comments in this conversation to review them.

Preconditions.checkState(idValue < Long.MAX_VALUE);
attempts++;
if(10 <= attempts && 0 == attempts % 10){
LOG.warn("still cant find a new repairId after " + attempts + " attempts");
Copy link
Contributor

Choose a reason for hiding this comment

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

MAJOR Use the built-in formatting to construct this argument. rule

Copy link
Member Author

Choose a reason for hiding this comment

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

of little concern. WARN is generally always enabled, and the frequency of this log line low.

@michaelsembwever
Copy link
Member Author

Tested against creating (but not activating) a non-incremental repair with 1467 segments.

Before there was 14179 cql requests, after the patch only 5915 cql requests.

@tlpsonarqube
Copy link
Collaborator

SonarQube analysis reported 1 issue

  • MAJOR 1 major

Watch the comments in this conversation to review them.

Preconditions.checkState(idValue < Long.MAX_VALUE);
attempts++;
if(10 <= attempts && 0 == attempts % 10){
LOG.warn("still cant find a new repairId after " + attempts + " attempts");
Copy link
Collaborator

Choose a reason for hiding this comment

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

MAJOR Use the built-in formatting to construct this argument. rule

@adejanovski
Copy link
Contributor

LGTM, merging.

@adejanovski adejanovski merged commit 019dd8b into master May 9, 2017
michaelsembwever added a commit that referenced this pull request Jun 27, 2017
… cache a floor for the sequence number to reduce lookups. (#95)

ref:
 - #94
 - #95
@michaelsembwever michaelsembwever deleted the mck/cassandra-prepared-and-cached-repair-id branch July 20, 2017 02:06
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.

3 participants