Does this consistently fail every 1/3 times, or at certain times? Not that
it should matter, but how are you creating the PersistenceManager?
On Wed, Sep 1, 2010 at 6:21 PM, John wrote:
> This one is for App Engine team. Random silent failures, no
> explanation.
>
> I have a piece of code which only creates an entity and stores it
> with
>
> public void makeEntity() {
> UserPhoto photo = new UserPhoto(...);
> this.pm.makePersistent(photo);
> this.pm.close();
> assert photo.key != null; // <- fails from time to time
>
> From time to time, the code above will fail. Maybe once every 3
> times
> (with the same parameters).
>
> I am assuming that the store() call at the datastore level is failing
> for whatever reason, but it is a silent fail as the code does not
> throw any exception. When this happens I can confirm looking at the
> datastore viewer that the entity was not persisted.
> The size does not seem to matter (fails on 5kb as well as 200 kb).
>
> I have logs of the app where back to back requests will fail first
> and
> succeeds next, with the exact same payload.
>
> It would be great if the App Engine team can point to an open bug
> which remotely explains this behavior.
>
> (the problem was present with 1.3.4 already)
>
> The entity model is :
> @PersistenceCapable(identityType = IdentityType.APPLICATION,
> detachable = "true")
> public class UserPhoto {
>@PrimaryKey
>@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>Key key;
>@Persistent
>Blob photo;
>@Persistent
>Blob thumbPhoto;
>@Persistent
>private Key user;
>@Persistent
>private int size;
>@Persistent
>private String filename;
>@Persistent
>private Date date;
>@Persistent
>private Boolean canDelete;
>
> I tried persisting the entity with a transaction, and the problem is
> the same.
>
> This is my jdo-config
>
>
>
>
> value="org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory"/
> >
>value="appengine"/>
>value="true"/>
>value="true"/>
>
>value="true"/>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.