incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Connectors Framework > How to Write an Output Connector
Date Mon, 25 Oct 2010 15:11:00 GMT
Space: Apache Connectors Framework (https://cwiki.apache.org/confluence/display/CONNECTORS)
Page: How to Write an Output Connector (https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector)
Comment: https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector?focusedCommentId=24184239#comment-24184239

Comment added by Karl Wright:
---------------------------------------------------------------------

That problem seems to be a bug in PostgreSQL itself - or maybe the JDBC driver is incompatible
with your version.  What version of Postgres are you running?

In reply to a comment by Farzad:
Unique ID for what?  Synchronized didn't work, cause I don't have the multiple threads one
object problem. I used a retry loop to solve the problem.

It crawled 47093 files before reporting this error. I think there is something not going well
in the db layer.  This exception didn't even get to my code.

Worker thread aborting and restarting due to database connection reset: Database exception:
Exception doing query: ERROR: unexpected chunk number 2 (expected 0) for toast value 34938
in pg_toast_2619
org.apache.manifoldcf.core.interfaces.ManifoldCFException: Database exception: Exception doing
query: ERROR: unexpected chunk number 2 (expected 0) for toast value 34938 in pg_toast_2619
 at org.apache.manifoldcf.core.database.Database.executeViaThread(Database.java:421)
 at org.apache.manifoldcf.core.database.Database.executeUncachedQuery(Database.java:449)
 at org.apache.manifoldcf.core.database.Database$QueryCacheExecutor.create(Database.java:1091)
 at org.apache.manifoldcf.core.cachemanager.CacheManager.findObjectsAndExecute(CacheManager.java:144)
 at org.apache.manifoldcf.core.database.Database.executeQuery(Database.java:167)
 at org.apache.manifoldcf.core.database.DBInterfacePostgreSQL.performQuery(DBInterfacePostgreSQL.java:754)
 at org.apache.manifoldcf.crawler.jobs.JobManager.processParentHashSet(JobManager.java:3609)
 at org.apache.manifoldcf.crawler.jobs.JobManager.calculateAffectedRestoreCarrydownChildren(JobManager.java:3578)
 at org.apache.manifoldcf.crawler.jobs.JobManager.finishDocuments(JobManager.java:3503)
 at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.java:591)
Caused by: org.postgresql.util.PSQLException: ERROR: unexpected chunk number 2 (expected 0)
for toast value 34938 in pg_toast_2619
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1548)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1316)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:351)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:255)
 at org.apache.manifoldcf.core.database.Database.execute(Database.java:552)
 at org.apache.manifoldcf.core.database.Database$ExecuteQueryThread.run(Database.java:381)


Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action

Mime
View raw message