-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
it's possible for stream_ids to go backwards in a replication stream #7360
Comments
What needs to be done here? Is it adding some assertions or do we believe there's a bug to fix? |
I believe we should make sure this doesn't happen, with some tests. That said, I can't remember what led me to believe it could happen :/ |
right, a little context on this here, though the upshot is: This test file contains three lines labelled "workaround for #7360". I don't believe they should be required, but if you remove them, the tests fail. The problem is that if the I'm not quite sure why it's happening off-hand. |
Ah, I think this is probably stemming from the fact that sending a Two solutions:
I think 2. would be nice to have in general, though it is complicated by the fact that stream IDs can reset back to zero for ephemeral streams like |
I'm going to take a look at this. |
We had a brief chat about this:
|
And this applies to the |
Possibly |
It's possible to receive an
RDATA <stream> 1
after aPOSITION <stream> 2
- which is to say that the stream id goes backwards. It's not obvious that the replication clients always handle this correctly, and is probably a thing we should make sure doesn't happen.The text was updated successfully, but these errors were encountered: