Skip to content

Conversation

@ShooterIT
Copy link
Collaborator

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2025

Codecov Report

❌ Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (cluster-asm@5fa6730). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/aof.c 90.00% 2 Missing ⚠️
src/cluster_asm.c 86.66% 2 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##             cluster-asm      #53   +/-   ##
==============================================
  Coverage               ?   69.69%           
==============================================
  Files                  ?      125           
  Lines                  ?    73788           
  Branches               ?        0           
==============================================
  Hits                   ?    51426           
  Misses                 ?    22362           
  Partials               ?        0           
Files with missing lines Coverage Δ
src/server.h 100.00% <ø> (ø)
src/aof.c 81.76% <90.00%> (ø)
src/cluster_asm.c 87.46% <86.66%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ShooterIT ShooterIT changed the title AOF format Use AOF format to import data Aug 8, 2025
@ShooterIT ShooterIT marked this pull request as ready for review August 8, 2025 15:42
* Generally RDB binary format is more efficient, but it may cause
* block in the destination if the object is too large, so fall back
* to AOF format if necessary. */
if ((o->type != OBJ_STRING && getObjectLength(o) <= AOF_REWRITE_ITEMS_PER_CMD) ||
Copy link
Owner

Choose a reason for hiding this comment

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

getObjectLength() will always return zero for module type. Maybe we should exclude module types from this length check.

Copy link
Owner

Choose a reason for hiding this comment

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

though, not sure how we check this for module types.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good catch, now for module type, if it supports aof_rewrite, we just use AOF format.

@ShooterIT ShooterIT merged commit 1d21140 into tezc:cluster-asm Aug 15, 2025
16 of 18 checks passed
@ShooterIT ShooterIT deleted the asm-aof branch August 15, 2025 11:15
tezc pushed a commit that referenced this pull request Sep 10, 2025
tezc pushed a commit that referenced this pull request Sep 16, 2025
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