diff --git a/core/client/fs/src/main/java/alluxio/client/file/BaseFileSystem.java b/core/client/fs/src/main/java/alluxio/client/file/BaseFileSystem.java index e7e28314e371..68c18138488e 100644 --- a/core/client/fs/src/main/java/alluxio/client/file/BaseFileSystem.java +++ b/core/client/fs/src/main/java/alluxio/client/file/BaseFileSystem.java @@ -40,7 +40,6 @@ import alluxio.exception.status.InvalidArgumentException; import alluxio.exception.status.NotFoundException; import alluxio.exception.status.UnavailableException; -import alluxio.wire.CommonOptions; import alluxio.wire.LoadMetadataType; import alluxio.wire.MountPointInfo; @@ -122,9 +121,10 @@ public FileOutStream createFile(AlluxioURI path, CreateFileOptions options) try { masterClient.createFile(path, options); // Do not sync before this getStatus, since the UFS file is expected to not exist. - status = masterClient.getStatus(path, - GetStatusOptions.defaults().setLoadMetadataType(LoadMetadataType.Never) - .setCommonOptions(CommonOptions.defaults().setSyncIntervalMs(-1))); + GetStatusOptions opts = GetStatusOptions.defaults(); + opts.setLoadMetadataType(LoadMetadataType.Never); + opts.getCommonOptions().setSyncIntervalMs(-1); + status = masterClient.getStatus(path, opts); LOG.debug("Created file {}, options: {}", path.getPath(), options); } catch (AlreadyExistsException e) { throw new FileAlreadyExistsException(e.getMessage()); diff --git a/core/common/src/main/java/alluxio/PropertyKey.java b/core/common/src/main/java/alluxio/PropertyKey.java index d52eaa9196a0..f0f0fc800cd4 100644 --- a/core/common/src/main/java/alluxio/PropertyKey.java +++ b/core/common/src/main/java/alluxio/PropertyKey.java @@ -2391,9 +2391,9 @@ public String toString() { .build(); public static final PropertyKey USER_FILE_LOAD_TTL_ACTION = new Builder(Name.USER_FILE_LOAD_TTL_ACTION) - .setDefaultValue("DELETE") + .setDefaultValue("FREE") .setDescription("When file's ttl is expired, the action performs on it. " - + "DELETE by default") + + "FREE by default") .build(); public static final PropertyKey USER_FILE_READ_TYPE_DEFAULT = new Builder(Name.USER_FILE_READ_TYPE_DEFAULT)