Hi Team,

Currently as part of commit the caller can provide a CommitInfo
instance which captures some metadata related to commit being
performed. Note that CommitInfo instance passed to NodeStore is
immutable.

For some usecases we need a way to add some more metadata to on going
commit from within the CommitHook

OAK-4586 - Collect affected node types on commit

Here we need to record nodetypes of nodes which got modified as part
of current commit

OAK-4412 - Lucene hybrid index

Here we want to generate Documents for modified nodestate (per index
definition) and "attach" it to current commit

This meta information would later be used by Observer. Currently there
no std way in API to achieve that.

#A -Probably we can introduce a new type CommitAttributes which can be
attached to CommitInfo and which can be modified by the CommitHooks.
The CommitAttributes can then later be accessed by Observer

OR

#B - We can just add a mutable attribute map to the CommitInfo
instance and that can be populated by CommitHooks

Thoughts on which approach to go forward

Chetan Mehrotra

Reply via email to