Mmuzaf commented on code in PR #2046:
URL: https://github.com/apache/cassandra/pull/2046#discussion_r1059015607


##########
src/java/org/apache/cassandra/db/commitlog/CommitLogSegmentReader.java:
##########
@@ -50,8 +50,10 @@
  */
 public class CommitLogSegmentReader implements 
Iterable<CommitLogSegmentReader.SyncSegment>
 {
-    public static final String ALLOW_IGNORE_SYNC_CRC = Config.PROPERTY_PREFIX 
+ "commitlog.allow_ignore_sync_crc";
-    private static volatile boolean allowSkipSyncMarkerCrc = 
Boolean.getBoolean(ALLOW_IGNORE_SYNC_CRC);
+    /** @deprecated Use {@link 
org.apache.cassandra.config.CassandraRelevantProperties#COMMITLOG_ALLOW_IGNORE_SYNC_CRC}.
 */

Review Comment:
   My thoughts here are - the `ALLOW_IGNORE_SYNC_CRC` is a public constant 
inside a public class, so it seems to me it may be related to the public API 
change which I would like to avoid in this patch. 
   Some users may override/use the `CommitLogSegmentReader` class and its 
constants in their production or test code thus if we remove this constant from 
this class we can introduce a compilation failure once these changes get 
released.
   
   Do you think it is safe to remove it?



-- 
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]

Reply via email to