[Chandler-dev] Sorted subindex...not sorted properly - Rebuilding index...installed on value...

Andre Mueninghoff andre_mueninghoff at fastmail.fm
Thu Feb 8 19:26:22 PST 2007


Hi Bryan,

Okay, not exactly the same indications, but I've seen this also during
sessions in which I've seen the "rebuilding index..." stuff. 

Repro Steps (using r13105) (not exactly mutually exclusive steps)
1. create a new repository using C:\Program
Files\Chandler0.7alpha5>release\runchandler.bat --stderr --nocatch
--create
2. Create new collection Untitled
3. Create 2nd new collection Untitled-1
4. Share both new collections to osaf.us
5. Create New Event on calendar in collection Untitled
6. Sync all
7. Change occurence of New Event in Untitled to weekly
8. Sync all
9. DnD New Event to collection Untitled-1, and click on All Events
10. Sync all
11. Check and Repair shows the following...

Checking repository ...
Check completed successfully in 0:00:01.641000
<DBRepositoryView: Sharing (40)> merging 3 items...
<DBRepositoryView: Sharing (44)> merging 5 items...
<DBRepositoryView: Sharing (45)> merging 6 items...
<DBRepositoryView: Sharing (46)> committed 86 items (67 kbytes) in
0:00:00.25000
0, 344 items/s (268 kbytes/s)
<DBRepositoryView: sharingTask (47)> committed 2 items (2 kbytes) in
0:00:00.375
000, 5 items/s (5 kbytes/s)
<DBRepositoryView: Sharing (48)> committed 3 items (1 kbytes) in
0:00:00.375000,
 8 items/s (3 kbytes/s)
<DBRepositoryView: Sharing (49)> committed 4 items (4 kbytes) in
0:00:00.047000,
 85 items/s (85 kbytes/s)
<DBRepositoryView: sharingTask (50)> committed 2 items (2 kbytes) in
0:00:00.125
000, 16 items/s (16 kbytes/s)
<DBRepositoryView: sharingTask (51)> committed 10 items (12 kbytes) in
0:00:00.1
25000, 80 items/s (96 kbytes/s)
<DBRepositoryView: MainThread (51)> merging 1 items...
<DBRepositoryView: Lucene (45)> indexed 5 items in 0:00:00.094000
<DBRepositoryView: MainThread (52)> committed 5 items (4 kbytes) in
0:00:00.0310
00, 161 items/s (129 kbytes/s)
Checking repository ...
Dangling reference <ref: (not loaded)
1b5d8d38-b7eb-11db-fb56-a50e65bd82fa> on <
BranchPointBlock: 92bfee26-b7ea-11db-f374-a50e65bd82fa>.selectedItem
Dangling reference <ref: (not loaded)
1b5d8d38-b7eb-11db-fb56-a50e65bd82fa> on <
BranchPointBlock: 92bfee26-b7ea-11db-f374-a50e65bd82fa>.detailItem
Check completed successfully in 0:00:01.640000
Traceback (most recent call last):
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 62, in with_sync
    method(*args, **kwds)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Table.p
y", line 297, in OnRangeSelect
    blockItem.PostSelectItems()
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Table.p
y", line 799, in PostSelectItems
    'collection': self.contentsCollection })
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 203, in postEventByName
    return self.postEventByNameWithSender (eventName, args, sender=self)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 197, in postEventByNameWithSender
    return theClass.post (event, args, sender)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 177, in post
    hookItem.dispatchEvent (event, Block.depth)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 1025, in dispatchEvent
    lambda child: (child is not None and
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 969, in broadcast
    broadcast (child, methodName, event, childTest)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 969, in broadcast
    broadcast (child, methodName, event, childTest)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 966, in broadcast
    callMethod (block, methodName, event)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 929, in callNamedMethod
    event.arguments ['results'] = member (blockOrWidget, event)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\BranchP
oint.py", line 131, in onSelectItemsEvent
    widget.wxSynchronizeWidget ()
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\BranchP
oint.py", line 65, in wxSynchronizeWidget
    self.blockItem.installTreeOfBlocks()
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\BranchP
oint.py", line 221, in installTreeOfBlocks
    IgnoreSynchronizeWidget(False, Rerender)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 80, in IgnoreSynchronizeWidget
    result = method(*args, **kwds)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\BranchP
oint.py", line 209, in Rerender
    'collection': self.detailItemCollection})
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 203, in postEventByName
    return self.postEventByNameWithSender (eventName, args, sender=self)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 197, in postEventByNameWithSender
    return theClass.post (event, args, sender)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 177, in post
    hookItem.dispatchEvent (event, Block.depth)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 1025, in dispatchEvent
    lambda child: (child is not None and
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 969, in broadcast
    broadcast (child, methodName, event, childTest)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 969, in broadcast
    broadcast (child, methodName, event, childTest)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 966, in broadcast
    callMethod (block, methodName, event)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 929, in callNamedMethod
    event.arguments ['results'] = member (blockOrWidget, event)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\calenda
r\CollectionCanvas.py", line 1088, in onSetContentsEvent
    self.postSelectItemsBroadcast()
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\calenda
r\CollectionCanvas.py", line 1113, in postSelectItemsBroadcast
    'collection': self.contentsCollection})
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 203, in postEventByName
    return self.postEventByNameWithSender (eventName, args, sender=self)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 197, in postEventByNameWithSender
    return theClass.post (event, args, sender)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 177, in post
    hookItem.dispatchEvent (event, Block.depth)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 1025, in dispatchEvent
    lambda child: (child is not None and
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 969, in broadcast
    broadcast (child, methodName, event, childTest)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 966, in broadcast
    callMethod (block, methodName, event)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\Block.p
y", line 929, in callNamedMethod
    event.arguments ['results'] = member (blockOrWidget, event)
  File "C:\Program
  Files\Chandler0.7alpha5\parcels\osaf\framework\blocks\BranchP
oint.py", line 123, in onSelectItemsEvent
    self.selectedItem = None
  File "C:\Program Files\Chandler0.7alpha5\repository\item\Item.py",
  line 189, i
n setAttributeValue
    old = _attrDict[name]
KeyError: <UUID: 1b5d8d38-b7eb-11db-fb56-a50e65bd82fa>
<DBRepositoryView: Lucene (52)> indexed 1 items in 0:00:00.094000

PS By the way, love the new sizable sidebar on my laptop, but it doesn't
render on my home PC, both Win XP Pro...go figure...will monitor.

On Thu, 08 Feb 2007 16:32:20 -0800, "Bryan Stearns"
<stearns at osafoundation.org> said:
> Hi Andre,
> 
> Thanks for writing about this. Andi thinks the indexing problem is an 
> instance of bug 7324:
> https://bugzilla.osafoundation.org/show_bug.cgi?id=7324
> 
> If you've got a reproducible case of it, please add repro steps to that 
> bug - Andi will be grateful!
> 
> (I'm not sure what the thread-not-released thing is - maybe someone else 
> will chime in about that, or you can let us know the exact text next 
> time you see it.)
> 
> Thanks,
> ...Bryan
> 
> 
> 
> Andre Mueninghoff wrote:
> > Hi, I'm seeing a lot of this type of output, and thought I'd mention it.
> > Is this is a known issue or would more investigation on my part be
> > potentially useful? The example below is from using r13085. Also, it
> > seems if I don't run check and repair frequently I get python crashes
> > with a comment to the effect of a thread not being released or
> > something. If useful, I could forward the exact text should I see that
> > again.
> > Thanks, Andre
> >
> > Checking repository ...
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 5c5c4898-b713-11db-a95e-f66d830d
> > 3456> is greater than the value for <UUID:
> > 5c3ae7ac-b713-11db-a94d-f66d830d3456>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 56fefe18-b713-11db-a545-f66d830d
> > 3456> is greater than the value for <UUID:
> > 569616a0-b713-11db-a512-f66d830d3456>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 569616a0-b713-11db-a512-f66d830d
> > 3456> is greater than the value for <UUID:
> > 56b9d9e6-b713-11db-a523-f66d830d3456>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 55f65912-b713-11db-a4e5-f66d830d
> > 3456> is greater than the value for <UUID:
> > 565354c8-b713-11db-a4f6-f66d830d3456>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 52decc5a-b713-11db-a30b-f66d830d
> > 3456> is greater than the value for <UUID:
> > 53028fa0-b713-11db-a31d-f66d830d3456>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 4f599376-b713-11db-a0ef-f66d830d
> > 3456> is greater than the value for <UUID:
> > 4f9c554e-b713-11db-a101-f66d830d3456>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 4aa7f246-b713-11db-9ea9-f66d830d
> > 3456> is greater than the value for <UUID:
> > 4afb6494-b713-11db-9ebb-f66d830d3456>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 466fe904-b713-11db-9ca0-f66d830d
> > 3456> is greater than the value for <UUID:
> > 469149f0-b713-11db-9cb2-f66d830d3456>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 1260a3dd-b6a0-11db-9979-a618cc93
> > 68f7> is greater than the value for <UUID:
> > 1211f643-b6a0-11db-9969-a618cc9368f7>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 0c15433b-b659-11db-867e-93166596
> > c958> is greater than the value for <UUID:
> > 0bdc0acb-b659-11db-866c-93166596c958>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > a9a6f86a-b5dc-11db-fb62-cc5f05fe
> > 1555> is greater than the value for <UUID:
> > a9c85956-b5dc-11db-fb88-cc5f05fe1555>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > a822591c-b5dc-11db-f956-cc5f05fe
> > 1555> is greater than the value for <UUID:
> > a80f464c-b5dc-11db-f943-cc5f05fe1555>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 9239e982-b58f-11db-db41-9d87f83b
> > 270b> is greater than the value for <UUID:
> > 92116188-b58f-11db-dafc-9d87f83b270b>
> >
> > Sorted subindex index 'osaf.views.main.summaryblocks.triageStatus'
> > installed on
> > value 'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> > (UUID('aXxYdWRyx7r9yv
> > DovUeOsb'), 'inclusions'))' of type <class
> > 'repository.item.Sets.Difference'> in
> >  attribute 'set' on <IndexedSelectionCollection:
> >  262c16ee-b58e-11db-baea-9d87f83
> > b270b> is not sorted properly: value for <UUID:
> > 922211fe-b58f-11db-db23-9d87f83b
> > 270b> is greater than the value for <UUID:
> > 92188896-b58f-11db-db10-9d87f83b270b>
> >
> > Rebuilding index 'osaf.views.main.summaryblocks.triageStatus' installed
> > on value
> >  'Difference((UUID('2oI5KWRzx7rbHpDovUeOsb'), 'set'),
> >  (UUID('aXxYdWRyx7r9yvDovUe
> > Osb'), 'inclusions'))' of type <class 'repository.item.Sets.Difference'>
> > in attr
> > ibute 'set' on <IndexedSelectionCollection:
> > 262c16ee-b58e-11db-baea-9d87f83b270b
> >   
> > Sorted subindex index 'osaf.views.main.summaryblocks.displayDate'
> > installed on v
> > alue 'Set((UUID('eT5ZpWRzx7rcE4DovUeOsb'), 'set'))' of type <class
> > 'repository.i
> > tem.Sets.Set'> in attribute 'set' on <IndexedSelectionCollection:
> > edcaba52-b58e-
> > 11db-ca13-9d87f83b270b> is not sorted properly: value for <UUID:
> > 7cfb9598-b58f-1
> > 1db-cf29-9d87f83b270b> is greater than the value for <UUID:
> > 7cefa9d6-b58f-11db-c
> > f16-9d87f83b270b>
> > Rebuilding index 'osaf.views.main.summaryblocks.displayDate' installed
> > on value
> > 'Set((UUID('eT5ZpWRzx7rcE4DovUeOsb'), 'set'))' of type <class
> > 'repository.item.S
> > ets.Set'> in attribute 'set' on <IndexedSelectionCollection:
> > edcaba52-b58e-11db-
> > ca13-9d87f83b270b>
> > Check completed successfully in 0:00:40
> >   
> 
-- 
  Andre Mueninghoff
  andre_mueninghoff at fastmail.fm



More information about the chandler-dev mailing list