<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: vale pathadd</title>
    <description>The latest articles on DEV Community by vale pathadd (@pathadd).</description>
    <link>https://dev.to/pathadd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4257186%2F4edf85fd-6678-4a78-befc-0d2b3c531880.png</url>
      <title>DEV Community: vale pathadd</title>
      <link>https://dev.to/pathadd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pathadd"/>
    <language>en</language>
    <item>
      <title>How a 24-Hour Apache Pulsar Outage Turned Into a Local-First Web Toolkit</title>
      <dc:creator>vale pathadd</dc:creator>
      <pubDate>Sat, 21 Nov 2026 11:17:11 +0000</pubDate>
      <link>https://dev.to/pathadd/how-a-24-hour-apache-pulsar-outage-turned-into-a-local-first-web-toolkit-2j82</link>
      <guid>https://dev.to/pathadd/how-a-24-hour-apache-pulsar-outage-turned-into-a-local-first-web-toolkit-2j82</guid>
      <description>&lt;p&gt;A few months ago, I spent 24 hours straight tracking down a production Apache Pulsar outage: producers kept writing to a topic, yet every consumer on that topic froze.&lt;/p&gt;

&lt;h2&gt;
  
  
  The deceptive bug: &lt;code&gt;failed to read entries&lt;/code&gt; wasn't a storage failure
&lt;/h2&gt;

&lt;p&gt;The broker logs pointed straight at storage (&lt;code&gt;EntryCacheImpl - failed to read entries&lt;/code&gt;), which normally makes you suspect BookKeeper data corruption.&lt;/p&gt;

&lt;p&gt;Reading the BookKeeper ledger directly proved the entries were intact. Comparing Pulsar &lt;code&gt;2.8.4&lt;/code&gt; against &lt;code&gt;2.10.6&lt;/code&gt; finally exposed the real culprit: a rare same-thread recursive reentrancy on the replay/redelivery path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ManagedCursor replay
 -&amp;gt; ManagedLedger asyncReadEntry
 -&amp;gt; EntryCacheImpl cache hit (synchronous callback)
 -&amp;gt; PersistentDispatcherMultipleConsumers readEntriesComplete
 -&amp;gt; sendMessagesToConsumers
 -&amp;gt; readMoreEntries -&amp;gt; asyncReplayEntries -&amp;gt; ... -&amp;gt; StackOverflowError
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When multiple conditions lined up for enough consecutive rounds, &lt;code&gt;readMoreEntries()&lt;/code&gt; kept recursing on the same &lt;code&gt;BookKeeperClientWorker-OrderedExecutor&lt;/code&gt; thread until it blew the JVM stack. Pulsar &lt;code&gt;2.10.6&lt;/code&gt; later added &lt;code&gt;sendInProgress&lt;/code&gt; reentrancy guards and async executor scheduling specifically to prevent this.&lt;/p&gt;

&lt;h2&gt;
  
  
  The real pain after the outage: fighting Word while exhausted
&lt;/h2&gt;

&lt;p&gt;Stabilizing the cluster was only half the battle. By the time the postmortem was ready, I was completely drained—and still had to deliver clean, human-readable &lt;strong&gt;Word (&lt;code&gt;.docx&lt;/code&gt;)&lt;/strong&gt; reports to multiple non-engineering departments.&lt;/p&gt;

&lt;p&gt;What I had on my desk:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Piles of Markdown notes and AI-assisted root-cause drafts full of dense jargon.&lt;/li&gt;
&lt;li&gt;Production log snippets with internal IPs, hostnames, and service names.&lt;/li&gt;
&lt;li&gt;Timeline tables, formulas, and Mermaid diagrams.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Anyone who has tried copy-pasting Markdown or AI output into Word knows the headache: tables collapse or misalign, equations turn into flat text or blurry screenshots, Mermaid blocks stay as raw code, and you end up spending another hour fighting indentation, line spacing, and styles when all you want is to go to sleep.&lt;/p&gt;

&lt;p&gt;And because the drafts contained real production logs, uploading them to random online converters was out of the question.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built out of that night
&lt;/h2&gt;

&lt;p&gt;That single night became the core workflow behind &lt;strong&gt;&lt;a href="https://pathadd.com/en/" rel="noopener noreferrer"&gt;Pathadd&lt;/a&gt;&lt;/strong&gt; — a restrained, browser-only toolkit with zero sign-up, zero ads, and zero uploads:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://pathadd.com/en/tools/log-redaction/" rel="noopener noreferrer"&gt;Log Redaction &amp;amp; Restoration&lt;/a&gt;&lt;/strong&gt;: Mask IPs, tokens, and connection strings locally with reversible tokens before asking AI for help, then restore real values in one click.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://pathadd.com/en/tools/ai-context/" rel="noopener noreferrer"&gt;Redacted AI Context Packer&lt;/a&gt;&lt;/strong&gt;: Pack multiple local source files into structured Markdown with token estimates, default secret masking, and custom K–V replacements (e.g., internal domains or company names).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://pathadd.com/en/tools/markdown2word/showcase.html" rel="noopener noreferrer"&gt;Markdown &amp;amp; AI to Editable Word (&lt;code&gt;.docx&lt;/code&gt;)&lt;/a&gt;&lt;/strong&gt;: Convert Markdown, complex tables, native editable Word equations (OMML), and Mermaid timelines/flowcharts into clean &lt;code&gt;.docx&lt;/code&gt; and vector PDF purely in the browser.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you've ever finished a brutal on-call shift only to spend another hour fighting Word formatting or scrubbing logs by hand, I'd love your feedback on the live showcase: &lt;a href="https://pathadd.com/en/tools/markdown2word/showcase.html" rel="noopener noreferrer"&gt;https://pathadd.com/en/tools/markdown2word/showcase.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>pulsar</category>
      <category>markdown</category>
      <category>productivity</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
