kafka-ts 0.0.9-beta.0 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -106,7 +106,7 @@ class Consumer extends events_1.default {
|
|
|
106
106
|
await this.cluster.disconnect().catch((error) => logger_1.log.debug(`Failed to disconnect: ${error.message}`));
|
|
107
107
|
}
|
|
108
108
|
async startFetchManager() {
|
|
109
|
-
const { batchGranularity, concurrency } = this.options;
|
|
109
|
+
const { groupId, batchGranularity, concurrency } = this.options;
|
|
110
110
|
while (!this.stopHook) {
|
|
111
111
|
await this.consumerGroup?.join();
|
|
112
112
|
// TODO: If leader is not available, find another read replica
|
|
@@ -131,7 +131,7 @@ class Consumer extends events_1.default {
|
|
|
131
131
|
try {
|
|
132
132
|
await this.fetchManager.start();
|
|
133
133
|
if (!nodeAssignments.length) {
|
|
134
|
-
logger_1.log.debug('No partitions assigned. Waiting for reassignment...');
|
|
134
|
+
logger_1.log.debug('No partitions assigned. Waiting for reassignment...', { groupId });
|
|
135
135
|
await (0, delay_1.delay)(this.options.maxWaitMs);
|
|
136
136
|
this.consumerGroup?.handleLastHeartbeat();
|
|
137
137
|
}
|