Giter VIP home page Giter VIP logo

Comments (7)

mgartner avatar mgartner commented on August 26, 2024
failed, checking that imported data was completely removed: "pq: job 952221520862117889: node liveness error: restarting in background"

error executing 'SELECT * FROM t ORDER BY i': pq: relation "t" is offline: importing

Sounds like the logic here is not robust enough for retry-able failures:

sqlDB.CheckQueryResults(t, `SELECT * FROM t ORDER BY i`, [][]string{})

from cockroach.

mgartner avatar mgartner commented on August 26, 2024

It looks like a node died during this test, but I see no clues as to why.

from cockroach.

yuzefovich avatar yuzefovich commented on August 26, 2024

The test itself stops one node in the cluster. In this case it seems that the import was paused due to the node failure, so the table remained offline - this seems like expected behavior in some cases.

from cockroach.

mgartner avatar mgartner commented on August 26, 2024

The test itself stops one node in the cluster.

That's unrelated to the error, though, isn't it? Otherwise we'd hit this case every time.

from cockroach.

yuzefovich avatar yuzefovich commented on August 26, 2024

I think it is related. IIUC what happens is the following:

  • we have a distributed import plan. When the import starts, the table is taken offline
  • after some time we shut down one of the nodes
  • import has an internal retry loop, so it can usually survive that single node failure and actually finish. After finishing, the table is taken online
  • however, depending on at which point in time the node death is recognized, that retry loop might not retry the error and return it to the client. In this case we currently check that all imported data was rolled back (as of 14ef3c0).

I think what's missing is that in the last bullet point the table might be still offline, and this is what this test failure tells us. I'm not sure whether it is always offline or only sometimes offline in case the import fails.

from cockroach.

mgartner avatar mgartner commented on August 26, 2024

IIUC the table is still offline because the import is being retried: restarting in background. So this is an internal retry error that we don't properly trap?

from cockroach.

yuzefovich avatar yuzefovich commented on August 26, 2024

Hm, this error message is used in two places where the job coordinator detects a context cancellation error. The error message suggests that the node that is coordinating the import job is overloaded. The import's retry loop exits if it detects the context cancellation, so it's expected that we won't succeed here.

Note that this is a race config on the engflow environment. We enabled race config somewhat recently in #117906 - perhaps we'll need to skip this test under race now that we've transitioned to running race CI on the engflow.

from cockroach.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.