Occassional Error during COPY statement - using Python/Pyodbc
Hi - I get an error every once in a while during a copy statement : [HY000] server sent data ("D" message) without prior row description ("T" message)\n (0) (SQLExecDirectW). what is exactly going on here? I'm using python/pyodbc to feed info to vertica. On most occassion the feed does work. It's once in a blue moon I get this...but this translates to once every two -three days, during a course of possibly 1000 loads. From what I'm finding on google - i get many hits for the client side running out of memory for Postgress Copy. Is this same for Vertica? What can be possible solutions besides allocating more memory to my process, Thanks
0
Comments
I am experiencing same problems with Vertica Analytic Database v6.1.3-0
Do I lose data when this happens ?
Thanks,
Josip
Have You tried Vertica 7?
How did You cought that Error?
Is there special type or I can do it by comparing error messages.
Could You just put your code snippet?
Thanks,
Josip
------------------------------------------------------>
This is my idea:
------------------------------------------------------>
COPY_ERROR = '[HY000] server sent data ("D" message) without prior row description ("T" message)\n (0) (SQLExecDirectW)'
try:
cursor().execute(copy_query)
except Exception, e:
error_msg = str(e)
if(error_msg == COPY_ERROR):
retry_copy()
Yeah...caught it the old fashion way just like you're doing:
except Exception, e:
log.error("Error processing file %s. Exception %s",price_file, e)