testing/github-11039/steps.md
Add support to disk buffers to allow for versioning/schema evolution in the future, such that new versions of Vector can buffer items using different codecs or event schemas, while still potentially supporting previous versions during deprecation periods.
This primarily changes disk buffer v2 code, which is not yet officially released, so we're cool with the breaking change there. This testing focuses on the changes to disk buffer v1, which as designed should be a no-op, but to avoid data loss and another #10430-esque issue... we want to explicitly test before merging.
Start by grabbing a Vector binary for 0.19.0, and build one from the PR branch. We'll use a simple configuration that will read records from stdin and attempt to send them to an HTTP sink.
For the HTTP sink, we'll simply set it to a nonexistent endpoint. Since Vector will retry
"connection refused" errors, and retry them infinitely, the messages will never be acknowledged,
which ensures they remain in the buffer. For the purposes of verifying that the same data that went
in is still present after renaming the data directory, etc, we can use netcat (binary is called
nc) to listen on the port and inspect the HTTP request made by the sink.
nc listening on the HTTP port.nc listening on the relevant port.