Increase timeout

Aperta
#38 1 commento 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
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
cli

Direzione di ricerca

The failure comes from the devnet shell's start command, which prints "Waiting for next block..." and then "[ERROR] Waited too long". Search the Java sources for those strings to find the wait loop and the timeout value it uses. Done means the wait allows for slower startup on a loaded machine, and running start on a constrained machine no longer reports that error before the first block arrives. The issue does not say what value to use, so confirm the choice with a maintainer.

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

Descrizione

enhancement

When computer is overloaded and has limited memory, it is easy to get timeout issues:

devnet:default>start
[Success] Starting node from directory : /clusters/default/node-spo1
[Success] Started submit api : http://localhost:8090
[Info] Swagger Url to interact with the cluster's node : http://localhost:10000/swagger-ui.html
Let's wait for the next block to make sure server started properly !!!
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
Waiting for next block...
[ERROR] Waited too long. Something is wrong. You may want to recreate the cluster or just reset data with 'reset' option ...
[OK] Server Started
devnet:default>tip
[Block#] 86
[Slot#] 125
[Block Hash] 14424d714e8553c9491297ea0f70d0ed9dbe28cf60533647008266c002120df7

perhaps increase timeout?

Lingua principale
Java
Stelle
70
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 bloxbean/yaci-devkit

Tutte le issue di bloxbean/yaci-devkit

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.