Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2011 at 20:11 UTC
Updated:
10 Dec 2012 at 16:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yched commentedGah.
Comment #3
yched commentedReally ?
Comment #5
yched commentedComment #7
yched commentedComment #9
yched commentedComment #11
yched commentedComment #13
yched commentedComment #15
yched commentedComment #17
yched commentedComment #19
yched commentedThat one should be green.
Comment #20
yched commentedLet's start refactoring, then.
Comment #21
andypostDo we need tests for this?
Comment #22
yched commentedThe values returned by the various field_info_*() functions are used all over the place and are thus fairly extensively tested, as the # of fails / exceptions above show.
Tests for the caching behavior (static cache in the FieldInfoFieldCache properties and persistent cache in the cache_field table) could probably be useful though.
Comment #23
yched commentedClosing, back to the parent issue.
Comment #24
yched commentedCrap, failures are back. Reopening the testing playground.
Comment #26
yched commentedComment #27
yched commentedRefactoring.
Comment #29
yched commentedComment #31
yched commentedComment #33
yched commentedComment #34
yched commentedMore refactoring
Comment #35
yched commentedSome more refactoring.
Comment #36
yched commentedJust trying out how the DIC plays with testbot right now.
Comment #38
yched commentedD7 backport ?
Comment #40
yched commentedComment #42
yched commentedComment #44
geerlingguy commentedIs the testbot having some troubles tonight?
Comment #45
geerlingguy commented#42: field-info-cache-1040790-89-D7-3.patch queued for re-testing.
Comment #47
yched commentedComment #48
jthorson commentedLooks like #45 either ran into or caused a cron issue on the testbot ... got an 'attempt to start review when already running', followed by an hour of 'attempting to re-run cron while it is already running' watchdog logs; suggesting that the cron process hung for the duration of that test.
Comment #49
yched commented@jthorson: sorry about that. #45 was an attempt at a D7 backport of #1040790: _field_info_collate_fields() memory usage. The problem was an improper conversion between D8 and D7's cache APIs. the patch contained cache_[get|set|clear_all]() calls with $bin = 'field' instead of 'cache_field'.
Not sure why that would lead to the effects you mentioned, but the patch is fixed now, won't happen again :-).
Comment #50
swentel commentedLet's close this one.
Comment #51
yched commentedRebooting work on the D7 backport of #1040790: _field_info_collate_fields() memory usage. Let's see how this behaves.
Comment #52
geerlingguy commented(Just fyi, I don't use this particular patch on the production site anymore, as we've necessarily had to switch to a different solution outside the Entity/Field API for our profile system—we passed 600 entity types and 20,000 field instances, and Drupal was killing itself on cache rebuilds—with or without this patch).
I'll still help review the patch as best I can, of course, but I won't be able to test on such an outrageous installation :)
Comment #54
yched commented#51: field-info-cache-1040790-196-D7.patch queued for re-testing.
Comment #56
yched commentedComment #57
yched commented