Opened 13 years ago
Closed 13 years ago
#10458 closed defect (worksforme)
Commithook is aborted when trac cache warning appears
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | ticket system | Version: | 0.11.5 |
Severity: | major | Keywords: | cache unique hook |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi there,
we have a problem in our trac env, we use a post-commit hook to update a trac ticket when it is referenced in a commit comment. This works great until the past few weeks we often get this:
Trac[cache] WARNING: Revision 48348 already cached: column rev is not unique
As this is only a warning, i would think everything is ok and only the cache has to updated, but the commet ist not written into the ticket anymore.
Full log file part looks like this:
2011-11-11 09:50:32,251 Trac[main] DEBUG: Dispatching <Request "GET u'/ticket/10985'"> 2011-11-11 09:50:32,253 Trac[cache] INFO: repos rev [48348] != cached rev [48347] 2011-11-11 09:50:32,254 Trac[cache] INFO: Trying to sync revision [48348] 2011-11-11 09:50:32,261 Trac[svn_fs] DEBUG: Subversion bindings imported 2011-11-11 09:50:32,261 Trac[cache] DEBUG: Caching node change in [48348]: (u'path/to/javafile/file.java', 'file', 'edit', u'path/to/javafile/file.java', 4829 9) 2011-11-11 09:50:32,261 Trac[cache] DEBUG: Caching node change in [48348]: (u'path/to/javafile/anotherfile.java', 'file', 'edit', u'path/to/javafile/anotherfile.java', 48299) 2011-11-11 09:50:32,261 Trac[cache] DEBUG: Caching node change in [48348]: (u'path/to/javafile/thirdfile.java', 'file', 'edit', u'path/to/javafile/thirdfile.java' , 45690) 2011-11-11 09:50:32,263 Trac[cache] INFO: repos rev [48348] != cached rev [48347] 2011-11-11 09:50:32,264 Trac[cache] INFO: Trying to sync revision [48348] 2011-11-11 09:50:32,300 Trac[cache] WARNING: Revision 48348 already cached: column rev is not unique
Sadly but true, i can't find a solution for that.
Attachments (0)
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
worksforme if you update to Trac 0.12, wontfix otherwise.
The PostCommitHooks in Trac ≥ 0.12 work differently, and this problem is no longer a concern.