You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "weimingdiit (via GitHub)" <gi...@apache.org> on 2023/03/20 11:46:05 UTC
[GitHub] [hudi] weimingdiit opened a new pull request, #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
weimingdiit opened a new pull request, #8245:
URL: https://github.com/apache/hudi/pull/8245
### Change Logs
When occ is enabled, hivesynctool causes partiton metadata to be lost. We added some repair logic.
### Impact
none
### Risk level (write none, low medium or high below)
_If medium or high, explain what verification was done to mitigate the risks._
### Documentation Update
_Describe any necessary documentation update if there is any new feature, config, or user-facing change_
- _The config description must be updated if new configs are added or the default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make
changes to the website._
### Contributor's checklist
- [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on a diff in pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on code in PR #8245:
URL: https://github.com/apache/hudi/pull/8245#discussion_r1145638109
##########
pom.xml:
##########
@@ -117,7 +117,7 @@
<joda.version>2.9.9</joda.version>
<hadoop.version>2.10.1</hadoop.version>
<hive.groupid>org.apache.hive</hive.groupid>
- <hive.version>2.3.1</hive.version>
+ <hive.version>2.3.4</hive.version>
Review Comment:
The hive version is updated from 2.3.1 to 2.3.4.
The bug of MetaStoreUtils, 【Long newStat = long.parselong (newPart.getParameters().get(stat));】
Perhaps newPart does not contain 'stat', in which case parseLong will report an error.
`
2023-03-20T16:40:43.1619654Z Caused by: java.lang.NumberFormatException: null
2023-03-20T16:40:43.1620230Z at java.lang.Long.parseLong(Long.java:552)
2023-03-20T16:40:43.1620799Z at java.lang.Long.parseLong(Long.java:631)
2023-03-20T16:40:43.1621465Z at org.apache.hadoop.hive.metastore.MetaStoreUtils.isFastStatsSame(MetaStoreUtils.java:315)
2023-03-20T16:40:43.1622273Z at org.apache.hadoop.hive.metastore.HiveAlterHandler.alterPartitions(HiveAlterHandler.java:605)
2023-03-20T16:40:43.1623187Z at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.alter_partitions_with_environment_context(HiveMetaStore.java:3833)
`
`
in 2.3.4
static boolean isFastStatsSame(Partition oldPart, Partition newPart) {
// requires to calculate stats if new and old have different fast stats
if ((oldPart != null) && (oldPart.getParameters() != null)) {
for (String stat : StatsSetupConst.fastStats) {
if (oldPart.getParameters().containsKey(stat)) {
Long oldStat = Long.parseLong(oldPart.getParameters().get(stat));
String newStat = newPart.getParameters().get(stat);
if (newStat == null || !oldStat.equals(Long.parseLong(newStat))) {
return false;
}
} else {
return false;
}
}
return true;
}
return false;
}
in 2.3.1
static boolean isFastStatsSame(Partition oldPart, Partition newPart) {
// requires to calculate stats if new and old have different fast stats
if ((oldPart != null) && (oldPart.getParameters() != null)) {
for (String stat : StatsSetupConst.fastStats) {
if (oldPart.getParameters().containsKey(stat)) {
Long oldStat = Long.parseLong(oldPart.getParameters().get(stat));
Long newStat = Long.parseLong(newPart.getParameters().get(stat));
if (!oldStat.equals(newStat)) {
return false;
}
} else {
return false;
}
}
return true;
}
return false;
}
`
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1476104121
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810",
"triggerID" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* fa31b0c4ef488e1905841dc1a3bb289cca1e41d9 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1594227392
> Now you can pick #8745 and #8917 to fix this problem~
ok, I get
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on a diff in pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on code in PR #8245:
URL: https://github.com/apache/hudi/pull/8245#discussion_r1145638109
##########
pom.xml:
##########
@@ -117,7 +117,7 @@
<joda.version>2.9.9</joda.version>
<hadoop.version>2.10.1</hadoop.version>
<hive.groupid>org.apache.hive</hive.groupid>
- <hive.version>2.3.1</hive.version>
+ <hive.version>2.3.4</hive.version>
Review Comment:
The hive version is updated from 2.3.1 to 2.3.4.
The bug of MetaStoreUtils, 【Long newStat = long.parselong (newPart.getParameters().get(stat));】
Perhaps newPart does not contain 'stat', in which case parseLong will report an error.
`
error log:
2023-03-20T16:40:43.1619654Z Caused by: java.lang.NumberFormatException: null
2023-03-20T16:40:43.1620230Z at java.lang.Long.parseLong(Long.java:552)
2023-03-20T16:40:43.1620799Z at java.lang.Long.parseLong(Long.java:631)
2023-03-20T16:40:43.1621465Z at org.apache.hadoop.hive.metastore.MetaStoreUtils.isFastStatsSame(MetaStoreUtils.java:315)
2023-03-20T16:40:43.1622273Z at org.apache.hadoop.hive.metastore.HiveAlterHandler.alterPartitions(HiveAlterHandler.java:605)
2023-03-20T16:40:43.1623187Z at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.alter_partitions_with_environment_context(HiveMetaStore.java:3833)
`
`
in 2.3.4
static boolean isFastStatsSame(Partition oldPart, Partition newPart) {
// requires to calculate stats if new and old have different fast stats
if ((oldPart != null) && (oldPart.getParameters() != null)) {
for (String stat : StatsSetupConst.fastStats) {
if (oldPart.getParameters().containsKey(stat)) {
Long oldStat = Long.parseLong(oldPart.getParameters().get(stat));
String newStat = newPart.getParameters().get(stat);
if (newStat == null || !oldStat.equals(Long.parseLong(newStat))) {
return false;
}
} else {
return false;
}
}
return true;
}
return false;
}
in 2.3.1
static boolean isFastStatsSame(Partition oldPart, Partition newPart) {
// requires to calculate stats if new and old have different fast stats
if ((oldPart != null) && (oldPart.getParameters() != null)) {
for (String stat : StatsSetupConst.fastStats) {
if (oldPart.getParameters().containsKey(stat)) {
Long oldStat = Long.parseLong(oldPart.getParameters().get(stat));
Long newStat = Long.parseLong(newPart.getParameters().get(stat));
if (!oldStat.equals(newStat)) {
return false;
}
} else {
return false;
}
}
return true;
}
return false;
}
`
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] danny0405 commented on a diff in pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on code in PR #8245:
URL: https://github.com/apache/hudi/pull/8245#discussion_r1145683921
##########
hudi-sync/hudi-adb-sync/src/main/java/org/apache/hudi/sync/adb/AdbSyncTool.java:
##########
@@ -189,6 +190,13 @@ private void syncHoodieTable(String tableName, boolean useRealtimeInputFormat, b
}
LOG.info("Last commit time synced was found:{}", lastCommitTimeSynced.orElse("null"));
+ String currentInstantTs = config.getString(META_SYNC_CURRENT_INSTANT_TS);
+ if (lastCommitTimeSynced.isPresent() && !currentInstantTs.isEmpty()) {
+ // If occ is enabled, the commit time may be earlier than lastCommitTimeSynced.
+ // In this case, the metadata of the current instant cannot be synchronized, resulting in the loss of partition metadata.
+ lastCommitTimeSynced = currentInstantTs.compareTo(lastCommitTimeSynced.get()) < 0 ? Option.of(currentInstantTs) : lastCommitTimeSynced;
+ LOG.info("Reset lastCommitTimeSynced " + lastCommitTimeSynced.get());
Review Comment:
Somehow we need to rememer the client sync time for each writer, or keep all the instant times that was synced in server, the timestamp comparison is tricky and likely to produce bugs.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1493552755
> landed
> > > > Hi,
> > > > We got the same issue before when syncing Hive partition if there are more then one writer. And we fix this issue by using @boneanxs 's solution in this PR: #7627
> > > > Further more, it can solve downstream pipeline stream reading issue. If there is a downstream Hudi reader reading data in stream mode, there will be the same issue as this ticket mentioned. @boneanxs 's solution can solve this problem fundamentally.
> > > > May I ask if it is appropriate that we can add this feature (#7627) in Hudi timeline?
> > >
> > >
> > > Yes, adding the physical processing time instead of logical timestamp on timeline should be helpful in some senarios.
> >
> >
> > OK,I see, maybe i should close this pr,thanks @TengHuo @danny0405
>
> We still need some changes for the hive meta sync even if #7627 is landed.
OK,when #7627 is landed, i will update this pr
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1476091157
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* fa31b0c4ef488e1905841dc1a3bb289cca1e41d9 UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] david-z-johnson commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "david-z-johnson (via GitHub)" <gi...@apache.org>.
david-z-johnson commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1680784894
@danny0405 Which version did this fix push to?
In 0.12.3 with spark 3.2.3, with occ opened with hms sync, I came with the similar issue described above.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on a diff in pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on code in PR #8245:
URL: https://github.com/apache/hudi/pull/8245#discussion_r1145638109
##########
pom.xml:
##########
@@ -117,7 +117,7 @@
<joda.version>2.9.9</joda.version>
<hadoop.version>2.10.1</hadoop.version>
<hive.groupid>org.apache.hive</hive.groupid>
- <hive.version>2.3.1</hive.version>
+ <hive.version>2.3.4</hive.version>
Review Comment:
The hive version is updated from 2.3.1 to 2.3.4.
The bug of MetaStoreUtils, 【Long newStat = long.parselong (newPart.getParameters().get(stat));】
Perhaps newPart does not contain 'stat', in which case parseLong will report an error.
`
in 2.3.4
static boolean isFastStatsSame(Partition oldPart, Partition newPart) {
// requires to calculate stats if new and old have different fast stats
if ((oldPart != null) && (oldPart.getParameters() != null)) {
for (String stat : StatsSetupConst.fastStats) {
if (oldPart.getParameters().containsKey(stat)) {
Long oldStat = Long.parseLong(oldPart.getParameters().get(stat));
String newStat = newPart.getParameters().get(stat);
if (newStat == null || !oldStat.equals(Long.parseLong(newStat))) {
return false;
}
} else {
return false;
}
}
return true;
}
return false;
}
in 2.3.1
static boolean isFastStatsSame(Partition oldPart, Partition newPart) {
// requires to calculate stats if new and old have different fast stats
if ((oldPart != null) && (oldPart.getParameters() != null)) {
for (String stat : StatsSetupConst.fastStats) {
if (oldPart.getParameters().containsKey(stat)) {
Long oldStat = Long.parseLong(oldPart.getParameters().get(stat));
Long newStat = Long.parseLong(newPart.getParameters().get(stat));
if (!oldStat.equals(newStat)) {
return false;
}
} else {
return false;
}
}
return true;
}
return false;
}
`
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1480644692
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810",
"triggerID" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"triggerType" : "PUSH"
}, {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15867",
"triggerID" : "1480559213",
"triggerType" : "MANUAL"
}, {
"hash" : "3d99e98caae08cb3c06a3a5fe137657d1243220b",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15869",
"triggerID" : "3d99e98caae08cb3c06a3a5fe137657d1243220b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 3d99e98caae08cb3c06a3a5fe137657d1243220b Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15869)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] stream2000 commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "stream2000 (via GitHub)" <gi...@apache.org>.
stream2000 commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1594214598
Now you can pick #8745 and #8917 to fix this problem~
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1480559213
@hudi-bot run azure
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on a diff in pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on code in PR #8245:
URL: https://github.com/apache/hudi/pull/8245#discussion_r1145638109
##########
pom.xml:
##########
@@ -117,7 +117,7 @@
<joda.version>2.9.9</joda.version>
<hadoop.version>2.10.1</hadoop.version>
<hive.groupid>org.apache.hive</hive.groupid>
- <hive.version>2.3.1</hive.version>
+ <hive.version>2.3.4</hive.version>
Review Comment:
The hive version is updated from 2.3.1 to 2.3.4.
The bug of MetaStoreUtils, 【Long newStat = long.parselong (newPart.getParameters().get(stat));】
Perhaps newPart does not contain 'stat', in which case parseLong will report an error.
`
error log:2023-03-20T16:40:43.1619654Z Caused by: java.lang.NumberFormatException: null
2023-03-20T16:40:43.1620230Z at java.lang.Long.parseLong(Long.java:552)
2023-03-20T16:40:43.1620799Z at java.lang.Long.parseLong(Long.java:631)
2023-03-20T16:40:43.1621465Z at org.apache.hadoop.hive.metastore.MetaStoreUtils.isFastStatsSame(MetaStoreUtils.java:315)
2023-03-20T16:40:43.1622273Z at org.apache.hadoop.hive.metastore.HiveAlterHandler.alterPartitions(HiveAlterHandler.java:605)
2023-03-20T16:40:43.1623187Z at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.alter_partitions_with_environment_context(HiveMetaStore.java:3833)
`
`
in 2.3.4
static boolean isFastStatsSame(Partition oldPart, Partition newPart) {
// requires to calculate stats if new and old have different fast stats
if ((oldPart != null) && (oldPart.getParameters() != null)) {
for (String stat : StatsSetupConst.fastStats) {
if (oldPart.getParameters().containsKey(stat)) {
Long oldStat = Long.parseLong(oldPart.getParameters().get(stat));
String newStat = newPart.getParameters().get(stat);
if (newStat == null || !oldStat.equals(Long.parseLong(newStat))) {
return false;
}
} else {
return false;
}
}
return true;
}
return false;
}
in 2.3.1
static boolean isFastStatsSame(Partition oldPart, Partition newPart) {
// requires to calculate stats if new and old have different fast stats
if ((oldPart != null) && (oldPart.getParameters() != null)) {
for (String stat : StatsSetupConst.fastStats) {
if (oldPart.getParameters().containsKey(stat)) {
Long oldStat = Long.parseLong(oldPart.getParameters().get(stat));
Long newStat = Long.parseLong(newPart.getParameters().get(stat));
if (!oldStat.equals(newStat)) {
return false;
}
} else {
return false;
}
}
return true;
}
return false;
}
`
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1480577826
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810",
"triggerID" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"triggerType" : "PUSH"
}, {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15867",
"triggerID" : "1480559213",
"triggerType" : "MANUAL"
}, {
"hash" : "3d99e98caae08cb3c06a3a5fe137657d1243220b",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15869",
"triggerID" : "3d99e98caae08cb3c06a3a5fe137657d1243220b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* fa31b0c4ef488e1905841dc1a3bb289cca1e41d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810) Azure: [CANCELED](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15867)
* 3d99e98caae08cb3c06a3a5fe137657d1243220b Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15869)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] danny0405 commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1491257506
> > > Hi,
> > > We got the same issue before when syncing Hive partition if there are more then one writer. And we fix this issue by using @boneanxs 's solution in this PR: #7627
> > > Further more, it can solve downstream pipeline stream reading issue. If there is a downstream Hudi reader reading data in stream mode, there will be the same issue as this ticket mentioned. @boneanxs 's solution can solve this problem fundamentally.
> > > May I ask if it is appropriate that we can add this feature (#7627) in Hudi timeline?
> >
> >
> > Yes, adding the physical processing time instead of logical timestamp on timeline should be helpful in some senarios.
>
> OK,I see, maybe i should close this pr,thanks @TengHuo @danny0405
We still need some changes for the hive meta sync even if #7627 is landed.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] TengHuo commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "TengHuo (via GitHub)" <gi...@apache.org>.
TengHuo commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1486602515
Hi,
We got the same issue before when syncing Hive partition if there are more then one writer. And we fix this issue by using @boneanxs 's solution in this PR: https://github.com/apache/hudi/pull/7627
Further more, it can solve downstream pipeline stream reading issue. If there is a downstream Hudi reader reading data in stream mode, there will be the same issue as this ticket mentioned. @boneanxs 's solution can solve this problem fundamentally.
May I ask if it is appropriate that we can add this feature (https://github.com/apache/hudi/pull/7627) in Hudi timeline?
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1476773806
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810",
"triggerID" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* fa31b0c4ef488e1905841dc1a3bb289cca1e41d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1480573380
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810",
"triggerID" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"triggerType" : "PUSH"
}, {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15867",
"triggerID" : "1480559213",
"triggerType" : "MANUAL"
}, {
"hash" : "3d99e98caae08cb3c06a3a5fe137657d1243220b",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "3d99e98caae08cb3c06a3a5fe137657d1243220b",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* fa31b0c4ef488e1905841dc1a3bb289cca1e41d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15867)
* 3d99e98caae08cb3c06a3a5fe137657d1243220b UNKNOWN
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] danny0405 closed pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 closed pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
URL: https://github.com/apache/hudi/pull/8245
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1491239195
> > Hi,
> > We got the same issue before when syncing Hive partition if there are more then one writer. And we fix this issue by using @boneanxs 's solution in this PR: #7627
> > Further more, it can solve downstream pipeline stream reading issue. If there is a downstream Hudi reader reading data in stream mode, there will be the same issue as this ticket mentioned. @boneanxs 's solution can solve this problem fundamentally.
> > May I ask if it is appropriate that we can add this feature (#7627) in Hudi timeline?
>
> Yes, adding the physical processing time instead of logical timestamp on timeline should be helpful in some senarios.
OK,I see, maybe i should close this pr,thanks @TengHuo @danny0405
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] hudi-bot commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1480567741
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "FAILURE",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810",
"triggerID" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"triggerType" : "PUSH"
}, {
"hash" : "fa31b0c4ef488e1905841dc1a3bb289cca1e41d9",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15867",
"triggerID" : "1480559213",
"triggerType" : "MANUAL"
} ]
}-->
## CI report:
* fa31b0c4ef488e1905841dc1a3bb289cca1e41d9 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15810) Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=15867)
<details>
<summary>Bot commands</summary>
@hudi-bot supports the following commands:
- `@hudi-bot run azure` re-run the last Azure build
</details>
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] weimingdiit commented on a diff in pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "weimingdiit (via GitHub)" <gi...@apache.org>.
weimingdiit commented on code in PR #8245:
URL: https://github.com/apache/hudi/pull/8245#discussion_r1145729361
##########
hudi-sync/hudi-adb-sync/src/main/java/org/apache/hudi/sync/adb/AdbSyncTool.java:
##########
@@ -189,6 +190,13 @@ private void syncHoodieTable(String tableName, boolean useRealtimeInputFormat, b
}
LOG.info("Last commit time synced was found:{}", lastCommitTimeSynced.orElse("null"));
+ String currentInstantTs = config.getString(META_SYNC_CURRENT_INSTANT_TS);
+ if (lastCommitTimeSynced.isPresent() && !currentInstantTs.isEmpty()) {
+ // If occ is enabled, the commit time may be earlier than lastCommitTimeSynced.
+ // In this case, the metadata of the current instant cannot be synchronized, resulting in the loss of partition metadata.
+ lastCommitTimeSynced = currentInstantTs.compareTo(lastCommitTimeSynced.get()) < 0 ? Option.of(currentInstantTs) : lastCommitTimeSynced;
+ LOG.info("Reset lastCommitTimeSynced " + lastCommitTimeSynced.get());
Review Comment:
@danny0405 danny, There are two problems:
1. I am a little confused about why the use of timestamp comparison causes bugs
2. Any suggestions if you want to rememer instant timestamp
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] danny0405 commented on pull request #8245: [HUDI-5944] Added the ability to fix partitiion missing in hudi synctool
Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on PR #8245:
URL: https://github.com/apache/hudi/pull/8245#issuecomment-1487872941
> Hi,
>
> We got the same issue before when syncing Hive partition if there are more then one writer. And we fix this issue by using @boneanxs 's solution in this PR: #7627
>
> Further more, it can solve downstream pipeline stream reading issue. If there is a downstream Hudi reader reading data in stream mode, there will be the same issue as this ticket mentioned. @boneanxs 's solution can solve this problem fundamentally.
>
> May I ask if it is appropriate that we can add this feature (#7627) in Hudi timeline?
Yes, adding the physical processing time instead of logical timestamp on timeline should be helpful in some senarios.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org