Skip to content

Commit

Permalink
[fix](catalog) fix use-meta-cache bug
Browse files Browse the repository at this point in the history
pick part of #39239
set default value of use_meta_cache to false, same as previous version,
to avoid compatibility issue.
This should be totally fixed in doris 3.0.2
  • Loading branch information
morningman authored and gavinchou committed Aug 23, 2024
1 parent eeaea88 commit 8ce9d66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public abstract class ExternalCatalog
public static final String DORIS_VERSION = "doris.version";
public static final String DORIS_VERSION_VALUE = Version.DORIS_BUILD_VERSION + "-" + Version.DORIS_BUILD_SHORT_HASH;
public static final String USE_META_CACHE = "use_meta_cache";
public static final boolean DEFAULT_USE_META_CACHE = true;
public static final boolean DEFAULT_USE_META_CACHE = false;

// Unique id of this catalog, will be assigned after catalog is loaded.
@SerializedName(value = "id")
Expand Down Expand Up @@ -290,11 +290,6 @@ public void checkProperties() throws DdlException {
throw new DdlException("Invalid properties: " + CatalogMgr.METADATA_REFRESH_INTERVAL_SEC);
}
}

if (properties.getOrDefault(ExternalCatalog.USE_META_CACHE, "true").equals("false")) {
LOG.warn("force to set use_meta_cache to true for catalog: {} when creating", name);
getCatalogProperty().addProperty(ExternalCatalog.USE_META_CACHE, "true");
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion gensrc/script/gen_build_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ build_version_prefix="doris"
build_version_major=3
build_version_minor=0
build_version_patch=1
build_version_rc_version="rc04"
build_version_rc_version="rc04-patch1"

build_version="${build_version_prefix}-${build_version_major}.${build_version_minor}.${build_version_patch}-${build_version_rc_version}"

Expand Down

0 comments on commit 8ce9d66

Please sign in to comment.