Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Updater : Elastic search database needed even if using MongoDB

Aperta
#40 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
elasticsearch, javascript, mongodb
Ambito
backend, databases

Direzione di ricerca

Inizia da node_modules/landsat-meta-updater/libs/connections.js e riproduci il problema eseguendo node updater.js con DB_TYPE=mongo nel file .env. Controlla l’inizializzazione del client Elasticsearch e verifica che l’operazione MongoDB non richieda più Elasticsearch, mentre la configurazione Elasticsearch continui a funzionare per DB_TYPE=es.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Running

node updater.js

fails with the following error:

events.js:397
EventEmitter.listenerCount = function(emitter, type) {
^

RangeError: Maximum call stack size exceeded
at Function.EventEmitter.listenerCount (events.js:397:38)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:399:20)
at Log.listenerCount (/apps/landsat-api-master/node_modules/landsat-meta-updater/node_modules/elasticsearch/src/lib/log.js:68:25)

even if DB_TYPE=mongo in the .env file.

Commenting the following lines from /node_modules/landsat-meta-updater/libs/connections.js:

// Connection to Elastic Search
//module.exports.elasticsearch = new elasticsearch.Client({
// host: process.env.ES_HOST || 'localhost:9200',
// Note that this doesn't abort the query.
// requestTimeout: process.env.ES_TIMEOUT || 50000 // milliseconds
//});

solved the problem (but this is probably not a good solution when DB_TYPE is es).
This code should probably be executed only when DB_TYPE is es.

Lingua principale
JavaScript
Stelle
65
Fork
19
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di developmentseed/landsat-api

Tutte le issue di developmentseed/landsat-api

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.