title: Spring Kafka - offsetsForTimes method returns null for some partitions
body: <p>I use spring-boot 2.2.11, spring-kafka 2.4.11 and apache kafka-clients 2.4.1</p>
  <p>I have my consumer <code>implements ConsumerAwareRebalanceListener</code>, and I am trying to seek to offsets after certain timestamp inside <code>onPartitionsAssigned</code> method by calling <code>offsetsForTimes</code>.</p>
  <p>I found this strange behavior of method <code>offsetsForTimes</code>:</p>
  <p>When I seek an earlier timestamp <code>1607922415534L</code> (GMT December 14, 2020 5:06:55.534 AM) like below:</p>
  <pre class="lang-java prettyprint-override"><code>@Override
  public void onPartitionsAssigned(Consumer&lt;?, ?&gt; consumer, Collection&lt;TopicPartition&gt; partitions) {
      // calling assignment just to ensure my consumer is actually assigned the partitions
      Set&lt;TopicPartition&gt; tps = consumer.assignment();
      Map&lt;TopicPartition, OffsetAndTimestamp&gt; offsetsForTimes = new HashMap&lt;&gt;();
      offsetsForTimes.putAll(consumer.offsetsForTimes(partitions.stream()
          .collect(Collectors.toMap(tp -&gt; tp, epoch -&gt; 1607922415534L))));
  }
  </code></pre>
  <p>By setting breakpoint, I can see I got below map:</p>
  <pre><code>{TopicPartition@5492} &quot;My.Data.Topic-1&quot; -&gt; {OffsetAndTimestamp@5493} &quot;(timestamp=1607922521082, leaderEpoch=282, offset=22475886)&quot;
  {TopicPartition@5495} &quot;My.Data.Topic-0&quot; -&gt; {OffsetAndTimestamp@5496} &quot;(timestamp=1607922523035, leaderEpoch=328, offset=25587551)&quot;
  {TopicPartition@5498} &quot;My.Data.Topic-5&quot; -&gt; null
  {TopicPartition@5500} &quot;My.Data.Topic-4&quot; -&gt; {OffsetAndTimestamp@5501} &quot;(timestamp=1607924819752, leaderEpoch=323, offset=24578937)&quot;
  {TopicPartition@5503} &quot;My.Data.Topic-3&quot; -&gt; {OffsetAndTimestamp@5504} &quot;(timestamp=1607922522143, leaderEpoch=299, offset=23439914)&quot;
  {TopicPartition@5506} &quot;My.Data.Topic-2&quot; -&gt; {OffsetAndTimestamp@5507} &quot;(timestamp=1607938218461, leaderEpoch=318, offset=23415078)&quot;
  {TopicPartition@5509} &quot;My.Data.Topic-9&quot; -&gt; {OffsetAndTimestamp@5510} &quot;(timestamp=1607922521019, leaderEpoch=298, offset=22002124)&quot;
  {TopicPartition@5512} &quot;My.Data.Topic-8&quot; -&gt; {OffsetAndTimestamp@5513} &quot;(timestamp=1607922520780, leaderEpoch=332, offset=23406692)&quot;
  {TopicPartition@5515} &quot;My.Data.Topic-7&quot; -&gt; {OffsetAndTimestamp@5516} &quot;(timestamp=1607922522800, leaderEpoch=285, offset=22215781)&quot;
  {TopicPartition@5518} &quot;My.Data.Topic-6&quot; -&gt; null
  </code></pre>
  <p>However, if I seek a more recent timestamp like <code>1607941818423L</code> (GMT December 14, 2020 10:30:18.423 AM), I got offsets for all partitions:</p>
  <pre><code>{TopicPartition@5492} &quot;My.Data.Topic-1&quot; -&gt; {OffsetAndTimestamp@5493} &quot;(timestamp=1607942934371, leaderEpoch=282, offset=22568732)&quot;
  {TopicPartition@5495} &quot;My.Data.Topic-0&quot; -&gt; {OffsetAndTimestamp@5496} &quot;(timestamp=1607941818435, leaderEpoch=328, offset=25685999)&quot;
  {TopicPartition@5498} &quot;My.Data.Topic-5&quot; -&gt; {OffsetAndTimestamp@5499} &quot;(timestamp=1607941818424, leaderEpoch=309, offset=24333860)&quot;
  {TopicPartition@5501} &quot;My.Data.Topic-4&quot; -&gt; {OffsetAndTimestamp@5502} &quot;(timestamp=1607941818424, leaderEpoch=323, offset=24666385)&quot;
  {TopicPartition@5504} &quot;My.Data.Topic-3&quot; -&gt; {OffsetAndTimestamp@5505} &quot;(timestamp=1607941818433, leaderEpoch=299, offset=23529597)&quot;
  {TopicPartition@5507} &quot;My.Data.Topic-2&quot; -&gt; {OffsetAndTimestamp@5508} &quot;(timestamp=1607941818423, leaderEpoch=318, offset=23431817)&quot;
  {TopicPartition@5510} &quot;My.Data.Topic-9&quot; -&gt; {OffsetAndTimestamp@5511} &quot;(timestamp=1607941818517, leaderEpoch=298, offset=22082849)&quot;
  {TopicPartition@5513} &quot;My.Data.Topic-8&quot; -&gt; {OffsetAndTimestamp@5514} &quot;(timestamp=1607941818423, leaderEpoch=332, offset=23491462)&quot;
  {TopicPartition@5516} &quot;My.Data.Topic-7&quot; -&gt; {OffsetAndTimestamp@5517} &quot;(timestamp=1607942934371, leaderEpoch=285, offset=22306422)&quot;
  {TopicPartition@5519} &quot;My.Data.Topic-6&quot; -&gt; {OffsetAndTimestamp@5520} &quot;(timestamp=1607941818424, leaderEpoch=317, offset=24677423)&quot;
  </code></pre>
  <p>So I am confused why seeking to an older timestamp gave me nulls when there are indeed messages with later timestamp as I tried in the 2nd time? Is there any search range limit of this call or did I do something wrong?</p>
  <p>Many thanks!</p>