Comments (6)
OK, I'm unable to repeat what you saw (I modified the test case above to set sql_mode instead of gtid_mode and I did not see any problems). I'm not sure what part I may be missing. I'm going to close this for now but if you have more info we can re-open it at any time.
from vitess.
@wiebeytec To clarify, you stopped the vttablet
process that was using the old --db_host
value and started a new vttablet
process with the new --db_host
value?
My guess would be that it's trying to perform an operation that it cannot. Can you please share the full list of flags that you're using, with sensitive info redacted as necessary? I'm guessing it's related to this: #14871
from vitess.
First: I figured out what was wrong, and it was my mistake. So, the issue is one of logging errors. First to answer your questions:
@wiebeytec To clarify, you stopped the
vttablet
process that was using the old--db_host
value and started a newvttablet
process with the new--db_host
value?
Indeed. I just stopped it and started it again, with a new --db-host
.
My guess would be that it's trying to perform an operation that it cannot. Can you please share the full list of flags that you're using, with sensitive info redacted as necessary? I'm guessing it's related to this: #14871
I edited the top comment with the information.
It also seemed to me it was trying to do something it cannot, but it didn't log that.
The problem was that I forgot to pick the correct 'parameter group' for the settings. So it's one of these settings that made it fail:
from vitess.
Thanks, @wiebeytec . So not being able to start makes sense, but not having any logs for it does not. We should be able to repeat it easily with the local examples by editing one of the tablet's my.cnf files to add gtid_mode=OFF_PERMISSIVE
, then restarting it. We could then turn this into a bug report about the lack of any logging for that and address that specific part.
from vitess.
@wiebeytec Here's a test case which should demonstrate the lack of a clear error message:
git checkout main && make build
pushd examples/local
./101_initial_cluster.sh
../common/scripts/vtorc-down.sh
vtctldclient SetKeyspaceDurabilityPolicy --durability-policy=none commerce
sleep 10
replicauid=$(vtctldclient GetTablets --keyspace commerce --tablet-type replica | awk '{print $1}' | cut -d- -f2 | bc)
primaryuid=$(vtctldclient GetTablets --keyspace commerce --tablet-type primary | awk '{print $1}' | cut -d- -f2 | bc)
CELL=zone1 KEYSPACE=commerce TABLET_UID="${replicauid}" ../common/scripts/vttablet-down.sh
# 102 is always the rdonly tablet
CELL=zone1 KEYSPACE=commerce TABLET_UID=102 ../common/scripts/vttablet-down.sh
echo "gtid_mode=OFF_PERMISSIVE" >> "${VTDATAROOT}/vt_$(vtctldclient GetTablets --keyspace commerce --tablet-type primary | awk '{print $1}' | cut -d '-' -f2)"/my.cnf
CELL=zone1 KEYSPACE=commerce TABLET_UID="${primaryuid}" ../common/scripts/vttablet-down.sh
CELL=zone1 KEYSPACE=commerce TABLET_UID="${primaryuid}" ../common/scripts/vttablet-up.sh
vtpid=$(pidof vttablet | awk '{print $1}')
tail -100f ${VTDATAROOT}/tmp/vttablet*.INFO.*.${vtpid}
But clearly there's something missing here.
What MySQL config option(s) in this parameter group did you think were the cause?
Are you using the Vitess Operator here?
from vitess.
(We're not using Vitess Operator.)
I confirmed it was SQL_MODE
value STRICT_TRANS_TABLES
.
from vitess.
Related Issues (20)
- Bug Report: VStream does not handle column collations properly
- Bug Report: 'show vitess_replication_status' always says ReplicationLag is 0 HOT 3
- Bug Report: vtgate panics while reading MoveTables status
- OnlineDDL/VReplication: inconsistency between `vcopier` & `vplayer` when copying shuffled enum values
- Feature Request: Use pooled connection for FullStatus RPC for VTOrc
- Release of `v19.0.0`
- Feature Request: reduce topo calls in `tabletgateway`'s `WaitForTablets(...)`
- Bug Report: Online DDL with foreign keys: MySQL fails altering shadow table when modifying column `NULL` -> `NOT NULL`
- Bug Report: Reparent error message ambiguous
- Bug Report: Column Aliases are not respected in some queries that have outer join clauses
- Add GetShardReplication to vtctldclient
- Feature Request: `schemadiff` to produce textual diff
- Bug Report: tablet throttler starvation scenario
- Feature Request: support automatic reshard handling across VStreams
- Multi-tenant import support in Vitess
- Bug Report: builtin backup leaks goroutine when it fails
- Bug Report: Backup: runtime error on v19.0.0 HOT 7
- Bug Report: BindVars not working in v19.0.0 HOT 2
- Throttle logs for exceeding of max memory rows
- Upgrade golang/protobuf dependency HOT 2
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 vitess.