GithubHelp home page GithubHelp logo

Comments (18)

rharding6373 avatar rharding6373 commented on June 30, 2024 1

Thanks for your interest! Please feel free to work on this issue, and include me in the reviewers when you're ready. If you haven't seen it yet, here is some helpful guidance on how to submit a PR to cockroachdb: https://cockroachlabs.atlassian.net/wiki/spaces/CRDB/pages/181469476/Submitting+your+contribution

from cockroach.

asg0451 avatar asg0451 commented on June 30, 2024 1

Hey @jonathanc-n, you don't create changefeeds by inserting into the jobs table, you do it by executing a CREATE CHANGEFEED command. See the documentation here: https://www.cockroachlabs.com/docs/stable/create-changefeed

from cockroach.

blathers-crl avatar blathers-crl commented on June 30, 2024

cc @cockroachdb/cdc

from cockroach.

leorporat avatar leorporat commented on June 30, 2024

I'm interested in working on this issue -- is it possible to take a look at it?

from cockroach.

XiaochenCui avatar XiaochenCui commented on June 30, 2024

Hi, @rharding6373:

I would like to work on this issue, but I don't have access to the issue page on jira (cockroachlabs.atlassian.net), can you help me with that? Thanks a lot!

from cockroach.

asg0451 avatar asg0451 commented on June 30, 2024

Hey @XiaochenCui, stepping in here since Rachael is out. Our JIRA issues are identical to our Github issues, so you're not missing any information by not having access to it. Everything is mirrored in this issue. If you have any questions or need any help please let me know!

from cockroach.

XiaochenCui avatar XiaochenCui commented on June 30, 2024

Hi @asg0451, Thank you for the information!

from cockroach.

jonathanc-n avatar jonathanc-n commented on June 30, 2024

Hello, I'm trying to create a test for my implementation, I am trying to insert new jobs using a specific timestamp and querying to check if it is returning the correct value. Where do I find the schema for the job tables?

from cockroach.

jonathanc-n avatar jonathanc-n commented on June 30, 2024

Hello @asg0451 . When running the test it says, 'kv.rangefeed.enabled is only settable by the operator'. I couldn't find any thing in the documentation to change the way I am enabling the kv.rangefeed. Do you know of a way to fix this?

from cockroach.

asg0451 avatar asg0451 commented on June 30, 2024

@jonathanc-n which test are you running that's running into this? are you running this manually against cockroach cloud serverless? if so, you don't need to set that option as it's already enabled.

from cockroach.

jonathanc-n avatar jonathanc-n commented on June 30, 2024

@asg0451 it is happening in my own test that i created in show_changefeed_jobs_test.go. I originally didn't set it, but had to set it as it was logged in terminal when i tried running the test (I then assumed i would need it).

from cockroach.

asg0451 avatar asg0451 commented on June 30, 2024

@jonathanc-n if you're using the cdctest test helpers you shouldnt need to set that setting. like this test here: https://github.com/asg0451/cockroach/blob/1d3c0cd070c5ab047ccaf987403cb1c5cc295e70/pkg/ccl/changefeedccl/show_changefeed_jobs_test.go#L116

Can you link the code that you're having the trouble with?

from cockroach.

jonathanc-n avatar jonathanc-n commented on June 30, 2024

@asg0451 I made my own test case so I'm not able to link it. This is the error:
error executing query="SET CLUSTER SETTING kv.rangefeed.enabled = true" args=[]: pq: setting kv.rangefeed.enabled is only settable by the operator

I am writing the tests in the same code file that you sent. How do you make sure you are using the cdc test helpers?

from cockroach.

asg0451 avatar asg0451 commented on June 30, 2024

what if you don't run that query? what's the error then?

from cockroach.

jonathanc-n avatar jonathanc-n commented on June 30, 2024

@asg0451 error executing query="CREATE CHANGEFEED FOR TABLE foo" args=[]: pq: rangefeeds require the kv.rangefeed.enabled setting. See https://www.cockroachlabs.com/docs/dev/create-and-configure-changefeeds.html#enable-rangefeeds

this is the error I receive when i don't enable it

from cockroach.

asg0451 avatar asg0451 commented on June 30, 2024

Strange. I don't think I can help you debug this much further without actually seeing the code. Can you link it here?

from cockroach.

jonathanc-n avatar jonathanc-n commented on June 30, 2024

@asg0451 Test file (bottom):
https://github.com/jonathanc-n/cockroach/blob/master/pkg/ccl/changefeedccl/show_changefeed_jobs_test.go

Set up a simple test case for the change in this file:
https://github.com/jonathanc-n/cockroach/blob/master/pkg/sql/delegate/show_changefeed_jobs.go

from cockroach.

asg0451 avatar asg0451 commented on June 30, 2024

Ah I see. There is a way to fix this issue in the approach you've taken there. however, i recommend following the examples of the other tests in this file, such as this one https://github.com/jonathanc-n/cockroach/blob/master/pkg/ccl/changefeedccl/show_changefeed_jobs_test.go#L63

make a testfFn and call cdcTest(), etc

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.