kamalcph commented on code in PR #17487:
URL: https://github.com/apache/kafka/pull/17487#discussion_r1801512417


##########
core/src/main/scala/kafka/server/DelayedRemoteListOffsets.scala:
##########
@@ -31,7 +31,7 @@ import java.util.concurrent.TimeUnit
 import scala.collection.{Map, mutable}
 import scala.jdk.CollectionConverters._
 
-case class ListOffsetsPartitionStatus(var responseOpt: 
Option[ListOffsetsPartitionResponse] = None,
+case class ListOffsetsPartitionStatus(@volatile var responseOpt: 
Option[ListOffsetsPartitionResponse],

Review Comment:
   Used a non-case class with object to overcome the warning.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to