-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Never read with cockpit.file('/boot/bigfile').watch(callback, {'read': false }) #19983
Comments
The docs does mention the initial read(), but indeed we need to fix that to not happen with However, it does make sense to always call the watch handler initially, so that consumers don't need to call it explicitly once - you almost always want this for initialization. But we should describe it as such. That test does not modify the file after setting up the watch, so why would your handler ever be called? This may be related to .read() forcing a watch handler callback, or just badly worded. So indeed this needs to be fixed -- we need to replace that .read() with calling the watch handler on init with |
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
@jelly @martinpitt Is Cockpit-Project taking part in GSoC 2024? |
@VivekJaiswal18 so far we have no GSoC 2024 plans, please don't use issues to ask about GSoC and use Github's discussions feature. |
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
By using the new fsinfo channel fswatch1 can now read the tag without reading the file when adding a new watch. As side-effect this no longer reads the full file when `{ read: false }` is passed to `watch()`. Closes: cockpit-project#19983 Co-Authored-By: Allison Karlitskaya <allison.karlitskaya@redhat.com>
This would initially when setting up read the
/boot/bigfile
which is undesired behaviour caused by this. Not callingread()
when options.read == false seems to hangwatch()
so more work is required to get this fixed.Unit test for verification: a6838ab
The text was updated successfully, but these errors were encountered: