anchor.diff:  
   
   %% @private
  +delete_metadata(0) ->
  +    ok;
  +delete_metadata(Index) ->
  +    KeyBin = list_to_binary(lists:append(["TEST_", integer_to_list(Index)])),
  +    case leo_backend_db_api:delete('leo_metadata_0', KeyBin) of
  +        ok ->
  +            delete_metadata(Index - 1);
  +        _ ->
  +            {error, invalid_key}
  +    end.
  +
  +%% @private
   check_metadata(0) ->
       ok;
   check_metadata(Index) ->
  
positive.code: 
      %% Execute to diagnose data
      timer:sleep(3000),
      ok = leo_compact_fsm_controller:recover_metadata(),
      ok = check_status(),
  
  
negative.code:              ok
       end,
       [
        {"test recovery",
         {timeout, 1000, fun recover/0}}
       ]}.
  
  