From kris:
Hey Michael,
I just found a nasty little bug. It seems that the
CrawlJob states and the CrawlController states are
being mixed up, or rather, the CC states are being sent
to the CrawlJob instances, instead of proper CrawlJob
constants.
The best example, once a crawl is started it's state
should be 'Running' (CrawlJob constant) but is
currently set as 'RUNNING' (CrawlController constant).
As a result the UI will in at least one instance,
incorrectly interpret the state of the crawler since it
compares the reported states against the CrawlJob
constants. This really, really, really needs to be fixed.
My suggestion for a fix; change the
sendCrawlStateChangeEvent(Object newState, String message)
to only accept one parameter (newState), then send a
message based on the new state using CrawlJob
constants. For example:
if (newState.equals(PAUSED)) {
l.crawlPaused(CrawlJob.STATUS_PAUSED);
}
Problems with this:
1. May need to add more CrawlJob constants. At least
'waiting to finish' (may need to make changes to UI to
accomodate these.
2. The finish message will need more detail, (finish,
timelimit, ended by operator etc.)
In any case, this needs to be resolved. Currently,
things are a complete mess.
- Kris
Marking this as a higher than normal bug (I'm guessing
this explains why the cmdline client sometimes get
bogus state from the crawler).
Nobody/Anonymous
None
1.6.0
Public
|
Date: 2007-03-14 01:38
|
|
Date: 2005-11-02 20:45 Logged In: YES |
|
Date: 2005-03-01 22:58 Logged In: YES |
|
Date: 2005-02-21 11:23 Logged In: YES |
|
Date: 2005-01-21 09:24 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2005-11-02 20:45 | gojomo |
| status_id | Open | 2005-11-02 20:45 | gojomo |
| artifact_group_id | None | 2005-09-23 20:53 | gojomo |
| priority | 5 | 2005-09-23 19:00 | gojomo |
| priority | 7 | 2005-03-01 22:58 | stack-sf |
| data_type | 539102 | 2005-03-01 22:58 | stack-sf |
| priority | 5 | 2005-01-18 18:43 | stack-sf |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use