Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monit's nomatch always returns the additional number of elements that are search patterns. #12

Closed
racherb opened this issue Apr 28, 2021 · 1 comment
Assignees
Labels
invalid This doesn't seem right

Comments

@racherb
Copy link
Owner

racherb commented Apr 28, 2021

Bug
Monit's nomatch always returns the additional number of elements that are search patterns.

To Reproduce
Steps to reproduce the behavior:

  1. Here the watcher search has two elements that are file patterns.
fw=require('watcher').file
fw.creation({'/etc/*', '/opt/watcher/obs/host/tmp/*'})
  1. Take note of the value of the returned wid and wait for it to finish. The default MAXWAIT is 1 minute maximum wait time. Por example:1619642057921589

  2. Determine the number of nomatch elements for the value noted above.

mon=require('watcher').monit
mon.match(1619642057921589)
tarantool> mon.nomatch(1619642057921589)
---
- - [1619642057921589, '/etc/*', 1619642057922038559, false, '_', 0]
  - [1619642057921589, '/opt/watcher/obs/host/tmp/*', 1619642057922473550, false,
    '_', 0]
...
  1. As can be seen, the value of nomatch corresponds to the number of initial search patterns.

Expected behavior
The watcher for search patterns, when it has worked, should exclude the patterns.

@racherb racherb added the bug Something isn't working label Apr 28, 2021
@racherb racherb self-assigned this Apr 28, 2021
@racherb racherb added invalid This doesn't seem right and removed bug Something isn't working labels May 13, 2021
racherb added a commit that referenced this issue May 13, 2021
Solution to issue #12
@racherb
Copy link
Owner Author

racherb commented May 13, 2021

The commit a4b76be fixes the situation

@racherb racherb closed this as completed May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant