Skip to content

Commit 9ec1cb3

Browse files
author
Spencer Sortman
committed
Revert change for offset beginning
1 parent 34ebf0e commit 9ec1cb3

24 files changed

+18
-24
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 Byte
Binary file not shown.
-893 Bytes
Binary file not shown.
1 Byte
Binary file not shown.
1 Byte
Binary file not shown.
-419 Bytes
Binary file not shown.
26 Bytes
Binary file not shown.

ncdssdk/docs/build/BasicKafkaConsumer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ <h3>Navigation</h3>
186186
</div>
187187
<div class="footer" role="contentinfo">
188188
&#169; Copyright 2021, Nasdaq.
189-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
189+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
190190
</div>
191191
</body>
192192
</html>

ncdssdk/docs/build/KafkaAvroConsumer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ <h3>Navigation</h3>
159159
</div>
160160
<div class="footer" role="contentinfo">
161161
&#169; Copyright 2021, Nasdaq.
162-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
162+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
163163
</div>
164164
</body>
165165
</html>

ncdssdk/docs/build/NasdaqKafkaAvroConsumer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ <h3>Navigation</h3>
190190
</div>
191191
<div class="footer" role="contentinfo">
192192
&#169; Copyright 2021, Nasdaq.
193-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
193+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
194194
</div>
195195
</body>
196196
</html>

ncdssdk/docs/build/_static/searchtools.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ var Search = {
276276
setTimeout(function() {
277277
displayNextItem();
278278
}, 5);
279-
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
279+
} else {
280280
$.ajax({url: requestUrl,
281281
dataType: "text",
282282
complete: function(jqxhr, textstatus) {
@@ -289,12 +289,6 @@ var Search = {
289289
displayNextItem();
290290
}, 5);
291291
}});
292-
} else {
293-
// no source available, just display title
294-
Search.output.append(listItem);
295-
setTimeout(function() {
296-
displayNextItem();
297-
}, 5);
298292
}
299293
}
300294
// search finished, update title and status message

ncdssdk/docs/build/consumer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h3>Navigation</h3>
110110
</div>
111111
<div class="footer" role="contentinfo">
112112
&#169; Copyright 2021, Nasdaq.
113-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
113+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
114114
</div>
115115
</body>
116116
</html>

ncdssdk/docs/build/genindex.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ <h3>Navigation</h3>
352352
</div>
353353
<div class="footer" role="contentinfo">
354354
&#169; Copyright 2021, Nasdaq.
355-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
355+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
356356
</div>
357357
</body>
358358
</html>

ncdssdk/docs/build/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h3>Navigation</h3>
116116
</div>
117117
<div class="footer" role="contentinfo">
118118
&#169; Copyright 2021, Nasdaq.
119-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
119+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
120120
</div>
121121
</body>
122122
</html>

ncdssdk/docs/build/internal.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h3>Navigation</h3>
117117
</div>
118118
<div class="footer" role="contentinfo">
119119
&#169; Copyright 2021, Nasdaq.
120-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
120+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
121121
</div>
122122
</body>
123123
</html>

ncdssdk/docs/build/ncdsclient.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ <h3>Navigation</h3>
150150
<span class="sig-name descname"><span class="pre">ncds_kafka_consumer</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">topic</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">timestamp</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#ncdssdk.src.main.python.ncdsclient.NCDSClient.NCDSClient.ncds_kafka_consumer" title="Permalink to this definition"></a></dt>
151151
<dd><p>Retrieves the apache kafka consumer. If the timestamp is not set, the consumer will
152152
start consuming at midnight of this day if auto.offset.reset in the kafka_cfg is set to
153-
earliest. If auto.offset.reset is not set to earliest, the consumer will start consuming
154-
at the smallest offset.</p>
153+
earliest. If auto.offset.reset is set to some variation of ‘latest’, the consumer will
154+
start consuming at the end offset.</p>
155155
<dl class="field-list simple">
156156
<dt class="field-odd">Parameters</dt>
157157
<dd class="field-odd"><ul class="simple">
@@ -247,7 +247,7 @@ <h3>Navigation</h3>
247247
</div>
248248
<div class="footer" role="contentinfo">
249249
&#169; Copyright 2021, Nasdaq.
250-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
250+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
251251
</div>
252252
</body>
253253
</html>

ncdssdk/docs/build/py-modindex.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ <h3>Navigation</h3>
148148
</div>
149149
<div class="footer" role="contentinfo">
150150
&#169; Copyright 2021, Nasdaq.
151-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
151+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
152152
</div>
153153
</body>
154154
</html>

ncdssdk/docs/build/search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h3>Navigation</h3>
9898
</div>
9999
<div class="footer" role="contentinfo">
100100
&#169; Copyright 2021, Nasdaq.
101-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
101+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
102102
</div>
103103
</body>
104104
</html>

ncdssdk/docs/build/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ncdssdk/docs/build/utils.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ <h3>Navigation</h3>
183183
</div>
184184
<div class="footer" role="contentinfo">
185185
&#169; Copyright 2021, Nasdaq.
186-
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.2.
186+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.1.0.
187187
</div>
188188
</body>
189189
</html>

ncdssdk/src/main/python/ncdsclient/NCDSClient.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def ncds_kafka_consumer(self, topic, timestamp=None):
7676
"""
7777
Retrieves the apache kafka consumer. If the timestamp is not set, the consumer will
7878
start consuming at midnight of this day if auto.offset.reset in the kafka_cfg is set to
79-
earliest. If auto.offset.reset is not set to earliest, the consumer will start consuming
80-
at the smallest offset.
79+
earliest. If auto.offset.reset is set to some variation of 'latest', the consumer will
80+
start consuming at the end offset.
8181
8282
Args:
8383
topic (string): Topic/Stream name

ncdssdk/src/main/python/ncdsclient/consumer/NasdaqKafkaAvroConsumer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_kafka_consumer(self, stream_name, timestamp=None):
7878
"Kafka Schema not found for stream: " + stream_name)
7979
kafka_consumer = self.get_consumer(kafka_schema, stream_name)
8080
topic_partition = TopicPartition(
81-
topic=stream_name + ".stream", partition=0, offset=OFFSET_BEGINNING)
81+
topic=stream_name + ".stream", partition=0, offset=OFFSET_END)
8282
self.logger.debug(
8383
f"Assigning kafka consumer to topic partition: {topic_partition}")
8484
kafka_consumer.assign([topic_partition])

0 commit comments

Comments
 (0)