You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs, err=newFileStoreWithCreated(fs.fcfg, cfg, time.Now(), prf(&fs.fcfg), nil) //Expire all messages so stream does not hold any message, this is to simulate consumer consuming all messages.
9576
+
require_NoError(t, err)
9577
+
require_NoError(t, fs.Stop()) //To Ensure there is a state file created
9578
+
require_True(t, len(fs.blks) ==1) //Since all messages are expire there should be only 1 blk file exist
9579
+
os.Remove(fs.blks[0].mfn) // we can change it to have a consumer and consumer all messages too, but removing blk files will simulate same behavior
9580
+
9581
+
//Now at this point stream has only index.db file and no blk files as all are deleted. previously it used to reset the stream state to 0
9582
+
// now it will use index.db to populate stream state if could not be recovered from blk files.
0 commit comments