'UpsourceSystem' is corrupted due to unrecoverable problem while trying to create new project

Writer to db 'UpsourceSystem' is corrupted due to unrecoverable problem


[2019-04-30 05:58:59,160] ERROR r: update topology-1 essaging.impl.TopologyProvider - [127.0.0.1:10001]: failed to update messaging topology
java.lang.Error: An error occurred during flushing data to database
at com.jetbrains.upsource.db.impl.DatabaseFlushExecutorImpl.consume(DatabaseFlushExecutorImpl.java:192)
at com.jetbrains.upsource.db.impl.AbstractBufferingWriter.a(AbstractBufferingWriter.kt:135)
at com.jetbrains.upsource.db.impl.AbstractBufferingWriter.flush(AbstractBufferingWriter.kt:107)
at com.jetbrains.upsource.database.datastax.CqlDatabase.flush(CqlDatabase.kt:245)
at com.jetbrains.upsource.database.datastax.CqlDatabase.flush(CqlDatabase.kt:224)
at com.jetbrains.upsource.database.datastax.CqlDatabase$myDatabaseFlusher$1.flush(CqlDatabase.kt:68)
at com.jetbrains.upsource.db.impl.DynamicBufferingTable.putValue(DynamicBufferingTable.kt:184)
at com.jetbrains.upsource.backend.server.core.db.MessagingTopologyTable.updateNodeDescription(MessagingTopologyTable.java:44)
at com.jetbrains.upsource.messaging.impl.TopologyProvider$listenForChanges$1.run(TopologyProvider.kt:72)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.jetbrains.upsource.util.NamedDaemonThreadFactory.a(NamedDaemonThreadFactory.java:34)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.RejectedExecutionException: Writer to db 'UpsourceSystem' is corrupted due to unrecoverable problem.
at com.jetbrains.upsource.db.impl.DatabaseFlushExecutorImpl.consume(DatabaseFlushExecutorImpl.java:170)
... 16 more
Caused by: com.jetbrains.upsource.db.api.query.DatabaseConnectionError: Database connection failure
at com.jetbrains.upsource.database.datastax.ThroughDbMediator.submitWriteTask(ThroughDbMediator.kt:48)
at com.jetbrains.upsource.database.datastax.ThroughDbMediator.submitWriteFunction(ThroughDbMediator.kt:37)
at com.jetbrains.upsource.database.datastax.buffering.CqlWriteBuffer.flush(CqlWriteBuffer.kt:250)
at com.jetbrains.upsource.database.datastax.buffering.CqlBufferedQueue$StorageChunk$flush$1.doResume(CqlBufferedQueue.kt:47)
at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:42)
at kotlinx.coroutines.experimental.DispatchedTask$DefaultImpls.run(Dispatched.kt:149)
at kotlinx.coroutines.experimental.DispatchedContinuation.run(Dispatched.kt:13)
at kotlinx.coroutines.experimental.EventLoopBase.processNextEvent(EventLoop.kt:140)
at kotlinx.coroutines.experimental.BlockingCoroutine.joinBlocking(Builders.kt:70)
at kotlinx.coroutines.experimental.BuildersKt__BuildersKt.runBlocking(Builders.kt:46)
at kotlinx.coroutines.experimental.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.experimental.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:36)
at kotlinx.coroutines.experimental.BuildersKt.runBlocking$default(Unknown Source)
at com.jetbrains.upsource.database.datastax.buffering.CqlBufferedQueue$StorageChunk.flush(CqlBufferedQueue.kt:46)
at com.jetbrains.upsource.db.impl.AbstractBufferingWriter.a(AbstractBufferingWriter.kt:183)
at com.jetbrains.upsource.db.impl.AbstractBufferingWriter.access$flushChunk(AbstractBufferingWriter.kt:12)
at com.jetbrains.upsource.db.impl.AbstractBufferingWriter$tryFlush$$inlined$synchronized$lambda$1.run(AbstractBufferingWriter.kt:135)
at com.jetbrains.upsource.db.impl.DatabaseFlushExecutorImpl$Executor.a(DatabaseFlushExecutorImpl.java:249)
at __. db_UpsourceSystem .__.run(JavaGeneratorTemplate.java:43)
at com.jetbrains.upsource.db.impl.DatabaseFlushExecutorImpl$Executor.a(DatabaseFlushExecutorImpl.java:248)
at com.jetbrains.upsource.db.impl.DatabaseFlushExecutorImpl$Executor.run(DatabaseFlushExecutorImpl.java:231)
... 1 more
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)
at com.datastax.driver.core.RequestHandler.reportNoMoreHosts(RequestHandler.java:265)
at com.datastax.driver.core.RequestHandler.access$1200(RequestHandler.java:62)
at com.datastax.driver.core.RequestHandler$SpeculativeExecution.findNextHostAndQuery(RequestHandler.java:357)
at com.datastax.driver.core.RequestHandler.startNewExecution(RequestHandler.java:138)
at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:120)
at com.datastax.driver.core.SessionManager.execute(SessionManager.java:700)
at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:144)
at com.datastax.driver.core.WriteSessionWrapper$executeAsync$$inlined$forEach$lambda$1.doResume(WriteSessionWrapper.kt:36)
at com.datastax.driver.core.WriteSessionWrapper$executeAsync$$inlined$forEach$lambda$1.invoke(WriteSessionWrapper.kt)
at com.datastax.driver.core.WriteSessionWrapper.executeQuery(WriteSessionWrapper.kt:44)
at com.datastax.driver.core.WriteSessionWrapper.executeAsync(WriteSessionWrapper.kt:36)
at com.jetbrains.upsource.database.datastax.buffering.CqlWriteBuffer$flush$2.doResume(CqlWriteBuffer.kt:250)
at com.jetbrains.upsource.database.datastax.buffering.CqlWriteBuffer$flush$2.invoke(CqlWriteBuffer.kt)
at com.jetbrains.upsource.database.datastax.ThroughDbMediator$submitWriteFunction$2.doResume(ThroughDbMediator.kt:37)
at com.jetbrains.upsource.database.datastax.ThroughDbMediator$submitWriteFunction$2.invoke(ThroughDbMediator.kt)

1 comment

Been trying to fix this.  Is there anyway to just recreate the db. This is a new install.  I have need to keep existing data.

0

Please sign in to leave a comment.