[google-appengine] Re: Inconsistency between dev_server and production server on sharded counter behaviour.

2009-02-07 Thread djidjadji
Every GeneralCounterShard is an entity group. A transaction can only operate on ONE entity group. Your transaction code accesses every GeneralCounterShard for a given name. With sharded counters you NEVER have a perfect value for the total count. The value for get_count() <= Sum(shards) You use sh

[google-appengine] Re: Inconsistency between dev_server and production server on sharded counter behaviour.

2009-02-07 Thread Qian Qiao
On Sat, Feb 7, 2009 at 16:25, djidjadji wrote: > > Every GeneralCounterShard is an entity group. > A transaction can only operate on ONE entity group. > Your transaction code accesses every GeneralCounterShard for a given name. > With sharded counters you NEVER have a perfect value for the total

[google-appengine] Re: Inconsistency between dev_server and production server on sharded counter behaviour.

2009-02-08 Thread djidjadji
If you have different behavior on dev_appserver and the production server you should file a bug report in the issue list http://code.google.com/p/googleappengine/issues/list At least dev_appserver should report the transaction problem the same as production. dev_appserver has code to check for m