an update() that updates 0 records is not considered a failure so there will be no logs about it.
On Wednesday, March 7, 2012 4:41:14 AM UTC-8, Sushant Taneja wrote: > > The update() returns 0. I am now taking care of it. > But I still don't see any error logs corresponding to the updates etc. > > May be the reason is eventual consistency. > > Thanks for the help > > On Wednesday, March 7, 2012 10:16:32 AM UTC+5:30, Sushant Taneja wrote: >> >> As per my understanding, update statement returns the number of records >> updated. >> What does it return when no records are updated 0 or None ? >> Will have to modify my code accordingly >> >> On Wednesday, March 7, 2012 9:33:48 AM UTC+5:30, howesc wrote: >>> >>> you probably need to add some more logging to see what is happening. >>> perhaps the row is not found? (remember eventual consistency), perhaps >>> there is some other error that is currently not being logged.... >>> >>> On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: >>>> >>>> Yes I did check GAE logs. >>>> There are no logs with severity level error. >>>> >>>> On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: >>>>> >>>>> I dont know, but have you examined the GAE log? >>>>> >>>>> 2012/3/6 Sushant Taneja <[email protected]>: >>>>> > Hi, >>>>> > >>>>> > I thought the same but as you can see I have handled the Timeout >>>>> exception >>>>> > in the code. >>>>> > If its the Timeout then why I am unable to catch the exception ? >>>>> > >>>>> > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: >>>>> >> >>>>> >> Looks its a timeout. >>>>> >> Maybe I am wrong but you can state an update too many records. GAE >>>>> has >>>>> >> time limitations, I dont know how much because I dont use it >>>>> anymore. >>>>> >> Search for the GAE docs on these limitations. >>>>> >> >>>>> >> 2012/3/6 Sushant Taneja <[email protected]>: >>>>> >> > Hi All, >>>>> >> > >>>>> >> > I am building a invite module. >>>>> >> > In the controller, I have the following code : >>>>> >> > >>>>> >> > try: >>>>> >> > .... some initial stuff >>>>> >> > >>>>> >> > try: >>>>> >> > >>>>> >> > ... some stuff >>>>> >> > >>>>> >> > update_request_query = (db.INVITE_SIGNUP.email_id == >>>>> >> > request_email_id) >>>>> >> > >>>>> >> > >>>>> >> > >>>>> >>>>> db(update_request_query).update(activation_key=key,activation_url=activation_url) >>>>> >> > >>>>> >> > ... some other stuff >>>>> >> > >>>>> >> > except (Timeout,TransactionFailedError,InternalError), derr: >>>>> >> > logger.warn('Datastore exception for ID: '+ >>>>> >> > request_email_id +': '+ str(derr)) >>>>> >> > except (Error, Exception), ex: >>>>> >> > logger.error('Fatal Error: '+ request_email_id +': '+ >>>>> >> > str(ex)) >>>>> >> > >>>>> >> > The problem is that the update statement is not working on GAE. >>>>> The >>>>> >> > fields >>>>> >> > which need to be updated are NULL and no error is thrown. >>>>> >> > From my observation, this is happening once a day approx around >>>>> the time >>>>> >> > when daily quota is reset. >>>>> >> > >>>>> >> > Am I doing something wrong here ? >>>>> >> > >>>>> >> > Thanks, >>>>> >> > Sushant >>>>> >> > >>>>> >> > >>>>> >> >>>>> >> -- >>>>> >> Carlos J. Costa >>>>> >> Cientista da Computação >>>>> >> Esp. Gestão em Telecom >>>>> >> >>>>> >> EL MELECH NEEMAN! >>>>> >> אָמֵן >>>>> >>>>> -- >>>>> Carlos J. Costa >>>>> Cientista da Computação >>>>> Esp. Gestão em Telecom >>>>> >>>>> EL MELECH NEEMAN! >>>>> אָמֵן >>>>> >>>>> >>> On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: >>>> >>>> Yes I did check GAE logs. >>>> There are no logs with severity level error. >>>> >>>> On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: >>>>> >>>>> I dont know, but have you examined the GAE log? >>>>> >>>>> 2012/3/6 Sushant Taneja <[email protected]>: >>>>> > Hi, >>>>> > >>>>> > I thought the same but as you can see I have handled the Timeout >>>>> exception >>>>> > in the code. >>>>> > If its the Timeout then why I am unable to catch the exception ? >>>>> > >>>>> > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: >>>>> >> >>>>> >> Looks its a timeout. >>>>> >> Maybe I am wrong but you can state an update too many records. GAE >>>>> has >>>>> >> time limitations, I dont know how much because I dont use it >>>>> anymore. >>>>> >> Search for the GAE docs on these limitations. >>>>> >> >>>>> >> 2012/3/6 Sushant Taneja <[email protected]>: >>>>> >> > Hi All, >>>>> >> > >>>>> >> > I am building a invite module. >>>>> >> > In the controller, I have the following code : >>>>> >> > >>>>> >> > try: >>>>> >> > .... some initial stuff >>>>> >> > >>>>> >> > try: >>>>> >> > >>>>> >> > ... some stuff >>>>> >> > >>>>> >> > update_request_query = (db.INVITE_SIGNUP.email_id == >>>>> >> > request_email_id) >>>>> >> > >>>>> >> > >>>>> >> > >>>>> >>>>> db(update_request_query).update(activation_key=key,activation_url=activation_url) >>>>> >> > >>>>> >> > ... some other stuff >>>>> >> > >>>>> >> > except (Timeout,TransactionFailedError,InternalError), derr: >>>>> >> > logger.warn('Datastore exception for ID: '+ >>>>> >> > request_email_id +': '+ str(derr)) >>>>> >> > except (Error, Exception), ex: >>>>> >> > logger.error('Fatal Error: '+ request_email_id +': '+ >>>>> >> > str(ex)) >>>>> >> > >>>>> >> > The problem is that the update statement is not working on GAE. >>>>> The >>>>> >> > fields >>>>> >> > which need to be updated are NULL and no error is thrown. >>>>> >> > From my observation, this is happening once a day approx around >>>>> the time >>>>> >> > when daily quota is reset. >>>>> >> > >>>>> >> > Am I doing something wrong here ? >>>>> >> > >>>>> >> > Thanks, >>>>> >> > Sushant >>>>> >> > >>>>> >> > >>>>> >> >>>>> >> -- >>>>> >> Carlos J. Costa >>>>> >> Cientista da Computação >>>>> >> Esp. Gestão em Telecom >>>>> >> >>>>> >> EL MELECH NEEMAN! >>>>> >> אָמֵן >>>>> >>>>> -- >>>>> Carlos J. Costa >>>>> Cientista da Computação >>>>> Esp. Gestão em Telecom >>>>> >>>>> EL MELECH NEEMAN! >>>>> אָמֵן >>>>> >>>>> >>> On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: >>>> >>>> Yes I did check GAE logs. >>>> There are no logs with severity level error. >>>> >>>> On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: >>>>> >>>>> I dont know, but have you examined the GAE log? >>>>> >>>>> 2012/3/6 Sushant Taneja <[email protected]>: >>>>> > Hi, >>>>> > >>>>> > I thought the same but as you can see I have handled the Timeout >>>>> exception >>>>> > in the code. >>>>> > If its the Timeout then why I am unable to catch the exception ? >>>>> > >>>>> > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: >>>>> >> >>>>> >> Looks its a timeout. >>>>> >> Maybe I am wrong but you can state an update too many records. GAE >>>>> has >>>>> >> time limitations, I dont know how much because I dont use it >>>>> anymore. >>>>> >> Search for the GAE docs on these limitations. >>>>> >> >>>>> >> 2012/3/6 Sushant Taneja <[email protected]>: >>>>> >> > Hi All, >>>>> >> > >>>>> >> > I am building a invite module. >>>>> >> > In the controller, I have the following code : >>>>> >> > >>>>> >> > try: >>>>> >> > .... some initial stuff >>>>> >> > >>>>> >> > try: >>>>> >> > >>>>> >> > ... some stuff >>>>> >> > >>>>> >> > update_request_query = (db.INVITE_SIGNUP.email_id == >>>>> >> > request_email_id) >>>>> >> > >>>>> >> > >>>>> >> > >>>>> >>>>> db(update_request_query).update(activation_key=key,activation_url=activation_url) >>>>> >> > >>>>> >> > ... some other stuff >>>>> >> > >>>>> >> > except (Timeout,TransactionFailedError,InternalError), derr: >>>>> >> > logger.warn('Datastore exception for ID: '+ >>>>> >> > request_email_id +': '+ str(derr)) >>>>> >> > except (Error, Exception), ex: >>>>> >> > logger.error('Fatal Error: '+ request_email_id +': '+ >>>>> >> > str(ex)) >>>>> >> > >>>>> >> > The problem is that the update statement is not working on GAE. >>>>> The >>>>> >> > fields >>>>> >> > which need to be updated are NULL and no error is thrown. >>>>> >> > From my observation, this is happening once a day approx around >>>>> the time >>>>> >> > when daily quota is reset. >>>>> >> > >>>>> >> > Am I doing something wrong here ? >>>>> >> > >>>>> >> > Thanks, >>>>> >> > Sushant >>>>> >> > >>>>> >> > >>>>> >> >>>>> >> -- >>>>> >> Carlos J. Costa >>>>> >> Cientista da Computação >>>>> >> Esp. Gestão em Telecom >>>>> >> >>>>> >> EL MELECH NEEMAN! >>>>> >> אָמֵן >>>>> >>>>> -- >>>>> Carlos J. Costa >>>>> Cientista da Computação >>>>> Esp. Gestão em Telecom >>>>> >>>>> EL MELECH NEEMAN! >>>>> אָמֵן >>>>> >>>>> >>> On Tuesday, March 6, 2012 7:18:36 AM UTC-8, Sushant Taneja wrote: >>>> >>>> Yes I did check GAE logs. >>>> There are no logs with severity level error. >>>> >>>> On Tuesday, March 6, 2012 7:46:52 PM UTC+5:30, yamandu wrote: >>>>> >>>>> I dont know, but have you examined the GAE log? >>>>> >>>>> 2012/3/6 Sushant Taneja <[email protected]>: >>>>> > Hi, >>>>> > >>>>> > I thought the same but as you can see I have handled the Timeout >>>>> exception >>>>> > in the code. >>>>> > If its the Timeout then why I am unable to catch the exception ? >>>>> > >>>>> > On Tuesday, March 6, 2012 7:30:38 PM UTC+5:30, yamandu wrote: >>>>> >> >>>>> >> Looks its a timeout. >>>>> >> Maybe I am wrong but you can state an update too many records. GAE >>>>> has >>>>> >> time limitations, I dont know how much because I dont use it >>>>> anymore. >>>>> >> Search for the GAE docs on these limitations. >>>>> >> >>>>> >> 2012/3/6 Sushant Taneja <[email protected]>: >>>>> >> > Hi All, >>>>> >> > >>>>> >> > I am building a invite module. >>>>> >> > In the controller, I have the following code : >>>>> >> > >>>>> >> > try: >>>>> >> > .... some initial stuff >>>>> >> > >>>>> >> > try: >>>>> >> > >>>>> >> > ... some stuff >>>>> >> > >>>>> >> > update_request_query = (db.INVITE_SIGNUP.email_id == >>>>> >> > request_email_id) >>>>> >> > >>>>> >> > >>>>> >> > >>>>> >>>>> db(update_request_query).update(activation_key=key,activation_url=activation_url) >>>>> >> > >>>>> >> > ... some other stuff >>>>> >> > >>>>> >> > except (Timeout,TransactionFailedError,InternalError), derr: >>>>> >> > logger.warn('Datastore exception for ID: '+ >>>>> >> > request_email_id +': '+ str(derr)) >>>>> >> > except (Error, Exception), ex: >>>>> >> > logger.error('Fatal Error: '+ request_email_id +': '+ >>>>> >> > str(ex)) >>>>> >> > >>>>> >> > The problem is that the update statement is not working on GAE. >>>>> The >>>>> >> > fields >>>>> >> > which need to be updated are NULL and no error is thrown. >>>>> >> > From my observation, this is happening once a day approx around >>>>> the time >>>>> >> > when daily quota is reset. >>>>> >> > >>>>> >> > Am I doing something wrong here ? >>>>> >> > >>>>> >> > Thanks, >>>>> >> > Sushant >>>>> >> > >>>>> >> > >>>>> >> >>>>> >> -- >>>>> >> Carlos J. Costa >>>>> >> Cientista da Computação >>>>> >> Esp. Gestão em Telecom >>>>> >> >>>>> >> EL MELECH NEEMAN! >>>>> >> אָמֵן >>>>> >>>>> -- >>>>> Carlos J. Costa >>>>> Cientista da Computação >>>>> Esp. Gestão em Telecom >>>>> >>>>> EL MELECH NEEMAN! >>>>> אָמֵן >>>>> >>>>>

