Project

General

Profile

Bug #1047

Strange/ unwanted effects when sending/ receiving messages while the (postgres) database ist disconnected

Added by amiconn about 13 years ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
02/02/2011
Due date:
% Done:

0%

Estimated time:
Version:
0.7-pre
OS:
Any

Description

Since Version 0.8-pre+77 git-85c5d43 the core does a proper reconnect when the postgres server goes down. However, when the user sends or receives a message while the database is down, the following things happen:

- If it is an outgoing message, it is sent to the IRC server, but the user gets no feedback that this happened (message does not appear). This may cause the user to spam the channel, as he might think the message didn't get through.

- The first message will cause the connected client(s) to insert a blank line in the chat list above the root node (see screenshot). The client will show this blank pseudo buffer for a few seconds (showing the big quassel logo in the chat view), after that it jumps to the root node. Further messages won't add more blank lines, but the blank line will only disappear after a client-core disconnect/ reconnect.

The following messages are logged to the core's log for one outgoing message with the database shut down:

2011-02-02 00:04:10 Warning: PostgreSqlStorage::bufferInfo(): cannot start read only transaction!
2011-02-02 00:04:10 Warning: - FATAL: breche Verbindung ab aufgrund von Anweisung des AdministratorsServer beendete die Verbindung unerwartet Das heißt wahrscheinlich, daß der Server abnormal beendete bevor oder während die Anweisung bearbeitet wurde.QPSQL: Es konnte keine Transaktion gestartet werden
2011-02-02 00:04:10 Warning: QSqlDatabasePrivate::database: unable to open database: "konnte nicht mit dem Server verbinden: Verbindungsaufbau abgelehnt Läuft der Server auf dem Host »localhost« und akzeptiert er TCP/IP-Verbindungen auf Port 5432?QPSQL: Es kann keine Verbindung aufgebaut werden"
2011-02-02 00:04:10 Warning: QPSQLDriver::beginTransaction: Database not open
2011-02-02 00:04:10 Warning: PostgreSqlStorage::bufferInfo(): cannot start read only transaction!
2011-02-02 00:04:10 Warning: - konnte nicht mit dem Server verbinden: Verbindungsaufbau abgelehnt Läuft der Server auf dem Host »localhost« und akzeptiert er TCP/IP-Verbindungen auf Port 5432?QPSQL: Es kann keine Verbindung aufgebaut werden
2011-02-02 00:04:10 Warning: QSqlDatabasePrivate::database: unable to open database: "konnte nicht mit dem Server verbinden: Verbindungsaufbau abgelehnt Läuft der Server auf dem Host »localhost« und akzeptiert er TCP/IP-Verbindungen auf Port 5432?QPSQL: Es kann keine Verbindung aufgebaut werden"
2011-02-02 00:04:10 Warning: QPSQLDriver::beginTransaction: Database not open
2011-02-02 00:04:10 Warning: PostgreSqlStorage::logMessage(): cannot start transaction!
2011-02-02 00:04:10 Warning: - konnte nicht mit dem Server verbinden: Verbindungsaufbau abgelehnt Läuft der Server auf dem Host »localhost« und akzeptiert er TCP/IP-Verbindungen auf Port 5432?QPSQL: Es kann keine Verbindung aufgebaut werden

quassel_blank_line.png (8.16 KB) quassel_blank_line.png Screenshot showing blank line amiconn, 02/02/2011 12:35 AM

Also available in: Atom PDF