anchor.diff:                  case ?env_use_s3_api() of
                       true ->
                           %% Create S3-related tables
  -                        leo_s3_auth:create_credential_table(disc_copies, Nodes1),
  -                        leo_s3_endpoint:create_endpoint_table(disc_copies, Nodes1),
  -                        leo_s3_bucket:create_bucket_table(disc_copies, Nodes1),
  -                        leo_s3_user:create_user_table(disc_copies, Nodes1),
  -                        leo_s3_user:create_user_credential_table(disc_copies, Nodes1),
  +                        leo_s3_auth:create_credential_table(disc_copies, Nodes_1),
  +                        leo_s3_endpoint:create_endpoint_table(disc_copies, Nodes_1),
  +                        leo_s3_bucket:create_bucket_table(disc_copies, Nodes_1),
  +                        leo_s3_user:create_user_table(disc_copies, Nodes_1),
  +                        leo_s3_user:create_user_credential_table(disc_copies, Nodes_1),
   
                           %% Insert test-related values
                           CreatedAt     = leo_date:now(),
  
positive.code:                                      end
                               end, false, PartnerNodes) of
                  true ->
                      create_mnesia_tables1(Mode, RedundantNodes);
                  false ->
                      timer:apply_after(?CHECK_INTERVAL, ?MODULE,
                                        create_mnesia_tables, [Mode, RedundantNodes])
  
negative.code:                 end,
                  ok
              catch _:Reason ->
                      ?error("create_mnesia_tables_1/3", "cause:~p", [Reason])
              end,
              ok;
          {error,{_,{already_exists, _}}} ->
              create_mnesia_tables_2(),
              ok;
          {_, Cause} ->
              timer:apply_after(?CHECK_INTERVAL, ?MODULE, create_mnesia_tables, [Mode, Nodes]),
              ?error("create_mnesia_tables_1/3", "cause:~p", [Cause]),
              {error, Cause}
      end;
  create_mnesia_tables_1(slave,_Nodes) ->
      create_mnesia_tables_2().
  
  
  -spec(create_mnesia_tables_2() ->
               ok | {error, any()}).
  create_mnesia_tables_2() ->
      application:start(mnesia),
      timer:sleep(1000),
  
      case catch mnesia:system_info(tables) of
          Tbls when length(Tbls) > 1 ->
              ok = mnesia:wait_for_tables(Tbls, 30000),
  
              %% data migration
              case ?env_use_s3_api() of
                  true ->
                      catch leo_s3_bucket_transform_handler:transform();
                  false ->
                      void
              end,
              ok;
          Tbls when length(Tbls) =< 1 ->
              {error, no_exists};
          Error ->
              ?error("create_mnesia_tables_2/0", "cause:~p", [Error]),
              Error
      end.
  
  