question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

R u kidding me? 2.5.5 pushed to 2.5.4 tag :stonned:

See original GitHub issue

Famous mammoth commit https://github.com/amundsen-io/amundsenmetadatalibrary/commit/48b4c71054f7b34bca8a8f148e8b7499dfb986fc got pushed to dockerhub for tag amundsendev/amundsen-metadata:2.5.4 6 days ago from today, which broke the existing integration with atlas.

Expected Behavior

Amundsen metadata (v2.5.4) GET /table/ should work in the same env where it used to work 7 days before today.

Current Behavior

A simple rest call to amundsen-metadata GET /table/hive_table://primary.apps/some_simple_beautiful_table breaks with 500.


   File "/usr/local/lib/python3.7/site-packages/flask_restful/__init__.py", line 595, in dispatch_request
     resp = meth(*args, **kwargs)
   File "/usr/local/lib/python3.7/site-packages/flasgger/utils.py", line 249, in wrapper
     return function(*args, **kwargs)
   File "/usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/api/table.py", line 32, in get
     table = self.client.get_table(table_uri=table_uri)
   File "/usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/proxy/atlas_proxy.py", line 445, in get_table
     owners=self._get_owners(table_details[self.REL_ATTRS_KEY].get('ownedBy'), attrs.get('owner')),
   File "/usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/proxy/atlas_proxy.py", line 385, in _get_owners
     data_owners)
 TypeError: 'NoneType' object is not iterable

Possible Solution

I’m not even looking into the actual problem. EXPECTATION IS WHEN I PULL IMAGE TAG 2.5.4 I GET CODE OF GIT BRANCH/TAG 2.5.4.

As a quick fix : Using sha of old image (hopefully I didn’t pull the image on my laptop for several days which saved my job) amundsendev/amundsen-metadata@sha256:098afdc15444b212c30202f729b1a30772625e304499fc1f602773d7457938cc

Long term fix: Stop trusting amundsendev, their CI/CD, till they use rewrite-able docker tags. Once confidence is gained, pull the images and save them on a pendrive or your own container registry.

Steps to Reproduce (Proof of my claim)

  1. docker run -it --rm amundsendev/amundsen-metadata:2.5.4 bash -c 'head -n 395 /usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/proxy/atlas_proxy.py | tail -20' Or simply docker run -it --rm amundsendev/amundsen-metadata:2.5.4 bash -c 'cat /usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/proxy/atlas_proxy.py | wc -l'
  2. Now verify the code against https://github.com/amundsen-io/amundsenmetadatalibrary/blob/v2.5.4/metadata_service/proxy/atlas_proxy.py
  3. Expected 672 lines but found 873 lines! (🤔 )

Screenshots (if appropriate)

I can attach a pic of my manager’s angry face at 2AM

Context

I wasted 3 hours of my life debugging the issue. I was working on a feature to do full access control using apache ranger on both amundsen and atlas. i thought this is a problem of the ranger integration code. It broke our production environment as we thought amundsendev will never mutate release tags of stable docker images.

Your Environment

  • Amunsen version used: Does it really matter now?

Amunsen version used: dockerimages : amundsendev/amundsen-search:2.4.0 amundsendev/amundsen-metadata:2.5.4 (cough cough) amundsendev/amundsen-frontend-oidc:2.2.2

Deployment: k8s behind ingress

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pPanda-betacommented, Aug 26, 2020

Sure, we can make PR.

@learningyoda what say?

0reactions
pPanda-betacommented, Aug 31, 2020

@feng-tao We have released it for a limited audience. Soon, we release it for the entire organisation and get the first round of user feedback, I’ll raise the PR. Till that time, we have to wait.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Source Code," "Super," "Insidious," "Circo," More - MUBI
It's horror on a loop — laboring to sift through where and who you are while trying to piece together a mystery with...
Read more >
Aesthetically Driven Design of Network Based Multi-User ...
Digital networking technologies open up a new world of possibilities for mu- sic making, allowing performers to collaborate in ways not possible before....
Read more >
A Grammar of Mandarin
2.6 The pronunciation and spelling of syllables starting in i, ü and u ... The English word mandarin derives from Portuguese mandarim 'high-ranking...
Read more >
AIR FORCE INSTITUTE OF TECHNOLOGY - DTIC
Thank you to the subject matter experts and participants who were involved with the studies described in this dissertation.
Read more >
Halloween Houses - Kidding Around Greenville
Ready for Halloween? Check out these Upstate, SC dirving tours of spooky Halloween lights and displays near Greenville, SC.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found