SQLTrace isn't deleting files appropriately
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- powershell
- Domain
- tooling
Research direction
Start with SQLTrace.ps1 and the INI settings for DeleteOldFiles, MinFiles, and MinMinutes. Run .\SQLTrace.ps1 -start with the reported configuration and observe file creation and cleanup over time. Done means files beyond the MinFiles limit are removed once their LastWriteTime exceeds MinMinutes.
Written by the indexing model from the issue text.
Description
SQL Trace has settings to delete old files in the INI file.
DeleteOldFiles = Yes # This triggers the switch to delete old files depending on configuration of MinFiles and MinMinutes
MinFiles = 5 # Only delete files beyond this limit that are more than MinMinutes old
MinMinutes = 1 # Only delete files older than this number of minutes (LastWriteTime) has elapsed
When testing the above on my local machine, I let it run for an hour and produced 5 files. The SQLTrace didn't delete them. I only used the ".\SQLTrace.ps1 -start " with no extra parameters.
- Dominant language
- C#
- Stars
- 209
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/CSS_SQL_Networking_Tools
-
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
SQLCheck Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in microsoft/CSS_SQL_Networking_Tools
Similar issues
-
Status: Waiting triage Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nanoframework/Home#1857 ·
-
kind/bug kind/regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
unoplatform/uno.toolkit.ui#1646 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nightscout/nocturne#1379 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
elastic/esql-dotnet#47 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100