Copilot commented on code in PR #11102:
URL: https://github.com/apache/ozone/pull/11102#discussion_r3846222543
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConfigKeys.java:
##########
@@ -131,6 +131,15 @@ public final class OzoneConfigKeys {
public static final boolean OZONE_FS_HSYNC_ENABLED_DEFAULT
= false;
+ /**
+ * When true, synchronize seek-read-restore in OzoneFSInputStream positioned
+ * reads for thread-safe pread on a shared input stream.
+ */
+ public static final String OZONE_FS_SYNCHRONIZE_POSITIONED_READS_ENABLED =
+ "ozone.fs.synchronize.positioned.reads.enabled";
+ public static final boolean
OZONE_FS_SYNCHRONIZE_POSITIONED_READS_ENABLED_DEFAULT =
+ false;
Review Comment:
New config key is added in OzoneConfigKeys and read by
OzoneFileSystem/Rooted variants, but it isn’t documented in the default config
file. This makes the opt-in feature hard to discover/configure for operators
and tooling that relies on ozone-default.xml.
Please add an entry for this key (and default=false) to
`hadoop-hdds/common/src/main/resources/ozone-default.xml` with a short
description and a note about the performance tradeoff (serializes positioned
reads).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]