#musicbrainz-devel

/

      • ocharles
        but your ticket said replicated
      • 2012-05-15 13646, 2012

      • ocharles
        anyway, it uncovered a big problem
      • 2012-05-15 13600, 2012

      • ocharles
        which was that running the upgrade on slaves would create some foreign keys and stuff too
      • 2012-05-15 13605, 2012

      • ocharles
        so i had to rip it all apart
      • 2012-05-15 13616, 2012

      • warp
        ocharles: printf "Foo\nBar\n" | sed 's/^/echo /' | sh
      • 2012-05-15 13625, 2012

      • ruaok
        its said "replicated slave"
      • 2012-05-15 13627, 2012

      • ocharles
        warp: oh, heh
      • 2012-05-15 13628, 2012

      • ruaok
        not replication triggers.
      • 2012-05-15 13645, 2012

      • ruaok
        ocharles: yep, that was the problem I wanted you to fix.
      • 2012-05-15 13647, 2012

      • ocharles
        ah, right
      • 2012-05-15 13653, 2012

      • ruaok
        was there something else changed?
      • 2012-05-15 13655, 2012

      • ocharles
        i guess i confused myself, but ended up fixing the right problem :)
      • 2012-05-15 13600, 2012

      • ruaok
        yes. :)
      • 2012-05-15 13611, 2012

      • ruaok
        ok, I'm pushing seach indexes right now.
      • 2012-05-15 13614, 2012

      • ocharles
        we did a full master import with this on hobbes earlier
      • 2012-05-15 13620, 2012

      • ruaok
        next I will do a slave test to see if it works.
      • 2012-05-15 13633, 2012

      • ruaok
        adn upgrade.sh ran as RT_MASTER?
      • 2012-05-15 13640, 2012

      • ocharles
        no, only tested as RT_STANDALONE
      • 2012-05-15 13659, 2012

      • ruaok
        ok, I will do a slave and if I have time a master.
      • 2012-05-15 13606, 2012

      • ruaok
        first some fudz
      • 2012-05-15 13618, 2012

      • ocharles
        but RT_MASTER just adds replication triggers to all that, so I would hope that's in the same area of testing
      • 2012-05-15 13639, 2012

      • ruaok
        RT_MASTER does other things too. those code paths should be retested too
      • 2012-05-15 13632, 2012

      • luks
        do you have an estimate on how long does admin/sql/updates/20120314-add-tracknumber.sql take to run?
      • 2012-05-15 13644, 2012

      • ruaok
        less than 5 minutes.
      • 2012-05-15 13648, 2012

      • luks
        cool, thanks
      • 2012-05-15 13651, 2012

      • ruaok
        depends on the speed of your disks.
      • 2012-05-15 13600, 2012

      • ruaok
        was about 3 minutes on my SSD mac
      • 2012-05-15 13645, 2012

      • warp
        ocharles, nikki: alright. all my stuff is done again. pushed to schema-change-2012-05-15 .
      • 2012-05-15 13614, 2012

      • ocharles
        luks: it's just over 5 on hobbes
      • 2012-05-15 13657, 2012

      • ruaok
        and hobbes only has 7.2k drives
      • 2012-05-15 13611, 2012

      • ruaok
        5.4k only!
      • 2012-05-15 13609, 2012

      • ocharles
        it's with great pleasure I announce the latest in our line of Cover Art Archive projects
      • 2012-05-15 13615, 2012

      • ocharles
        Ladies and gentlemen, introducing...
      • 2012-05-15 13616, 2012

      • ocharles
        djcaa!
      • 2012-05-15 13619, 2012

      • ocharles
      • 2012-05-15 13649, 2012

      • ruaok
        lol. great naming.
      • 2012-05-15 13608, 2012

      • ruaok
        have you seen the latest bug on CAA?
      • 2012-05-15 13618, 2012

      • ocharles
        i don't know, which bug are you thinking of?
      • 2012-05-15 13625, 2012

      • ruaok
        CAA-22 IRC
      • 2012-05-15 13630, 2012

      • ocharles
        yes, that's why I wrote this
      • 2012-05-15 13634, 2012

      • ocharles
        at least for the cleanup part
      • 2012-05-15 13637, 2012

      • ruaok
        ok
      • 2012-05-15 13645, 2012

      • ruaok
        do we know why it happens?
      • 2012-05-15 13649, 2012

      • ocharles
        still need to fix the trigger to not create events that don't need any work
      • 2012-05-15 13651, 2012

      • ocharles
        yep
      • 2012-05-15 13600, 2012

      • ruaok
        k
      • 2012-05-15 13656, 2012

      • ocharles
        but before I run this, it'd be nice to know if the IA have back ups :)
      • 2012-05-15 13628, 2012

      • ocharles
        I'm running find-empty piped into s3cmd ls for now
      • 2012-05-15 13646, 2012

      • hawke_
      • 2012-05-15 13651, 2012

      • ocharles
        that'd be the one :)
      • 2012-05-15 13659, 2012

      • ruaok
        ocharles, warp: is the schema-change branch updated with all the changes we believe we need for DB changes?
      • 2012-05-15 13607, 2012

      • ruaok
        I want to run upgrade.sh in my sandboxes
      • 2012-05-15 13608, 2012

      • ruaok
        question poised to the archive.
      • 2012-05-15 13621, 2012

      • ocharles
        Let me double check
      • 2012-05-15 13625, 2012

      • ocharles
        warp: all your stuff pushed?
      • 2012-05-15 13612, 2012

      • ruaok
        warp: prod
      • 2012-05-15 13618, 2012

      • ocharles
        schema-changes-2012-05-15 pushed, a850ea3b8cac610
      • 2012-05-15 13658, 2012

      • ruaok
        I'm ready to go with that branch.
      • 2012-05-15 13600, 2012

      • ruaok
        warp???
      • 2012-05-15 13605, 2012

      • ocharles
        pinging him won't help :)
      • 2012-05-15 13639, 2012

      • ruaok
        can you send him a txt please?
      • 2012-05-15 13659, 2012

      • ocharles
        +31 is NL right?
      • 2012-05-15 13602, 2012

      • ruaok
        yeah
      • 2012-05-15 13618, 2012

      • ocharles
        sent
      • 2012-05-15 13623, 2012

      • ruaok
        thx
      • 2012-05-15 13646, 2012

      • warp
        yes
      • 2012-05-15 13653, 2012

      • ocharles
        :)
      • 2012-05-15 13613, 2012

      • warp
        you can also ring me on skype
      • 2012-05-15 13619, 2012

      • ruaok
        ok
      • 2012-05-15 13623, 2012

      • ruaok
        is all your stuff pushed?
      • 2012-05-15 13629, 2012

      • warp
        yes.
      • 2012-05-15 13609, 2012

      • warp
        only a few small fixes comitted today, but they're all merged into the schema-change-2012-05-15 branch and pushed.
      • 2012-05-15 13618, 2012

      • ruaok
        ok, master Vm created.
      • 2012-05-15 13622, 2012

      • ruaok
        now duplicating a slave copy
      • 2012-05-15 13605, 2012

      • ocharles
        ruaok: can you ask the IA what they want from a cleanup?
      • 2012-05-15 13611, 2012

      • ocharles
      • 2012-05-15 13634, 2012

      • ocharles
        hmm, that doesn't help you actually
      • 2012-05-15 13652, 2012

      • ocharles
        basically, I can remove all files from a bucket but can't remove the bucket. is that enough?
      • 2012-05-15 13621, 2012

      • ruaok
        if the buckets should be removed, just make a list of buckets to nuke.
      • 2012-05-15 13630, 2012

      • ruaok
        we can then pass that over and have sam do it.
      • 2012-05-15 13650, 2012

      • ruaok
        slave test fired off
      • 2012-05-15 13622, 2012

      • reosarevok_ joined the channel
      • 2012-05-15 13643, 2012

      • ruaok
      • 2012-05-15 13658, 2012

      • ruaok
        which steps do I need to apply to totoro's config?
      • 2012-05-15 13612, 2012

      • ocharles
        "Setting Up Archiving On The Master"
      • 2012-05-15 13633, 2012

      • ocharles
        We use nfs here, but the rsync method looks like it should be good
      • 2012-05-15 13642, 2012

      • ruaok
        well, but we're not actually going to deploy it just yet.
      • 2012-05-15 13617, 2012

      • ocharles
        right, but I don't know if you can turn it on without a restart
      • 2012-05-15 13619, 2012

      • ocharles
        one moment
      • 2012-05-15 13629, 2012

      • ruaok
        fine with a restart.
      • 2012-05-15 13636, 2012

      • ruaok
        since we have down time anyway.
      • 2012-05-15 13644, 2012

      • ruaok
        its just that the slave isn't there yet
      • 2012-05-15 13645, 2012

      • ocharles
        i mean when we decide to turn this on
      • 2012-05-15 13600, 2012

      • ocharles
        I think we might need to start shipping logs to the slave, and then just delete them on the slave
      • 2012-05-15 13601, 2012

      • ruaok
        ah
      • 2012-05-15 13615, 2012

      • ruaok
        the slave isn't setup at all.
      • 2012-05-15 13620, 2012

      • ruaok
        just a blank machine with a blank install.
      • 2012-05-15 13622, 2012

      • ocharles
        ok
      • 2012-05-15 13628, 2012

      • ocharles
        turns out you can change archive_command without a restart
      • 2012-05-15 13641, 2012

      • ruaok
        can you have a null archive_command?
      • 2012-05-15 13628, 2012

      • hawke_ joined the channel
      • 2012-05-15 13632, 2012

      • ocharles
        'Setting archive_command to a command that does nothing but return true, e.g. /bin/true (REM on Windows), effectively disables archiving, but also breaks the chain of WAL files needed for archive recovery, so it should only be used in unusual circumstances.'
      • 2012-05-15 13651, 2012

      • ruaok
        so, no?
      • 2012-05-15 13657, 2012

      • ocharles
        so yes :)
      • 2012-05-15 13659, 2012

      • ruaok
        my feeling is that we should just skip it for now
      • 2012-05-15 13628, 2012

      • ocharles
        wal_level = hot_standby; archive_mode = on; archive_command = /bin/true
      • 2012-05-15 13639, 2012

      • ianmcorvidae
        breaking the write-ahead log seems like a bad idea
      • 2012-05-15 13600, 2012

      • ocharles
        breaks the chain
      • 2012-05-15 13604, 2012

      • ocharles
        that's not a problem if there's no chain to break
      • 2012-05-15 13630, 2012

      • ruaok
        tbh, I think I would be more comfortable with not doing this now.
      • 2012-05-15 13645, 2012

      • ruaok
        doing a single DB restart means 30 seconds of downtime. I can deal with that in the future.
      • 2012-05-15 13631, 2012

      • ocharles
        it's literally what I pasted above. a restart is not just 30 seconds of downtime, it will clear all your indexes too
      • 2012-05-15 13641, 2012

      • ocharles
        but it's your call
      • 2012-05-15 13646, 2012

      • ruaok
        clear indexes?
      • 2012-05-15 13648, 2012

      • ocharles
        i can appreciate limiting the amount of work we do
      • 2012-05-15 13650, 2012

      • ocharles
        from ram
      • 2012-05-15 13657, 2012

      • ruaok
        yeah, thats not a big deal.
      • 2012-05-15 13609, 2012

      • ruaok
        lets focus on the giant pile of stuff we have to get right.
      • 2012-05-15 13612, 2012

      • ruaok
        and not make it bigger.
      • 2012-05-15 13623, 2012

      • ruaok
        slave test passed.
      • 2012-05-15 13616, 2012

      • ruaok
        search indexes are in place.
      • 2012-05-15 13622, 2012

      • ocharles
        I'm going to run to the shop to pick up something for dinner
      • 2012-05-15 13634, 2012

      • ocharles
        won't be more than a few minutes
      • 2012-05-15 13640, 2012

      • ruaok
        k
      • 2012-05-15 13656, 2012

      • ruaok
        have all the tests passed?
      • 2012-05-15 13612, 2012

      • ocharles
        yea
      • 2012-05-15 13627, 2012

      • ocharles
        shall I merge to master and get jenkins to see what it thinks?
      • 2012-05-15 13633, 2012

      • ruaok
        plz
      • 2012-05-15 13644, 2012

      • ocharles
        329 files changed, 14685 insertions(+), 1788 deletions(-)
      • 2012-05-15 13646, 2012

      • ruaok
        and I'll do another slave test after that.
      • 2012-05-15 13657, 2012

      • warp
        yay, merging to master.
      • 2012-05-15 13611, 2012

      • ocharles
        is hobbes busy?
      • 2012-05-15 13622, 2012

      • ocharles
        ci.musicbrainz.org isn't loading for me
      • 2012-05-15 13623, 2012

      • ruaok
        I'm not using hobbes
      • 2012-05-15 13634, 2012

      • ocharles
        ok, build kicked off
      • 2012-05-15 13649, 2012

      • ruaok duplices a vm
      • 2012-05-15 13625, 2012

      • the_metalgamer joined the channel
      • 2012-05-15 13654, 2012

      • MBJenkins
        Project musicbrainz-server_master build #189: FAILURE in 9 min 47 sec: http://ci.musicbrainz.org/job/musicbrainz-server_…
      • 2012-05-15 13614, 2012

      • ruaok
        crap
      • 2012-05-15 13641, 2012

      • warp
        meh
      • 2012-05-15 13651, 2012

      • ocharles
        right, times to be fixings
      • 2012-05-15 13633, 2012

      • ocharles
        odd, the merge seems to have reverted a change somewhere...
      • 2012-05-15 13650, 2012

      • ocharles
        which is a bit unsettling
      • 2012-05-15 13656, 2012

      • ocharles
        ok, i think that's me just reading things wrong
      • 2012-05-15 13611, 2012

      • ruaok
        release time is here!
      • 2012-05-15 13613, 2012

      • ruaok
        :-(
      • 2012-05-15 13623, 2012

      • MiX-MaN joined the channel
      • 2012-05-15 13601, 2012

      • warp looks into the failing seleniums.
      • 2012-05-15 13611, 2012

      • ocharles
        isn't that due to the other failures?+
      • 2012-05-15 13616, 2012

      • warp
        quite possibly.