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 request tracker incremental cache write for new nodes #9719

Merged
merged 6 commits into from
May 16, 2024

Conversation

mattcompiles
Copy link
Contributor

↪️ Pull Request

This PR adds a fix for the RequestTracker incremental cache writing where node chunks are skipped being written even if they're not yet full. This can cause the nodes to become out of sync with their content keys. This fix is to ensure node chunks are marked as needing re-write when they are appended to.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@mattcompiles mattcompiles requested a review from a team May 16, 2024 05:44
@mattcompiles mattcompiles added this pull request to the merge queue May 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2024
@mattcompiles mattcompiles added this pull request to the merge queue May 16, 2024
Merged via the queue into v2 with commit 4556b5c May 16, 2024
16 of 17 checks passed
@@ -307,4 +307,89 @@ describe('RequestTracker', () => {
assert.strictEqual(cachedResult, 'b');
assert.strictEqual(called, false);
});

it('should write new nodes to cache', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey we discussed this was the failing test prior to this change.

Could you explain at some point why this line fixes it?

What do you mean re. "nodes getting appended to"?

@mischnic mischnic deleted the request-tracker-add-node-fix branch May 17, 2024 07:54
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