ashb commented on pull request #13083:
URL: https://github.com/apache/airflow/pull/13083#issuecomment-745244929


   Well that's silly/stupid/annoying. By setting that system setting, it 
dsables accelerated/kernel provided md5.
   
   But md5 is just used as a fingerprint mechanism. There will be many more 
cases than just this one -- 
   
   ```
   airflow/cli/commands/webserver_command.py:        hash_md5 = hashlib.md5()
   airflow/cli/commands/webserver_command.py:                
hash_md5.update(chunk)
   airflow/cli/commands/webserver_command.py:        return hash_md5.hexdigest()
   airflow/kubernetes/pod_generator.py:        safe_hash = 
hashlib.md5(string.encode()).hexdigest()[:9]
   airflow/kubernetes/pod_generator_deprecated.py:        safe_hash = 
hashlib.md5(string.encode()).hexdigest()[:9]
   airflow/models/serialized_dag.py:        self.dag_hash = 
hashlib.md5(json.dumps(self.data, sort_keys=True).encode("utf-8")).hexdigest()
   airflow/providers/google/cloud/hooks/bigquery.py:        uniqueness_suffix = 
hashlib.md5(hash_base.encode()).hexdigest()
   airflow/providers/google/cloud/hooks/gcs.py:    def get_md5hash(self, 
bucket_name: str, object_name: str) -> str:
   airflow/providers/google/cloud/hooks/gcs.py:        blob_md5hash = 
blob.md5_hash
   airflow/providers/google/cloud/hooks/gcs.py:        self.log.info('The 
md5Hash of %s is %s', object_name, blob_md5hash)
   airflow/providers/google/cloud/hooks/gcs.py:        return blob_md5hash
   airflow/providers/google/cloud/operators/bigquery.py:        
uniqueness_suffix = hashlib.md5(hash_base.encode()).hexdigest()
   ```
   
   For instance.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to