Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Jan 2013 at 21:11 UTC
Updated:
20 May 2024 at 05:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gielfeldt commentedComment #2
gielfeldt commentedComment #3
gielfeldt commentedD8 patch
Comment #4
andypostThis actually needs test coverage
Comment #5
podarokagree with @andypost
#3 looks good anyway
Comment #9
joseph.olstadShould be committed even without tests. To test this you'd probably need the autoslave module. So therefore the tests should be done in contrib, not core. Core already has enough tests to make sure that this doesn't cause a regression. Unless of course there was some way to synthesize a test without autoslave?
Comment #10
joseph.olstadComment #11
joseph.olstadIn order to write a test for this you'd have to add a test configuration for master/slave or master/master/slave or master/slave/slave , which normally would require the autoslave module as core does not currently support this type of configuration on it's own.
However, perhaps a pseudo test could be written in the test sandbox where the expected configuration for a slave would be appended to the database array prior to an assert? I suppose it is could be possible to write this sort of test! any volunteers?
Comment #13
dsutter commentedRTBC+ patch #1 for D7
Comment #14
gdaw commentedPatch #1 RTBC +1
Comment #22
smustgrave commentedIssue appears to be 5+ years old. The function in question _drupal_initialize_db_test_prefix is no longer part of Drupal 9 (currently on 9.5.x). Could someone confirm this issue still? If so adding updated summary.
Comment #23
joseph.olstad@smustgrave, the Drupal 9 development of autoslave, the module that uses this patch is maintained by the Ukrainian developer eugene.brit , he may be able to answer your questions.
#3259794: D9 stable version
Comment #24
smustgrave commentedI don't see this ticket listed on that page?
Comment #25
andypostComment #26
joseph.olstad@smultgrave, it appears that the D9 version of autoslave does not require a core patch. With that said , currently only 5 Drupal 9 installations are using autoslave whereas approximately 185 installations are Drupal 7 installations that use the Drupal 7 version of this patch. I haven't tried autoslave with Drupal 9, it's quite an advanced db setup and configuration required to be able use this.
With that said, I did development on the autoslave module back in 2017 and it is impressive to see in action when it's set up correctly.
Comment #28
kristen polTagging for the Bug Smash Initiative.
Comment #30
pameeela commentedKnocking this back to D7 since it was confirmed it's not an issue in D9.