You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/10/12 06:54:05 UTC

[GitHub] [iceberg] vshel opened a new issue, #5965: Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions

vshel opened a new issue, #5965:
URL: https://github.com/apache/iceberg/issues/5965

   ### Query engine
   
   Spark
   
   ### Question
   
   Hello, I am trying out Iceberg with aws integration, every time a commit is done the glue table version is incremented, however, there's an aws hard limit of 100,000 versions per glue table.
   I believe this line of code is responsible for version update: https://github.com/apache/iceberg/blob/3cddc9f28c93b9231060ecb6b90e2d524bd5d160/aws/src/main/java/org/apache/iceberg/aws/glue/GlueTableOperations.java#L150
   
   How could I use Iceberg with glue once I have 100,000 commits and the aws hard limit is reached? Is there anyway around it?
   
   Thank you.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions [iceberg]

Posted by "idrissa-mgs (via GitHub)" <gi...@apache.org>.
idrissa-mgs commented on issue #5965:
URL: https://github.com/apache/iceberg/issues/5965#issuecomment-1924162113

   @vshel Did you finally find a long term solution rather than asking for an increase of the aws soft limit on tables versionning ?
   Did the skipArchive flag help ?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] singhpk234 commented on issue #5965: Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions

Posted by GitBox <gi...@apache.org>.
singhpk234 commented on issue #5965:
URL: https://github.com/apache/iceberg/issues/5965#issuecomment-1276113692

   > Do I still have to use the DynamoLockManager even if I rely on the optimistic concurrency control provided by glue table versions? Unfortunately, it was not clear from the documentation whether I should be using only one or the other.
   
   DynamoLockManager should not be required in this case.
   
   > However, considering that this is streaming the tableVersion number will be growing very fast, I hope the ceiling aws provides for it will suffice.
   
   I think it should not be a problem, long has ~2 bil. Let's say u commit per second it would still require ~63 years to hit that.
   
   
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] vshel commented on issue #5965: Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions

Posted by GitBox <gi...@apache.org>.
vshel commented on issue #5965:
URL: https://github.com/apache/iceberg/issues/5965#issuecomment-1276037610

   @singhpk234 thank you for responding so quickly. There's a "glue.skip-archive" provided in Iceberg, upon testing I see that it prevents a history of table versions from being available in glue, so no actual version is saved, but the version number is still incremented upon every commit. After further investigation I don't think anything from iceberg explicitly updates the version, it looks like glue increments it just after every 'UpdateTable' request.
   
   Do I still have to use the DynamoLockManager even if I rely on the optimistic concurrency control provided by glue table versions? Unfortunately, it was not clear from the documentation whether I should be using only one or the other.
   
   However, considering that this is streaming the tableVersion number will be growing very fast, I hope the ceiling aws provides for it will suffice.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] vshel commented on issue #5965: Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions

Posted by GitBox <gi...@apache.org>.
vshel commented on issue #5965:
URL: https://github.com/apache/iceberg/issues/5965#issuecomment-1280563884

   Thank you for the answers!


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [I] Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions [iceberg]

Posted by "aakash-8 (via GitHub)" <gi...@apache.org>.
aakash-8 commented on issue #5965:
URL: https://github.com/apache/iceberg/issues/5965#issuecomment-3291895325

   Hey @vshel ! Were you able to find a permanent solution for the table versioning issue? 


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] amogh-jahagirdar commented on issue #5965: Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions

Posted by GitBox <gi...@apache.org>.
amogh-jahagirdar commented on issue #5965:
URL: https://github.com/apache/iceberg/issues/5965#issuecomment-1279781500

   @singhpk234 If I'm not mistaken, I think @vshel point was on the Glue table version which gets incremented every UpdateTable regardless of glue.skip-archive. In this case, the 100000 limitation the glue table version limit would get exhausted much quicker (~1 day) assuming 1 commit/sec . 
   
   But @vshel in the mean time as @singhpk234 mentioned you can try requesting higher limits / setup the Glue table version cleanup. https://github.com/aws-samples/aws-glue-table-versions-cleanup-utility
   
   I'll look into if it makes sense to do an expiration of older versions in Iceberg itself.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] vshel closed issue #5965: Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions

Posted by GitBox <gi...@apache.org>.
vshel closed issue #5965: Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions
URL: https://github.com/apache/iceberg/issues/5965


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] singhpk234 commented on issue #5965: Iceberg with Glue Catalog updates glue table version on every commit, but there's a maximum of 100,000 versions

Posted by GitBox <gi...@apache.org>.
singhpk234 commented on issue #5965:
URL: https://github.com/apache/iceberg/issues/5965#issuecomment-1275693583

   I think we can expire the previous table version when the current version is successfully committed, or you can override glue table level version count default to a big value as per : https://docs.aws.amazon.com/general/latest/gr/glue.html
   
   to get rid of existing version of table via a separate clean-up job you can use this util as well : https://github.com/aws-samples/aws-glue-table-versions-cleanup-utility
   
   cc @jackye1995 
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org