Comments (18)
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.
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.
cc @cockroachdb/cdc
from cockroach.
I'm interested in working on this issue -- is it possible to take a look at it?
from cockroach.
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.
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.
Hi @asg0451, Thank you for the information!
from cockroach.
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.
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.
@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.
@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.
@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.
@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.
what if you don't run that query? what's the error then?
from cockroach.
@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.
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.
@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.
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)
- kv/kvserver: TestStoreRangeMergeWithData failed HOT 1
- streamingccl/logical: prevent data looping with OriginID MVCCValueHeader filtering HOT 1
- sql: schema change repeatedly retries with gcttl error HOT 2
- backfill: override statement_timeout to 0 in VERIFY INDEX job HOT 5
- sql: arbritrary assignment of columns to families in logictests HOT 2
- roachtest: connection_latency/nodes=3/certs failed
- roachtest: failover/non-system/pause failed HOT 1
- sql/stmtdiagnostics: TestDiagnosticsRequest failed HOT 1
- Improving the tracing of the declarative schema changer
- Sentry: store_remove_replica.go:120: log.Fatal: replica descriptor's ID has changed (3 >= 2) (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Store).re... HOT 1
- schemachanger: handle prepared statements in DSC HOT 1
- telemetry: apply sampling rules to more statement types other than DML
- util/log: TestHTTPSinkHeadersAndCompression failed
- roachtest: cluster_creation failed
- ccl/backupccl: TestOnlineRestoreBasic failed
- ccl/multitenantccl/tenantcostclient: TestDataDriven failed HOT 2
- Sentry: catch.go:29: runtime error: invalid memory address or nil pointer dereference (1) assertion failure Wraps: (2) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/u... HOT 1
- ccl/kvccl/kvfollowerreadsccl: TestBoundedStalenessDataDriven failed HOT 1
- ccl/backupccl: TestClusterRestoreFailCleanup failed
- kvserver: log iterator stats for lock table scan HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cockroach.