Sonarr version (exact version): 3.0.6.1196
Mono version (if Sonarr is not running on Windows): 5.20.1.34
OS: LSIO docker container
Debug logs: https://www.dropbox.com/s/1r44usmy1adrmj1/logs.zip?dl=0
Description of issue:
This looks to be a bug as it never happened before. I have Sonarr set to change the timestamp of my media to “Local Air Date” on import/rescan. It works fine but it sets the sub-second timestamp of the files to .00000 which conflicts with snapRAID on my Debian host. I’m fine with the files initially being set to a zero sub-second timestamp but after the sub-second timestamp gets edited to a random value by snapRAID, Sonarr should detect it as the same timestamp and not touch it further. Again, this was a behavior that was not happening before. See this before and after rescan:
root@epsilon:~# ls -la --full-time /mnt/data/media/tv/Sherlock\ \(2010\)/Season\ 01
total 20280212
drwxrwxr-x 2 dockeruser users 4096 2021-01-01 17:41:07.372133874 +0800 .
drwxrwxr-x 6 dockeruser users 4096 2017-01-20 14:31:01.291431200 +0800 ..
-rw-rw-r-- 1 dockeruser users 101619 2021-01-13 01:20:16.920010177 +0800 'Sherlock (2010) - S01E01 - A Study in Pink [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.en.srt'
-rw-rw-r-- 1 dockeruser users 6922211008 2010-07-25 21:00:00.823076722 +0800 'Sherlock (2010) - S01E01 - A Study in Pink [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.mp4'
-rw-rw-r-- 1 dockeruser users 78646 2021-01-13 01:20:17.158365303 +0800 'Sherlock (2010) - S01E02 - The Blind Banker [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.en.srt'
-rw-rw-r-- 1 dockeruser users 6921844020 2010-08-01 21:00:00.645026264 +0800 'Sherlock (2010) - S01E02 - The Blind Banker [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.mp4'
-rw-rw-r-- 1 dockeruser users 103074 2021-01-13 01:20:17.186202950 +0800 'Sherlock (2010) - S01E03 - The Great Game [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.en.srt'
-rw-rw-r-- 1 dockeruser users 6922566731 2010-08-08 21:00:00.567137154 +0800 'Sherlock (2010) - S01E03 - The Great Game [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.mp4'
root@epsilon:~# ls -la --full-time /mnt/data/media/tv/Sherlock\ \(2010\)/Season\ 01
total 20280212
drwxrwxr-x 2 dockeruser users 4096 2021-01-01 17:41:07.372133874 +0800 .
drwxrwxr-x 6 dockeruser users 4096 2017-01-20 14:31:01.291431200 +0800 ..
-rw-rw-r-- 1 dockeruser users 101619 2021-01-13 01:20:16.920010177 +0800 'Sherlock (2010) - S01E01 - A Study in Pink [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.en.srt'
-rw-rw-r-- 1 dockeruser users 6922211008 2010-07-25 21:00:00.000000000 +0800 'Sherlock (2010) - S01E01 - A Study in Pink [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.mp4'
-rw-rw-r-- 1 dockeruser users 78646 2021-01-13 01:20:17.158365303 +0800 'Sherlock (2010) - S01E02 - The Blind Banker [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.en.srt'
-rw-rw-r-- 1 dockeruser users 6921844020 2010-08-01 21:00:00.000000000 +0800 'Sherlock (2010) - S01E02 - The Blind Banker [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.mp4'
-rw-rw-r-- 1 dockeruser users 103074 2021-01-13 01:20:17.186202950 +0800 'Sherlock (2010) - S01E03 - The Great Game [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.en.srt'
-rw-rw-r-- 1 dockeruser users 6922566731 2010-08-08 21:00:00.000000000 +0800 'Sherlock (2010) - S01E03 - The Great Game [Bluray-1080p][8bit][x264][AAC 2.0]-Sonarr.mp4'
To further prove my point, I have Radarr set to change the filestamp as well but this issue never happens with it. Radarr knows not to change the timestamp when the sub-second timestamp is different.