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


##########
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:
   Probably this conflicts with the case class. Maybe use a non-case class?



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