Workers SDK Issue Reports

← Back to Dashboard

#7211 wrangler 3.86.0 D1 triggers kj/table.c++ hash table warning

Recommendation:CLOSE
Difficulty:n/a
Reasoning:

Duplicate of #8153 which has detailed investigation, maintainer engagement, and active tracking. Original repro repo no longer available.

Suggested Action:

Close as duplicate of #8153

Analysis Report

Issue Review: cloudflare/workers-sdk#7211

Summary

D1 local database seeding triggers "excessive collisions in hash table" warning in wrangler 3.86.0+ on Windows/Linux.

Findings

  • Created: 2024-11-09
  • Updated: 2025-10-30
  • Version: wrangler 3.86.0 (reported) -> 4.60.0 (current)
  • Component: D1, Miniflare, workerd
  • Labels: bug
  • Comments: 0

Key Evidence

  • Duplicate of #8153: Issue #8153 reports the same underlying bug with more details and active investigation. Both involve hash table errors (kj/table.c++) when performing D1 operations locally on Windows/Linux.

  • Root Cause Identified: The bug was narrowed down to workerd 1.20250129.0 / miniflare 3.20250129.0 (introduced in wrangler 3.107.x). Users confirmed 3.106.0 and earlier work, 3.107.x+ fail.

  • Platform-Specific: The bug affects Windows and Linux but NOT macOS. A maintainer (@petebacondarwin) confirmed the error does not reproduce on macOS.

  • Workarounds Exist:

    1. Downgrade to wrangler@3.103.2 or wrangler@3.106.0
    2. Use sqlite3 CLI directly: sqlite3 .wrangler/state/v3/d1/miniflare-D1DatabaseObject/<id>.sqlite < ./db.sql
  • Actively Tracked: A Cloudflare team member (@vy-ton) acknowledged in April 2025 that this was planned to be addressed, though the fix has been delayed.

  • Original Reproduction Repo Unavailable: The linked reproduction repo (https://github.com/stuartin/wrangler-insert-bug) returns 404.

  • No Fix Merged: No PRs explicitly fix this issue. The changelog search found no references to #7211.

Recommendation

Status: CLOSE (as duplicate)

Reasoning: This issue is a duplicate of #8153, which is the canonical issue for this bug. Issue #8153 has more detailed investigation, reproduction steps, maintainer engagement, and active community tracking. The original reproduction repo for #7211 is no longer available.

Action: Close as duplicate of #8153, which has:

  • Verified reproduction with available test files
  • Detailed investigation pinpointing the regression to workerd 1.20250129.0
  • Active maintainer engagement
  • Community workarounds documented

Suggested Comment

Closing as duplicate of #8153, which tracks this same underlying bug (hash table inconsistency errors in local D1 operations on Windows/Linux).

Key findings from #8153:

  • The regression was introduced in workerd 1.20250129.0 (wrangler 3.107.x+)
  • The bug only affects Windows and Linux, not macOS
  • Workarounds: downgrade to wrangler@3.103.2 or use sqlite3 CLI directly on the local D1 database file

Please follow #8153 for updates on the fix.

Notes & Feedback (0)

No notes yet.

Add Note