[ 
https://issues.apache.org/jira/browse/OAK-10533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mohit Kataria updated OAK-10533:
--------------------------------
    Description: 
We found following error while merging incrementalFFS.
{code:java}
wrong operand in incremental ffs: operand:A, 
line:/content/dam/x.png|{"jcr:created":"dat:2023-11-01T18:44:11.939Z","jcr:createdBy":"writer-service","jcr:primaryType":"nam:nt:file"}|r18b8d649933-0-2|A{code}
This stems from 
[https://github.com/apache/jackrabbit-oak/blob/trunk/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/incrementalstore/MergeIncrementalFlatFileStore.java#L136]

where the merger expects the operand to be "M" or "D" but finds it to be "A" 
for the particular case.

 

The case is - 

Between 2 checkpoints: 
{noformat}
r18b8c0cc329-0-2:2023-11-01T18:02:08.553 UTC
r18b8d5744b1-0-2:2023-11-02T00:03:08.593 UTC{noformat}
Node is first deleted and then again added at same path. These operations are 
taken picked as new node added instead of node modified.

Following section of mongo document proves this.
{code:java}
"_deleted" :
{ "r18b8c3316f7-0-3" : "true", "r18b8c334443-0-1" : "false" }
 
{code}
 

  was:
We found following error while merging incrementalFFS.
{code:java}
wrong operand in incremental ffs: operand:A, 
line:/content/dam/x.png|{"jcr:created":"dat:2023-11-01T18:44:11.939Z","jcr:createdBy":"writer-service","jcr:primaryType":"nam:nt:file"}|r18b8d649933-0-2|A{code}
This stems from 
[https://github.com/apache/jackrabbit-oak/blob/trunk/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/incrementalstore/MergeIncrementalFlatFileStore.java#L136]

where the merger expects the operand to be "M" or "D" but finds it to be "A" 
for the particular case.

 

The case is - 

Between 2 checkpoints: 
r18b8c0cc329-0-2:2023-11-01T18:02:08.553 UTC
r18b8d5744b1-0-2:2023-11-02T00:03:08.593 UTC
Node is first deleted and then again added at same path. These operations are 
taken picked as new node added instead of node modified.

Following section of mongo document proves this.
"_deleted" : {
"r18b8c3316f7-0-3" : "true",
"r18b8c334443-0-1" : "false"
}
 


> Merging Incremental Store failure: Operations, delete a node and adding node 
> again is dumped as added node
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-10533
>                 URL: https://issues.apache.org/jira/browse/OAK-10533
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: indexing
>            Reporter: Mohit Kataria
>            Assignee: Mohit Kataria
>            Priority: Major
>
> We found following error while merging incrementalFFS.
> {code:java}
> wrong operand in incremental ffs: operand:A, 
> line:/content/dam/x.png|{"jcr:created":"dat:2023-11-01T18:44:11.939Z","jcr:createdBy":"writer-service","jcr:primaryType":"nam:nt:file"}|r18b8d649933-0-2|A{code}
> This stems from 
> [https://github.com/apache/jackrabbit-oak/blob/trunk/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/incrementalstore/MergeIncrementalFlatFileStore.java#L136]
> where the merger expects the operand to be "M" or "D" but finds it to be "A" 
> for the particular case.
>  
> The case is - 
> Between 2 checkpoints: 
> {noformat}
> r18b8c0cc329-0-2:2023-11-01T18:02:08.553 UTC
> r18b8d5744b1-0-2:2023-11-02T00:03:08.593 UTC{noformat}
> Node is first deleted and then again added at same path. These operations are 
> taken picked as new node added instead of node modified.
> Following section of mongo document proves this.
> {code:java}
> "_deleted" :
> { "r18b8c3316f7-0-3" : "true", "r18b8c334443-0-1" : "false" }
>  
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to