Account created on 12 February 2009, almost 16 years ago
  • Senior Back-End Developer at Wunder 
#

Recent comments

🇪🇪Estonia ragnarkurm

I ended up with a bit simpler patch but it goes without tests.

🇪🇪Estonia ragnarkurm

The patch works but has unintended side-effects.
Namely, the new parameters `message_orig` and `message_args` leak into the logs.
Here is how the log looks now:

{
  "@timestamp": "2024-06-01T18:57:01.471Z",
  "@version": 1,
  "message": "event: unpublished asdf",
  "message_orig": "@type: @action @title",
  "message_args": {
    "@type": "event",
    "@action": "unpublished",
    "@title": "asdf"
  },
  "message_id": "4a5b318cb696665b6efd72f120.96887480",
  "site_id": "4a5b318cb696",
  "canonical": "...",
  "method": "GET",
  "tags": null,
  "type": "drupal",
  "subtype": "publishcontent",
  "severity": "Notice",
  "request_uri": "...",
  "referer": "...",
  "uid": 53,
  "username": null,
  "client_ip": "...",
  "link": null,
  "code": 0,
  "trunc": ""
}
🇪🇪Estonia ragnarkurm

Simple manual testing seems to indicate that minifyhtml appears to break Big Pipe too. Some Big Pipe items are not loading. Nothing in Network not Console tab about this. The HTML seems to be broken. After disabling the minifyhtml along with the patch, the ending of the page is now good.

minifyhtml installed and patched:

minifyhtml uninstalled:

🇪🇪Estonia ragnarkurm

The patch works in a sense that pages are loading now.
But in Nginx logs there are now following errors:

upstream sent more data than specified in "Content-Length" header while reading upstream

It seems not to happen on every page. I didn't do a thorough testing, but it seems to happen on node pages and not in admin pages.

🇪🇪Estonia ragnarkurm

As Google search is leading here, more people might be looking for help regarding "too many realms/grants", I added the info here. Encountered the issue with the permissions_by_term module, but the problem is more generic. Created also a core patch to alleviate the problem. The core patch is in the module issue queue since I understand that core maintainers are not willing to optimize NodeGrantDatabaseStorage::access(), and pointing toward using more specific hooks.

https://www.drupal.org/project/permissions_by_term/issues/3380033 📌 Performance degradation Postponed: needs info

The patch in the issue takes care of monster select queries to the node_access table per node, but not for views. It is still a noticeable improvement in terms of speed.

🇪🇪Estonia ragnarkurm

@EricVL - your solution worked. Thank you!

🇪🇪Estonia ragnarkurm

We are experiencing this problem on NFS based filesystem.

What seems to be happening is this:

  1. Drupal creates a file
  2. NFS starts to sync file creation operation to the NFS server
  3. Drupal tries to touch the file, but NFS thinks the file is not there (yet)
  4. Drupal issues error/warning
  5. NFS completes file creation operation (say in 1 sec), and the file is now seen on the NFS client system
  6. Note: the file sometimes has a random mtime, usually far in the past
Production build 0.71.5 2024