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
I am trying to implement mmap and tsm compatibility to Windows via PR #4981 to fix #4358.
But MustWriteTSM in compact_test.go is trying to rename a file which is in use (a possible file leak scenario, not supported by Windows) is preventing me from proceeding. Could somebody here help me to resolve the issue?
>go test -v ./tsdb/engine/tsm1 > %temp%\gotest.txt 2>&1
--- FAIL: TestCompactor_Compact (0.00s)
panic: create tsm file: rename C:\Users\Ady\AppData\Local\Temp\tsm1-test087429749\tsm1test014002000 C:\Users\Ady\AppData\Local\Temp\tsm1-test087429749\000000001-000000001.tsm: The process cannot access the file because it is being used by another process. [recovered]
panic: create tsm file: rename C:\Users\Ady\AppData\Local\Temp\tsm1-test087429749\tsm1test014002000 C:\Users\Ady\AppData\Local\Temp\tsm1-test087429749\000000001-000000001.tsm: The process cannot access the file because it is being used by another process.
The root cause is in below code compact_test.go:761 where file handle returned by MustTempFile is not closed before rename operation, which is failing in Windows. Simply closing that handle before rename fails the next write operation.
I am trying to implement mmap and tsm compatibility to Windows via PR #4981 to fix #4358.
But MustWriteTSM in compact_test.go is trying to rename a file which is in use (a possible file leak scenario, not supported by Windows) is preventing me from proceeding. Could somebody here help me to resolve the issue?
gotest.txt
The root cause is in below code
compact_test.go:761
where file handle returned byMustTempFile
is not closed before rename operation, which is failing in Windows. Simply closing that handle before rename fails the next write operation.The text was updated successfully, but these errors were encountered: