Chronicle-Queue icon indicating copy to clipboard operation
Chronicle-Queue copied to clipboard

Consider refreshing TableDirectoryListing on WatchService notification instead of 1-minute interval

Open glukos opened this issue 4 years ago • 0 comments

TableDirectoryListing#refresh can be a heavy operation, especially if a frequent roll cycle is chosen. e.g. RollCycles#MINUTELY. Even though the allocation issue is mitigated under https://github.com/OpenHFT/Chronicle-Queue/issues/922, calling it once a minute may cause latency spikes. We should consider registering a WatchService in queue in order to trigger refresh only on start or if queue files were manually moved.

glukos avatar Oct 12 '21 22:10 glukos