Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-650
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Reporter: Jaroslaw Lewandowski
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Ability to change Resource Property Mapping in the runtime.

Created: 10/Jun/08 05:11 AM   Updated: 10/Jun/08 07:10 PM
Component/s: Compass::Core
Affects Version/s: 2.0.0 GA
Fix Version/s: None

 Description  « Hide
There some use cases when document properties set changes durning the application execution time. It would be usefull to have an ability to add resource property mapping of such dynamic resource/document at runtime.

Exposing InternalCompass.getMappings() (or simmillar) and handle it's content changes at runtime for RSEM mapping would be a nice.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 10/Jun/08 06:07 PM
I have added the ability to rebuild Compass after removing and adding ResourceMappings. You can keep ResourceMapping around and then add/remove property mappings. Once done, you can remove the alias mappings from the Compass instance, add the updated one, and rebuild it. See CMP-620. Does that sound ok?

Jaroslaw Lewandowski added a comment - 10/Jun/08 06:56 PM
Sounds good. How this rebuild process affects pending transactions?
By the way will this rebuild process reinitialize subindexes defined by custom SubIndexHash?

Shay Banon added a comment - 10/Jun/08 07:10 PM
The rebuild process closes the "old" Compass instance after (by default) a minute and tries to perform a graceful shutdown. If you expect to have a transaction longer than 60 second, you can configure it.

Regarding sub index hashing, think of the rebuild process as if you closed and opened a new Compass instance with the updated mappings.