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

see #238, data import broken #240

Merged
merged 6 commits into from
Dec 2, 2023

Conversation

YaacovHazan
Copy link
Collaborator

@YaacovHazan YaacovHazan commented Oct 31, 2023

The PR includes some refactoring and cleanup around the following:
object_generator

  • generate_key(), a new function that generates a key and stores it
    inside internal buffer (no need for a buffer at client level)

import_object_generator

  • Align it to object_generator APIs of getting key/value/expire
  • read_next_item - new function for reading the next item before
    creating SET command
  • read_next_key - new function for reading (pointing) to the next
    key before creating the GET command

data_object

  • Removed.
    We were already getting key/value/expire separately. Now that
    data-import and verify-data also moved to do it like that,
    we could remove it completely.

verify_client

  • Unify the craate_request with its base class, and derive the
    create_x_request functions.

The PR includes some refactoring and cleanup around the following:
object_generator
    - generate_key(), a new function that generates a key and stores it
      inside internal buffer (no need for a buffer at client level)
import_object_generator
    - Align it to object_generator APIs of getting key/value/expire
    - read_next_item - new function for reading the next item before
      creating SET command
    - read_next_key - new function for reading (pointing) to the next
      key before creating the GET command
data_object
    - removed.
      We were already getting key/value/expire separately. Now that
      data-import and verify-data also moved to do it like that,
      we could remove it completely.
verify_client
    - unify the craate_request with its base class, and derive the
      create_x_request functions.
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (a5e6f19) 56.88% compared to head (7ffe99b) 62.22%.

Files Patch % Lines
client.cpp 28.12% 23 Missing ⚠️
memtier_benchmark.cpp 33.33% 2 Missing ⚠️
shard_connection.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #240      +/-   ##
==========================================
+ Coverage   56.88%   62.22%   +5.34%     
==========================================
  Files          21       21              
  Lines        4388     4347      -41     
==========================================
+ Hits         2496     2705     +209     
+ Misses       1892     1642     -250     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@filipecosta90 filipecosta90 linked an issue Nov 16, 2023 that may be closed by this pull request
@filipecosta90 filipecosta90 linked an issue Nov 16, 2023 that may be closed by this pull request
filipecosta90
filipecosta90 previously approved these changes Nov 16, 2023
Copy link
Collaborator

@filipecosta90 filipecosta90 left a comment

Choose a reason for hiding this comment

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

LGTM

filipecosta90
filipecosta90 previously approved these changes Nov 18, 2023
@filipecosta90 filipecosta90 self-requested a review December 2, 2023 23:30
@filipecosta90 filipecosta90 merged commit e08d4cf into RedisLabs:master Dec 2, 2023
4 of 5 checks passed
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.

Error reported when running with "--data-import"
2 participants