handleUpdatedDiskVersion doesn't work

2 views
Skip to first unread message

genuine

unread,
Dec 28, 2011, 1:34:52 AM12/28/11
to zoie
I has add the addIndexingEventListener in ZoieSystem ,

ZoieSystem _zoie = (ZoieSystem) zoie;
_zoie.addIndexingEventListener(new IndexingEventListener() {
@Override
public void handleIndexingEvent(IndexingEvent evt) {
log.info(" ###########刷数据到硬盘事件 ###########");
}

@Override
public void handleUpdatedDiskVersion(String version) {
log.info("indexingEventListener update version###########");
}
});



when the data flush to disk will triger the handleIndexingEvent
function execute,
but it has nothing happen in handleUpdatedDiskVersion function while
change the version.

John Wang

unread,
Dec 29, 2011, 11:31:54 AM12/29/11
to zo...@googlegroups.com
What do you mean by when you changed the version?

That method is called right after flush by zoie, when the disk version is changed.

-John

2011/12/27 genuine <yzyge...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "zoie" group.
To post to this group, send email to zo...@googlegroups.com.
To unsubscribe from this group, send email to zoie+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zoie?hl=en.


genuine

unread,
Dec 29, 2011, 9:03:52 PM12/29/11
to zoie
That is, as you said, but did not trigger this function。


On Dec 30, 12:31 am, John Wang <john.w...@gmail.com> wrote:
> What do you mean by when you changed the version?
>
> That method is called right after flush by zoie, when the disk version is
> changed.
>
> -John
>
> 2011/12/27 genuine <yzygenu...@gmail.com>

genuine

unread,
Dec 29, 2011, 9:07:11 PM12/29/11
to zoie
2011-12-30 10:04:05 proj.zoie.impl.indexing.internal.DiskSearchIndex
openIndexWriter
信息: opening index writer at: /dev/shm/rent/index
2011-12-30 10:04:06
proj.zoie.impl.indexing.internal.IndexReaderDispenser getNewReader
信息: swap disk reader and release old one from system
2011-12-30 10:04:06 proj.zoie.impl.indexing.internal.DiskSearchIndex
setVersion
信息: ###########################修改硬盘索引版本:1325210630609
2011-12-30 10:04:06 proj.zoie.api.impl.ZoieMergePolicy
$MergePolicyParams setPartialExpunge
信息: useCompoundFile: false, doPartialExpunge: false, numLargeSegments:
6, maxSmallSegments: 7, mergeFactor: 6, maxMergeDocs: 2147483647
2011-12-30 10:04:06
proj.zoie.impl.indexing.internal.SearchIndexManager
setDiskIndexerStatus
信息: updating batch indexer status from Working to Sleep
2011-12-30 10:04:06
proj.zoie.impl.indexing.internal.SearchIndexManager
setDiskIndexerStatus
信息: Current writable index is A, B is flushed
2011-12-30 10:04:06 proj.zoie.api.DefaultDirectoryManager getDirectory
信息: created Directory: org.apache.lucene.store.NIOFSDirectory@/dev/shm/
rent/index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@47fbe7f3
2011-12-30 10:04:06 proj.zoie.api.DefaultDirectoryManager getDirectory
信息: created Directory: org.apache.lucene.store.NIOFSDirectory@/dev/shm/
rent/index
lockFactory=org.apache.lucene.store.NativeFSLockFactory@754c610e
2011-12-30 10:04:06
proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader processBatch
信息: flushed batch of 541 events to disk indexer, took: 938 current
event count: 0, current disk segment count: 9
2011-12-30 10:04:06
proj.zoie.impl.indexing.internal.RealtimeIndexDataLoader processBatch
信息: post-flush segment info: [_2dr,numDoc:350181,numDel:0][_215,numDoc:
503161,numDel:2][_2dv,numDoc:402520,numDel:0][_2du,numDoc:
250865,numDel:0][_2dt,numDoc:302377,numDel:0][_2ds,numDoc:
354425,numDel:0][_21v,numDoc:201627,numDel:7][_22n,numDoc:
166174,numDel:6377][_2hi,numDoc:19114,numDel:0]
2011-12-30 10:04:06 proj.zoie.solr.ZoieSystemHome$1
handleIndexingEvent
信息: indexingEventListener ###########


That is the part of the logs.

John Wang

unread,
Dec 30, 2011, 11:56:32 PM12/30/11
to zo...@googlegroups.com
Ah! I see the bug.

Great find!

I created the bug and checked in the fix: http://linkedin.jira.com/browse/ZOIE-100

Please pull latest from my master and give it a try. I will push another snapshot next week.

Thanks

-John

2011/12/29 genuine <yzyge...@gmail.com>

John Wang

unread,
Jan 1, 2012, 10:16:17 PM1/1/12
to zo...@googlegroups.com
new snapshot published

-john

2011/12/30 John Wang <john...@gmail.com>

genuine

unread,
Jan 1, 2012, 11:24:01 PM1/1/12
to zoie
The new snapshot doesn't support the lastest verion of lucene.?

On Jan 2, 11:16 am, John Wang <john.w...@gmail.com> wrote:
> new snapshot published
>
> -john
>
> 2011/12/30 John Wang <john.w...@gmail.com>
>
>
>
>
>
>
>
> > Ah! I see the bug.
>
> > Great find!
>
> > I created the bug and checked in the fix:
> >http://linkedin.jira.com/browse/ZOIE-100
>
> > Please pull latest from my master and give it a try. I will push another
> > snapshot next week.
>
> > Thanks
>
> > -John
>
> > 2011/12/29 genuine <yzygenu...@gmail.com>

John Wang

unread,
Jan 1, 2012, 11:35:52 PM1/1/12
to zo...@googlegroups.com
latest snapshot uses 3.4.0.

We will be doing 3.5.0 migration soon.

-John

2012/1/1 genuine <yzyge...@gmail.com>

John Wang

unread,
Jan 1, 2012, 11:50:36 PM1/1/12
to zo...@googlegroups.com
I pushed to lucene-upgrade branch upgrade to 3.5.0

Still doing testing, but give it a try.

-John

2012/1/1 John Wang <john...@gmail.com>

genuine

unread,
Jan 2, 2012, 12:28:14 AM1/2/12
to zoie
Can you get me a jira's count?

On Jan 2, 12:50 pm, John Wang <john.w...@gmail.com> wrote:
> I pushed to lucene-upgrade branch upgrade to 3.5.0
>
> Still doing testing, but give it a try.
>
> -John
>
> 2012/1/1 John Wang <john.w...@gmail.com>
>
>
>
>
>
>
>
> > latest snapshot uses 3.4.0.
>
> > We will be doing 3.5.0 migration soon.
>
> > -John
>
> > 2012/1/1 genuine <yzygenu...@gmail.com>

John Wang

unread,
Jan 2, 2012, 1:10:28 AM1/2/12
to zo...@googlegroups.com
You/anyone can just sign up. I can't create it for you.

-John

2012/1/1 genuine <yzyge...@gmail.com>

John Wang

unread,
Jan 2, 2012, 1:11:09 AM1/2/12
to zo...@googlegroups.com

Gino Yu

unread,
Jan 2, 2012, 1:15:03 AM1/2/12
to zo...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages