Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compactor case clause error #5070

Open
nickva opened this issue May 24, 2024 · 0 comments
Open

Compactor case clause error #5070

nickva opened this issue May 24, 2024 · 0 comments

Comments

@nickva
Copy link
Contributor

nickva commented May 24, 2024

Noticed a shard that could not be compacted. The compaction would start then would crash.

{function_clause,[
    {couch_bt_engine_compactor,'-copy_docs/4-inlined-2-',[
       {3,<<138,72,.....>>},
       [],
       leaf,
       {0,0,[]}
      ], [{file,"src/couch_bt_engine_compactor.erl"},{line,407}]
    },
    {couch_key_tree,mapfold_simple,4,[{file,"src/couch_key_tree.erl"},{line,465}]},
    {couch_key_tree,mapfold_simple,4,[{file,"src/couch_key_tree.erl"},{line,474}]},
    {couch_key_tree,mapfold,3,[{file,"src/couch_key_tree.erl"},{line,458}]},
    {couch_bt_engine_compactor,'-copy_docs/4-fun-5-',3,[{file,"src/couch_bt_engine_compactor.erl"},{line,406}]},
    {lists,map_1,2,[{file,"lists.erl"},{line,1320}]},
    {lists,map_1,2,[{file,"lists.erl"},{line,1320}]},
    {lists,map,2,[{file,"lists.erl"},{line,1315}]}
]}

That seems to come from:

({RevPos, RevId}, #leaf{ptr = Sp} = Leaf, leaf, SizesAcc) ->
where we get [] instead of #leaf{ptr = Sp} = Leaf.

The only fix so far is to delete the copy and let the other nodes re-replicate the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant