Coder Social home page Coder Social logo

Comments (6)

philip-stoev avatar philip-stoev commented on June 13, 2024

@moulimukherjee @guswynn @benesch not sure who would be the right person/team to assign this to...

from materialize.

philip-stoev avatar philip-stoev commented on June 13, 2024

Once it has failed, you can use:

psql -p  `docker port platform-checks-materialized-1 | grep '0.0' | grep 6875 | cut -d':' -f2` -h 127.0.0.1 -U materialize 

to log in the Mz instance and then you can run:

select * from mz_internal.mz_aws_connections;

and it will return 1 row. However,

materialize=> select count(*) from mz_connections where type = 'aws';
 count 
-------
     2
(1 row)

That is, the referential integrity between the two tables has been broken.

I am setting this to a release blocker as this is a form of data corruption with unknown downstream consequences.

from materialize.

benesch avatar benesch commented on June 13, 2024

Ah, this happens if the materialized instance is restarted without the necessary environment variables:

"MZ_AWS_CONNECTION_ROLE_ARN=arn:aws:iam::123456789000:role/MaterializeConnection",
"MZ_AWS_EXTERNAL_ID_PREFIX=eb5cb59b-e2fe-41f3-87ca-d2176a495345",
*environment_extra,

@philip-stoev I suspect I added those environment variables to the wrong spot, and they are not in effect after the checks framework restarts the environment. I could use your help to figure out where I should have added those environment variables.

from materialize.

philip-stoev avatar philip-stoev commented on June 13, 2024

@benesch oh , let me check that.

from materialize.

philip-stoev avatar philip-stoev commented on June 13, 2024

@benesch It seems #24114 will do the trick, so I will merge it. However, test issues aside, is it a concern that the referential integrity was broken in this situation?

from materialize.

benesch avatar benesch commented on June 13, 2024

However, test issues aside, is it a concern that the referential integrity was broken in this situation?

Working as designed! If the AWS-related environment variables are missing on restart, I figured it was better to error! than to panic the whole environmentd and refuse to start up. I made the errors as loud as possible so that they get reported to Sentry in production.

There's no explicit foreign key between mz_connections and mz_aws_connections, so (IMO) not deep concerning correctness issues here. LMK if you disagree!

from materialize.

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.