google-code-export / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

Server detecting code changes too often #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.  When starting dev_appserver, specify the file path for the datastore as a 
file within your current project (i.e. the datastore file generated by the 
older dev_appserver.py).
2.  Any datastore operation will send _ah/stop and _ah/start requests to all 
instances on OS X.

What is the expected output? What do you see instead?

Writing to the datastore (or similarly, writing to cloud storage, etc with the 
storage path set to a directory inside the project directory) from within the 
running App Engine should not reload the appserver.

What version of the product are you using? On what operating system?

dev_appserver.py as shipped with App Engine 1.7.6, on Mac OS 10.7.2.

Please provide any additional information below.

Luckily, FSEventStreamCreate has a flag (kFSEventStreamCreateFlagIgnoreSelf) 
that allows you to ignore I/O originating from the current process.  This seems 
to fix the problem for me.  See attached (1 line) patch.

Original issue reported on code.google.com by ell...@getaround.com on 20 Mar 2013 at 7:13

Attachments: