[oe-commits] [bitbake] branch master-next updated: cooker: Handle inofity queue overflows more gracefully

git at git.openembedded.org git at git.openembedded.org
Wed Dec 7 14:48:55 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

The following commit(s) were added to refs/heads/master-next by this push:
       new  4c06261   cooker: Handle inofity queue overflows more gracefully
4c06261 is described below

commit 4c06261d199a8464f23cf4da2e277062cd179dad
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Dec 7 14:20:48 2016 +0000

    cooker: Handle inofity queue overflows more gracefully
    
    If many files change and the inotify queue overflows, rather than print
    a traceback, invalidate the caches and warn the user.
    
    [YOCTO #10676]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/cooker.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 1fe693c..9999e58 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -252,6 +252,10 @@ class BBCooker:
         signal.signal(signal.SIGHUP, self.sigterm_exception)
 
     def config_notifications(self, event):
+        if event.maskname == "IN_Q_OVERFLOW":
+            bb.warn("inotify event queue overflowed, invalidating caches.")
+            self.baseconfig_valid = False
+            return
         if not event.pathname in self.configwatcher.bbwatchedfiles:
             return
         if not event.pathname in self.inotify_modified_files:
@@ -259,6 +263,10 @@ class BBCooker:
         self.baseconfig_valid = False
 
     def notifications(self, event):
+        if event.maskname == "IN_Q_OVERFLOW":
+            bb.warn("inotify event queue overflowed, invalidating caches.")
+            self.parsecache_valid = False
+            return
         if not event.pathname in self.inotify_modified_files:
             self.inotify_modified_files.append(event.pathname)
         self.parsecache_valid = False

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list