testing/github-10430/steps.md
Add logic to buffers::disk::open which checks for the "old style" vs "new style" buffer data
directories for the given buffer ID, and either renames the old-style path to the new-style path if
the new-style path doesn't already exist, or emits a warning if both exist and there is data left in
the old-style buffer. If there is no data left, then we rename the old-style directory by appending
_old to it, which stops the logic from seeing it the next time, but leaves it around in case
something about the code to read the buffer size is wrong and there is still data left.
Start by grabbing Vector binaries for 0.18.1, 0.19.0, and build one from the fix 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 to listen on the
port and inspect the HTTP request made by the sink.
_old prefix, and that it emits no log message.