Skip to content

UpdatableSearcher cannot update reference vectors on the fly #8

@openwzdh

Description

@openwzdh

When trying to add new reference vectors into the searcher that is doing searches, ConcurrentLinkedDeque is a thread safe alternative to the ArrayList.

java.util.ConcurrentModificationException: null
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819) ~[na:1.7.0_09]
at java.util.ArrayList$Itr.next(ArrayList.java:791) ~[na:1.7.0_09]
at org.apache.mahout.knn.search.FastProjectionSearch.reindex(FastProjectionSearch.java:180) ~[knn-0.1-SNAPSHOT.jar:na]
at org.apache.mahout.knn.search.FastProjectionSearch.search(FastProjectionSearch.java:111) ~[knn-0.1-SNAPSHOT.jar:na]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions