[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-04 Thread Stashbot
Stashbot added a comment.


  Mentioned in SAL (#wikimedia-operations) [2020-05-04T15:45:54Z] 
 Synchronized 
php-1.35.0-wmf.30/includes/libs/rdbms/database/DatabaseMysqlBase.php: T251457 
 rdbms: don't treat lock() as a 
write operation (duration: 01m 04s)

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Stashbot
Cc: Ladsgroup, Nikerabbit, Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, 
Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, brennen, Bugreporter, 
LarsWirzenius, Hogue, Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, 
Beast1978, Un1tY, eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, 
darthmon_wmde, Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, 
NebulousIris, Banyek, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, 
Adrian1985, Cpaulf30, Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, 
Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-04 Thread gerritbot
gerritbot added a comment.


  Change 593765 **merged** by jenkins-bot:
  [mediawiki/core@wmf/1.35.0-wmf.30] rdbms: don't treat lock() as a write 
operation
  
  https://gerrit.wikimedia.org/r/593765

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: Ladsgroup, Nikerabbit, Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, 
Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, brennen, Bugreporter, 
LarsWirzenius, Hogue, Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, 
Beast1978, Un1tY, eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, 
darthmon_wmde, Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, 
NebulousIris, Banyek, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, 
Adrian1985, Cpaulf30, Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, 
Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-04 Thread daniel
daniel added a comment.


  In T251457#6105089 , 
@Jdforrester-WMF wrote:
  
  > UBN patches, and particularly train-blocking UBN patches, should not wait 
for SWAT, but be deployed immediately (in line with 
https://wikitech.wikimedia.org/wiki/Deployments/Emergencies).
  
  One of these days I'll learn how to do that. I'm still scared of prod servers.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Ladsgroup, Nikerabbit, Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, 
Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, brennen, Bugreporter, 
LarsWirzenius, Hogue, Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, 
Beast1978, Un1tY, eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, 
darthmon_wmde, Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, 
NebulousIris, Banyek, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, 
Adrian1985, Cpaulf30, Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, 
Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-04 Thread Jdforrester-WMF
Jdforrester-WMF added a comment.


  UBN patches, and particularly train-blocking UBN patches, should not wait for 
SWAT, but be deployed immediately (in line with 
https://wikitech.wikimedia.org/wiki/Deployments/Emergencies).

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Jdforrester-WMF
Cc: Ladsgroup, Nikerabbit, Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, 
Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, brennen, Bugreporter, 
LarsWirzenius, Hogue, Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, 
Beast1978, Un1tY, eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, 
darthmon_wmde, Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, 
NebulousIris, Banyek, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, 
Adrian1985, Cpaulf30, Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, 
Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-04 Thread LarsWirzenius
LarsWirzenius added a comment.


  Thanks!

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: LarsWirzenius
Cc: Ladsgroup, Nikerabbit, Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, 
Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, brennen, Bugreporter, 
LarsWirzenius, Hogue, Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, 
Beast1978, Un1tY, eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, 
darthmon_wmde, Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, 
NebulousIris, Banyek, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, 
Adrian1985, Cpaulf30, Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, 
Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-04 Thread daniel
daniel added a comment.


  In T251457#6104041 , 
@LarsWirzenius wrote:
  
  > https://gerrit.wikimedia.org/r/593757 has been merged, but has it been 
deployed (I assume it will need to be backported to the 1.35.0-wmf.30 branch as 
well)? Train it held until it has been.
  
  Scheduled for SWAT 
https://wikitech.wikimedia.org/w/index.php?title=Deployments=revision=1864961=1864936

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Ladsgroup, Nikerabbit, Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, 
Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, brennen, Bugreporter, 
LarsWirzenius, Hogue, Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, 
Beast1978, Un1tY, eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, 
darthmon_wmde, Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, 
NebulousIris, Banyek, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, 
Adrian1985, Cpaulf30, Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, 
Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-04 Thread LarsWirzenius
LarsWirzenius added a comment.


  https://gerrit.wikimedia.org/r/593757 has been merged, but has it been 
deployed (I assume it will need to be backported to the 1.35.0-wmf.30 branch as 
well)? Train it held until it has been.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: LarsWirzenius
Cc: Nikerabbit, Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, 
Krinkle, Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, 
Hogue, Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, Beast1978, Un1tY, 
eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, darthmon_wmde, 
Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, NebulousIris, Banyek, 
Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, 
Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, Lordiis, 
GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-01 Thread gerritbot
gerritbot added a comment.


  Change 593757 **merged** by jenkins-bot:
  [mediawiki/core@master] rdbms: don't treat lock() as a write operation
  
  https://gerrit.wikimedia.org/r/593757

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, Beast1978, Un1tY, 
eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, darthmon_wmde, 
Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, NebulousIris, Banyek, 
Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, 
Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, Lordiis, 
GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-01 Thread gerritbot
gerritbot added a comment.


  Change 593765 had a related patch set uploaded (by Krinkle; owner: Daniel 
Kinzler):
  [mediawiki/core@wmf/1.35.0-wmf.30] rdbms: don't treat lock() as a write 
operation
  
  https://gerrit.wikimedia.org/r/593765

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, Beast1978, Un1tY, 
eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, darthmon_wmde, 
Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, NebulousIris, Banyek, 
Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, 
Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, Lordiis, 
GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-01 Thread daniel
daniel added a comment.


  While I was chatting with @Krinkle on IRC, he found out that 
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/582022 caused 
Database::lock() to be treated as a write operation now. This was not the case 
before, and indeed should not be the case. This means the error reported here 
is spurious, the transaction isn't actually spending a lot of time in writes.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, Blissjay007, Oblanco79, Alter-paule, Beast1978, Un1tY, 
eprodromou, Hook696, Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, darthmon_wmde, 
Kent7301, Meekrab2012, joker88john, CucyNoiD, Nandana, NebulousIris, Banyek, 
Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, 
Rayssa-, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, Lordiis, 
GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, 
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-01 Thread gerritbot
gerritbot added a comment.


  Change 593757 had a related patch set uploaded (by Daniel Kinzler; owner: 
Daniel Kinzler):
  [mediawiki/core@master] Database: don't count lock() as a write operation
  
  https://gerrit.wikimedia.org/r/593757

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-01 Thread daniel
daniel added a comment.


  In T251457#6099971 , @Tgr 
wrote:
  
  > MediaWiki automatically wraps the entire request in a transaction if it 
encounters a write which does not do its own transaction handling. So something 
unrelated to saving could have started the transaction, like AbuseFilter taking 
an action, or a session refresh (although I would expect either to show up in 
Logstash).
  
  That's true, but an automatic transaction would have been flushed before 
starting the explicit transaction for the revision creation, I think...
  
  My plan of action for now:
  
  - make database::lock() flush automatic transactions.
  - make database::lock() flush warn about explicit transactions (and fail 
tests)
  - make the Parser warn if an explicit transaction is in progress (and fail 
tests)
  
  I hope that this will trigger the condition that causes this timeout in 
production, by making tests fail.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-01 Thread Tgr
Tgr added a comment.


  MediaWiki automatically wraps the entire request in a transaction if it 
encounters a write which does not do its own transaction handling. So something 
unrelated to saving could have started the transaction, like AbuseFilter taking 
an action, or a session refresh (although I would expect either to show up in 
Logstash).

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tgr
Cc: Tgr, Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-05-01 Thread daniel
daniel added a comment.


  > I'm not entirely sure I understand it correctly, but 
PageEditStash::getAndWaitForStashValue uses ILoadBalancer::getAnyOpenConnection 
and by chance acquires a connection where a transaction was already open for 
edit?
  
  Yes. the question is, why is there a transaction open when 
EditPage::runPostMergeFilters is called? In my mind, that should not be the 
case.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Pchelolo
Pchelolo added a comment.


  Complete stack trace:
  
Expectation (writeQueryTime <= 1) by MediaWiki::main not met (actual: 
3.366758108139):
query-m: SELECT GET_LOCK('X', N) AS lockstatus [TRX#7ad8fc]
#0 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/TransactionProfiler.php(255):
 
Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writeQueryTime',
 Object(Wikimedia\Rdbms\GeneralizedSql), 3.366758108139)
#1 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/database/Database.php(1396):
 
Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion(Object(Wikimedia\Rdbms\GeneralizedSql),
 1588267688.055, true, 1)
#2 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/database/Database.php(1278):
 Wikimedia\Rdbms\Database->executeQueryAttempt('SELECT GET_LOCK...', 'SELECT /* 
Media...', true, 'MediaWiki\\Stora...', 136)
#3 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/database/Database.php(1211):
 Wikimedia\Rdbms\Database->executeQuery('SELECT GET_LOCK...', 
'MediaWiki\\Stora...', 136)
#4 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/database/DatabaseMysqlBase.php(1216):
 Wikimedia\Rdbms\Database->query('SELECT GET_LOCK...', 'MediaWiki\\Stora...', 
136)
#5 
/srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/PageEditStash.php(324): 
Wikimedia\Rdbms\DatabaseMysqlBase->lock('frwiki:stashedi...', 
'MediaWiki\\Stora...', 30)
#6 
/srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/PageEditStash.php(222): 
MediaWiki\Storage\PageEditStash->getAndWaitForStashValue('frwiki:stashedi...')
#7 
/srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/DerivedPageDataUpdater.php(778):
 MediaWiki\Storage\PageEditStash->checkCache(Object(Title), 
Object(WikitextContent), Object(User))
#8 /srv/mediawiki/php-1.35.0-wmf.30/includes/page/WikiPage.php(2044): 
MediaWiki\Storage\DerivedPageDataUpdater->prepareContent(Object(User), 
Object(MediaWiki\Storage\RevisionSlotsUpdate), true)
#9 
/srv/mediawiki/php-1.35.0-wmf.30/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(30):
 WikiPage->prepareContentForEdit(Object(WikitextContent))
#10 
/srv/mediawiki/php-1.35.0-wmf.30/includes/HookRunner/HookContainer.php(283): 
SpamBlacklistHooks::filterMergedContent(Object(DerivativeContext), 
Object(WikitextContent), Object(Status), 'Proposition de ...', Object(User), 
false)
#11 
/srv/mediawiki/php-1.35.0-wmf.30/includes/HookRunner/HookContainer.php(126): 
MediaWiki\HookRunner\HookContainer->callLegacyHook('EditFilterMerge...', Array, 
Array, Array)
#12 /srv/mediawiki/php-1.35.0-wmf.30/includes/Hooks.php(135): 
MediaWiki\HookRunner\HookContainer->run('EditFilterMerge...', Array, Array)
#13 /srv/mediawiki/php-1.35.0-wmf.30/includes/EditPage.php(1931): 
Hooks::run('EditFilterMerge...', Array)
#14 /srv/mediawiki/php-1.35.0-wmf.30/includes/EditPage.php(2388): 
EditPage->runPostMergeFilters(Object(WikitextContent), Object(Status), 
Object(User))
#15 /srv/mediawiki/php-1.35.0-wmf.30/includes/EditPage.php(1748): 
EditPage->internalAttemptSave(NULL, false)
#16 /srv/mediawiki/php-1.35.0-wmf.30/includes/EditPage.php(728): 
EditPage->attemptSave(NULL)
#17 /srv/mediawiki/php-1.35.0-wmf.30/includes/actions/EditAction.php(59): 
EditPage->edit()
#18 /srv/mediawiki/php-1.35.0-wmf.30/includes/actions/SubmitAction.php(38): 
EditAction->show()
#19 /srv/mediawiki/php-1.35.0-wmf.30/includes/MediaWiki.php(519): 
SubmitAction->show()
#20 /srv/mediawiki/php-1.35.0-wmf.30/includes/MediaWiki.php(305): 
MediaWiki->performAction(Object(Article), Object(Title))
#21 /srv/mediawiki/php-1.35.0-wmf.30/includes/MediaWiki.php(973): 
MediaWiki->performRequest()
#22 /srv/mediawiki/php-1.35.0-wmf.30/includes/MediaWiki.php(535): 
MediaWiki->main()
#23 /srv/mediawiki/php-1.35.0-wmf.30/index.php(47): MediaWiki->run()
#24 /srv/mediawiki/w/index.php(3): require('/srv/mediawiki/...')
#25 {main}
  
  I'm not entirely sure I understand it correctly, but 
PageEditStash::getAndWaitForStashValue uses ILoadBalancer::getAnyOpenConnection 
and by chance acquires a connection where a transaction was already open for 
edit?

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pchelolo
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread daniel
daniel added a comment.


  @Pchelolo can you provide the rest of the stack trace? This is triggered via 
SpamBlacklistHooks, and I want to understand why that is being executed inside 
the DB transaction.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread daniel
daniel added a comment.


  In T251457#6098793 , 
@Krinkle wrote:
  
  > @daniel How did it work before? What needed to change? What actually 
changed?
  
  I'm not aware of any changes in that area.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Krinkle
Krinkle added a comment.


  @daniel How did it work before? What needed to change? What actually changed?

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Krinkle
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread daniel
daniel added a comment.


  So, PageEditStash::parseAndCache() parses the page while holding the lock. 
PageEditStash->getAndWaitForStashValue() waits for that lock, and it apparently 
does so within the DB transaction that will be used to write the new revision. 
If parsing takes long, the process waiting for the lock may wait for long, and 
the transaction may time out.
  
  Solution: PageEditStash->getAndWaitForStashValue() should be called ouside 
the transaction. Don't know yet how hard or easy that would be.
  
  Thanks @Pchelolo for digging up that stacktrace. I really need to improve my 
Kibana-Fo

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread daniel
daniel added a comment.


  In T251457#6098675 , 
@Pchelolo wrote:
  
  > It's PageEditStash. See my comment above.
  
  Saw it and already edited my comment ;)

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Pchelolo
Pchelolo added a comment.


  It's PageEditStash. See my comment above.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pchelolo
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread daniel
daniel added a comment.


  In T251457#6098402 , 
@Pchelolo wrote:
  
  > @daniel I don't think this is that lock showing up here. Reading the code, 
it seems like if that lock was taken, we should've seen a bunch more queries in 
this transaction, like some deletes, read from the archive table etc.
  
  Good point. So, other candidates are:
  
  - SqlBagOStuff::lock, which is called indirectly but a lot of different 
caching related things, including WANObjectCache. Which in turn is used by 
NameTableStore, but we should only be doing reads on that during normal 
operation, and not locking the database... I hope.
  - PageEditStash. Should only be read, not written to, while saving a new 
revision.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Pchelolo
Pchelolo added a comment.


  The other associated log actually gives more insight on which lock is making 
the transaction timeout:
  
Expectation (writeQueryTime <= 1) by MediaWiki::main not met (actual: 
3.366758108139):
query-m: SELECT GET_LOCK('X', N) AS lockstatus [TRX#7ad8fc]
#0 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/TransactionProfiler.php(255):
 
Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writeQueryTime',
 Object(Wikimedia\Rdbms\GeneralizedSql), 3.366758108139)
#1 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/database/Database.php(1396):
 
Wikimedia\Rdbms\TransactionProfiler->recordQueryCompletion(Object(Wikimedia\Rdbms\GeneralizedSql),
 1588267688.055, true, 1)
#2 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/database/Database.php(1278):
 Wikimedia\Rdbms\Database->executeQueryAttempt('SELECT GET_LOCK...', 'SELECT /* 
Media...', true, 'MediaWiki\\Stora...', 136)
#3 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/database/Database.php(1211):
 Wikimedia\Rdbms\Database->executeQuery('SELECT GET_LOCK...', 
'MediaWiki\\Stora...', 136)
#4 
/srv/mediawiki/php-1.35.0-wmf.30/includes/libs/rdbms/database/DatabaseMysqlBase.php(1216):
 Wikimedia\Rdbms\Database->query('SELECT GET_LOCK...', 'MediaWiki\\Stora...', 
136)
#5 
/srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/PageEditStash.php(324): 
Wikimedia\Rdbms\DatabaseMysqlBase->lock('frwiki:stashedi...', 
'MediaWiki\\Stora...', 30)
#6 
/srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/PageEditStash.php(222): 
MediaWiki\Storage\PageEditStash->getAndWaitForStashValue('frwiki:stashedi...')
#7 
/srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/DerivedPageDataUpdater.php(778):
 MediaWiki\Storage\PageEditStash->checkCache(Object(Title), 
Object(WikitextContent), Object(User))
#8 /srv/mediawiki/php-1.35.0-wmf.30/includes/page/WikiPage.php(2044): 
MediaWiki\Storage\DerivedPageDataUpdater->prepareContent(Object(User), 
Object(MediaWiki\Storage\RevisionSlotsUpdate), true)
#9 
/srv/mediawiki/php-1.35.0-wmf.30/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(30):
 WikiPage->prepareContentForEdit(Object(WikitextContent))
#10 
/srv/mediawiki/php-1.35.0-wmf.30/includes/HookRunner/HookContainer.php(283): 
SpamBlacklistHooks::filterMergedContent(Object(DerivativeContext), 
Object(WikitextContent), Object(Status), 'Proposition de ...', Object(User), 
false)

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pchelolo
Cc: Agusbou2015, Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, 
Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Marostegui
Marostegui added a comment.


  Quick answer from my side: no master switch has been done in the last few 
months on any of our s1-s8, x1 sections

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Marostegui
Cc: Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, Marostegui, 
Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, Aklapper, Naike, 
eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Pchelolo
Pchelolo added a comment.


  @daniel I don't think this is that lock showing up here. Reading the code, it 
seems like if that lock was taken, we should've seen a bunch more queries in 
this transaction, like some deletes, read from the archive table etc.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pchelolo
Cc: Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, Marostegui, 
Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, Aklapper, Naike, 
eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, 
Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Pchelolo
Pchelolo added a comment.


  Looking at the requestId of one of these errors, the following log messages 
are found: https://logstash.wikimedia.org/goto/3e387a16e01ae0f02e72b413d6691539
  
  The interesting one there is:
  
Sub-optimal transaction on DB(s) [10.64.16.34 (frwiki) (TRX#7ad8fc)]: 
0   3.366758query-m: SELECT GET_LOCK('X', N) AS lockstatus 
[TRX#7ad8fc]
1   0.000420query-m: SELECT RELEASE_LOCK('X') as lockstatus 
[TRX#7ad8fc]
2   0.000425query-m: INSERT INTO `comment` 
(comment_hash,comment_text,comment_data) VALUES (N,'X',NULL) [TRX#7ad8fc]
3   0.000508query-m: INSERT INTO `revision` 
(rev_page,rev_parent_id,rev_minor_edit,rev_timestamp,rev_deleted,rev_len,rev_sha1)
 VALUES (N,...,N,'X') [TRX#7ad8fc]
4   0.000354query-m: INSERT INTO `revision_comment_temp` 
(revcomment_rev,revcomment_comment_id) VALUES (N,...,N) [TRX#7ad8fc]
5   0.000382query-m: INSERT INTO `revision_actor_temp` 
(revactor_rev,revactor_actor,revactor_timestamp,revactor_page) VALUES 
(N,...,N,'X',revactor_page = N [TRX#7ad8fc]
6   0.005014query-m: INSERT INTO `blobs_cluster2N` (blob_text) 
VALUES ('X')
7   0.000426query-m: INSERT INTO `text` (old_id,old_text,old_flags) 
VALUES (NULL,'X') [TRX#7ad8fc]
8   0.000362query-m: INSERT INTO `content` 
(content_size,content_sha1,content_model,content_address) VALUES (N,'X') 
[TRX#7ad8fc]
9   0.000423query-m: INSERT INTO `slots` 
(slot_revision_id,slot_role_id,slot_content_id,slot_origin) VALUES (N,...,N) 
[TRX#7ad8fc]
10  0.000452query-m: UPDATE `page` SET page_latest = N,page_touched 
= 'X' WHERE page_id = N [TRX#7ad8fc]
  
  The really long one seems to be `SELECT GET_LOCK('X', N) AS lockstatus`

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pchelolo
Cc: Pchelolo, daniel, DannyS712, Jdforrester-WMF, Krinkle, Marostegui, 
Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, Aklapper, Naike, 
Blissjay007, Oblanco79, Alter-paule, Beast1978, Un1tY, eprodromou, Hook696, 
Daryl-TTMG, RomaAmorRoma, E.S.A-Sheild, darthmon_wmde, Kent7301, Meekrab2012, 
joker88john, CucyNoiD, Nandana, NebulousIris, Banyek, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Rayssa-, Lahi, Gq86, 
Af420, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, 
Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906, Lewizho99, 
Maathavan, _jensen, rosalieper, Agabi10, Scott_WUaS, Jonas, Wikidata-bugs, 
aude, Dinoguy1000, Lydia_Pintscher, Mbch331, Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread gerritbot
gerritbot added a comment.


  Change 593578 **merged** by jenkins-bot:
  [operations/mediawiki-config@master] Group0 only to 1.35.0-wmf.30
  
  https://gerrit.wikimedia.org/r/593578

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: daniel, DannyS712, Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, 
brennen, Bugreporter, LarsWirzenius, Hogue, Aklapper, Naike, Blissjay007, 
Oblanco79, Alter-paule, Beast1978, Un1tY, eprodromou, Hook696, Daryl-TTMG, 
RomaAmorRoma, E.S.A-Sheild, darthmon_wmde, Kent7301, Meekrab2012, joker88john, 
CucyNoiD, Nandana, NebulousIris, Banyek, Gaboe420, Versusxo, 
Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Rayssa-, Lahi, Gq86, 
Af420, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, 
Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906, Lewizho99, 
Maathavan, _jensen, rosalieper, Agabi10, Scott_WUaS, Pchelolo, Jonas, 
Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread gerritbot
gerritbot added a comment.


  Change 593578 had a related patch set uploaded (by Brennen Bearnes; owner: 
Brennen Bearnes):
  [operations/mediawiki-config@master] Group0 only to 1.35.0-wmf.30
  
  https://gerrit.wikimedia.org/r/593578

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: gerritbot
Cc: daniel, DannyS712, Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, 
brennen, Bugreporter, LarsWirzenius, Hogue, Aklapper, Naike, eprodromou, 
darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Agabi10, Scott_WUaS, Pchelolo, 
Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, Rxy, Jay8g, 
Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread DannyS712
DannyS712 added a comment.


  In T251457#6097943 , 
@daniel wrote:
  
  > Pinging patch author @DannyS712
  
  Which patch is believed to have caused this?

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: DannyS712
Cc: daniel, DannyS712, Jdforrester-WMF, Krinkle, Marostegui, Liuxinyu970226, 
brennen, Bugreporter, LarsWirzenius, Hogue, Aklapper, Naike, eprodromou, 
darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Agabi10, Scott_WUaS, Pchelolo, 
Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, Rxy, Jay8g, 
Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Krinkle
Krinkle added a comment.


  Definitely a new problem, and it is causing about 200 user actions per hour 
to be aborted/prevented (presumably edits, but may be other stuff as well).
  
  F31788692: Screenshot 2020-04-30 at 18.22.38.png 


TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Krinkle
Cc: Krinkle, Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, 
Hogue, Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Agabi10, Scott_WUaS, Pchelolo, Jonas, Wikidata-bugs, aude, Dinoguy1000, 
Lydia_Pintscher, Jdforrester-WMF, Mbch331, Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Hogue
Hogue added a comment.


  It was a not so long text I wanted to add maybe two secentences with 20 words 
and 200 characters.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Hogue
Cc: Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, darthmon_wmde, Nandana, Banyek, Rayssa-, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Agabi10, 
Scott_WUaS, Pchelolo, Jonas, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, 
Jdforrester-WMF, Mbch331, Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Marostegui
Marostegui added a comment.


  This is preventing writes from happening with that particular action,so it 
must indeed be fixed or whatever caused that increase on time, reverted I would 
say.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Marostegui
Cc: Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, Iflorez, darthmon_wmde, Nandana, Banyek, Rayssa-, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Minhnv-2809, _jensen, 
rosalieper, Agabi10, Scott_WUaS, Pchelolo, Jonas, Wikidata-bugs, aude, 
Dinoguy1000, Lydia_Pintscher, Jdforrester-WMF, Mbch331, Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T251457: LoadBalancer: Transaction spent [n] second(s) in writes, exceeding the limit of [n]

2020-04-30 Thread Marostegui
Marostegui added a comment.


  It is just a big transaction that takes more than the limit we have for 
writes, which is 3 seconds.
  Nothing we can do from the DB infra.

TASK DETAIL
  https://phabricator.wikimedia.org/T251457

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Marostegui
Cc: Marostegui, Liuxinyu970226, brennen, Bugreporter, LarsWirzenius, Hogue, 
Aklapper, Naike, eprodromou, Iflorez, darthmon_wmde, Nandana, Banyek, Rayssa-, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Minhnv-2809, _jensen, 
rosalieper, Agabi10, Scott_WUaS, Pchelolo, Jonas, Wikidata-bugs, aude, 
Dinoguy1000, Lydia_Pintscher, Jdforrester-WMF, Mbch331, Rxy, Jay8g, Krenair
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs